I have a very simple plugin from the code from this example (https://docs.unity3d.com/Manual/NativePlugins.html). I'm updating a UI Text Field with the value from the plugin. This works as expected in the Editor but does not work when I build out a standalone application. I'm running Ubuntu 15.10.
How the library is being built:
gcc -shared PluginName.c -o PluginName.so
Here's what I've tried so far:
- Something with the LD_LIBRARY_PATH?
- Added the directory that the .so is in to the LD_LIBRARY_PATH
- Is there a problem with how Unity is building the app?
- Tried a different version (5.3.6)
- Is there a problem with the OS running on a VM?
- Tried from Ubuntu 15.10 running on another PC
- Maybe the plugin needs 'lib' prefix?
- Added 'lib' prefix.
- Is there a problem with the import settings?
- Checked import settings, checked x86_64 in Platform Settings
- Does the library need to be in a different directory?
- Put in Plugins
- Put in Plugins/x86_64
- Put in same directory as executable
It seem there is very little information out there about building Unity plugins for Linux as well. An end-to-end example would be useful. Any help with this problem would be greatly appreciated.