admin管理员组文章数量:1336660
I am trying to import a third-party static library as a plugin into unity. I copied the library to Assets/Plugins/x64
folder and set the OS of the Plugin to Windows
and architecture to x64
. However, while it compiles the code fine, when I run the scene that uses the code from this static library, it complains DllNotFoundException: cspice assembly: type: member:(null)
. Can Unity import static libraries? I have this static library imported using the PINVOKE feature like this:
[DllImport("cspice")] public extern static void furnsh_c(string file);
I can confirm that the script for these PINVOKE statements and the static library (cspice.lib) are located in the same directory. Note that I don't have this issue with plugins that have a dynamic link library (DLL).
I would any suggestions/recommendations to get this working.
Thanks, Datri
本文标签: unity game engineError importing a Windows static library as a pluginStack Overflow
版权声明:本文标题:unity game engine - Error importing a Windows static library as a plugin - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742418467a2471175.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论