-
I want to use ClangSharpPInvokeGenerator to generate some bindings, but it always returns Unhandled exception: System.InvalidOperationException: Invalid libClang version. Returned string 'Ubuntu clang version 14.0.0-1ubuntu1.1' does not contain 'version 18.1' The wierd thing is: this error is ALWAYS shown regardless whether I installed clang or not! Note that Ubuntu 22.04 does not have clang-18 in its official reopsitory, so I installed clang-18(and link clang to it) from llvm.org. So I want to solve this problem, and want to know: Where does it find the wrong libclang version? Does Ubuntu 22.04 installed a version of libclang WITHOUT clang itself somewhere? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the reason: I manually linked a so file in ClangSharpPInvokeGenerator 's appopriate folder, which is suggested by the ClangSharpPInvokeGenerator document on github. |
Beta Was this translation helpful? Give feedback.
I found the reason: I manually linked a so file in ClangSharpPInvokeGenerator 's appopriate folder, which is suggested by the ClangSharpPInvokeGenerator document on github.