Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DllNotFoundException on Linux #1816

Open
goyzhang opened this issue Dec 24, 2023 · 1 comment
Open

DllNotFoundException on Linux #1816

goyzhang opened this issue Dec 24, 2023 · 1 comment

Comments

@goyzhang
Copy link

goyzhang commented Dec 24, 2023

Brief Description

I'm trying to wrap over a c++ header in a debian 11 docker container.

OS: Linux (debian 11 as devcontainer)
Include="CppSharp" Version="1.1.5.3168" .net 6

The ConsoleDriver.Run simply throw an exception (Even before Setup running)

Exception has occurred: CLR/System.DllNotFoundException
An unhandled exception of type 'System.DllNotFoundException' occurred in CppSharp.Parser.CSharp.dll: 'Unable to load shared library 'CppSharp.CppParser' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libCppSharp.CppParser: cannot open shared object file: No such file or directory'
   at CppSharp.Parser.CppParserOptions.__Internal.ctor(IntPtr __instance)
   at CppSharp.Parser.CppParserOptions..ctor()
   at CppSharp.Parser.ParserOptions..ctor()
   at CppSharp.Driver..ctor(DriverOptions options)
   at CppSharp.ConsoleDriver.Run(ILibrary library)

Things generated under bin/Debug when i built

image

@thiago-bessa
Copy link

I'm having the exact same problem running in Kubuntu 20.04, with CppSharp v1.1.5.3168 and .NET SDK 6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants