-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
bugSomething isn't workingSomething isn't workinglinuxIssue occurs on Linux platformIssue occurs on Linux platform
Description
Hello
I am getting the error below on Linux Dedicated Server.
Using IL2CPP:
4/5 3:13:51 PM [Info] 2025-04-05T19:13:51.234Z|0x7fdf2d2bc740|DllNotFoundException: Unable to load DLL 'gilzoide-sqlite-net'. Tried the load the following dynamic libraries: Unable to load dynamic library 'gilzoide-sqlite-net' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = gilzoide-sqlite-net: cannot open shared object file: No such file or directory
Using Mono:
4/5 3:55:40 PM [Info] 2025-04-05T19:55:40.410Z|0x7fb73e2c0740|DllNotFoundException: gilzoide-sqlite-net assembly:<unknown assembly> type:<unknown type> member:(null)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinglinuxIssue occurs on Linux platformIssue occurs on Linux platform
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-]Unable to load DLL on Linux Dedicated Server build with IL2CPP[/-][+]Unable to load DLL on Linux Dedicated Server build[/+]gilzoide commentedon Apr 6, 2025
Hey @Sleggie, thanks for the report.
Say, can you see the
libgilzoide-sqlite-net.so
file in your build?If yes, there may be another error message above this one you showed with the root error, may be a "undefined symbol X" or maybe something related to the version of GLIBC that is linked to this library.
If not though, what version of Unity and what architecture are you building? We only have a prebuilt DLL for Linux for x86_64. As far as I know, Unity makes no difference between standalone builds and dedicated server builds, so the standalone DLL should be copied over and used there 🤔 But I might be wrong, I have never built Unity projects for dedicated servers.
Sleggie commentedon Apr 8, 2025
Hi @gilzoide
The
libgilzoide-sqlite-net.so
is indeed in the build. Also note that we are using IL2CPP, but the issue still happens with Mono.There are no mentions of undefined symbols above it, we are using unity version
2022.3.50f1
, and we are targeting x86_64 architecture.Because of this issue, we switched to this sqlite solution: https://github.com/kdw9502/UnitySQLiteAsync which ended up working but only with Mono, not IL2CPP. Perhaps that might give a bit more insight into the issue!
Thanks :)
xiaobin83 commentedon Jul 18, 2025
Maybe you need to recompile libgilzoide-sqlite-net.so with your Docker image.
to confirm this, you can use
if there is "not found" appears, that means it missing dependencies.
There is Makefile in the Plugins folder. If your are using Linux or Mac, use
If you are using Windows, you have to run
Before running things above, check Plugins/tools~/Dockerfile.build.linux
i changed the second line to "ubuntu:bionic", which i used to build my dedicated server image.
If it's still not working after done these, you can try to install libsqlite3-dev in your dockerfile
gilzoide commentedon Jul 18, 2025
There should be no need to install SQLite dev while building, SQLite's source is bundled in this project.