简体   繁体   English

JAssimp-找不到依赖库

[英]JAssimp - Can't find dependent libraries

I've compiled the JAssimp library, and I'm trying to use the library in NetBeans with a project. 我已经编译了JAssimp库,并且正在尝试将NetBeans中的库用于一个项目。

I'm setting the library path in Netbeans in the 'run' options of the project as such: 我在Netbeans的项目“运行”选项中设置库路径,如下所示:

-Djava.library.path=D:\\VB2013Projects\\jassimpfinal\\x64\\Debug

That path is where jassimp.dll is located. 该路径是jassimp.dll所在的位置。

However, when I try to run my project, I get this error: 但是,当我尝试运行我的项目时,出现此错误:

Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\VB2013Projects\jassimpfinal\x64\Debug\jassimp.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1119)
    at jassimp.Jassimp.<clinit>(Unknown Source)
    at opengltutorials.Mesh.loadMesh(Mesh.java:131)
    at opengltutorials.Tutorial.init(Tutorial.java:124)
    at opengltutorials.Tutorial.main(Tutorial.java:238)

I've checked the dependencies with Dependency Walker, and it shows that 我已经使用Dependency Walker检查了依赖项,它表明

Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module. for jassimp.dll . jassimp.dll However, it doesn't show any functions in red, so I think this is just a red herring (I am probably wrong, though). 但是,它没有以红色显示任何功能,因此我认为这只是一个红色鲱鱼(尽管我可能错了)。

What's going wrong with this? 这是怎么了?

通过将适当的.dll放在工作目录中来解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM