-
Notifications
You must be signed in to change notification settings - Fork 139
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 running C# sim86_test.cs (Ubuntu) #22
Comments
For non-Windows platforms you will need to build .so file manually. The .dll file is provided only for Windows. |
Aha, I had a feeling it was a linux issue. Should I be building the file sim86_lib.cpp? I ran these two commands
|
Can you try renaming it to |
Ok, then one last thing - can you try putting it into Alternatively setup LD_LIBRARY_PATH - do
before running IDE or |
Putting it in |
For anyone still getting an error. I'm running this on a Mac and was able to solve with a tweak to the above instructions:
Gave me the error:
This appears to be remedied by setting the version of C++ like so
FYI: There was no output on the console, but there were new files. I am unfamiliar with C++ so I don't know if this is a solution or a hacky workaround that will bite me later. Feel free to let me know if you know of a better way. Running Then copy the file |
On Mac the extension for shared libraries should be |
@mmozeiko I just tested out removing the
Putting
Hmmm. If I remove Also, thanks for creating this wrapper and helping out in this issue. I really appreciate it! |
And did you build the binary with .dylib extension? |
No. Should I? Is that better to go back and redo it, even if it's already working? I have very very little idea how c++ works. Thanks for understanding. 😀 |
As I said before - that's the extension for shared libraries on macOS. |
I went ahead and rebuild with |
Hi,
When I follow the instructions at the top of sim86_test.cs, ie. copying the sim86_shared_debug.dll next to sim86.cs and sim86.test, etc, and running dotnet run from that directory, I get the following exception:
I'm new to calling into c++ dlls so maybe I'm missing something obvious but figured I post here in case anyone can help.
I'm running it in vscode on Ubuntu 20.04
The text was updated successfully, but these errors were encountered: