简体   繁体   English

在 Visual Studio 2015 中链接 Assimp 3.1.1

[英]Linking Assimp 3.1.1 in Visual Studio 2015

I am linking to assimp as i´ve always done with other middleware, but when i run my application, i get a runtime error: "Application could not launch correctly (0xc000007b)."我正在链接到 assimp,就像我一直对其他中间件所做的那样,但是当我运行我的应用程序时,我收到运行时错误:“应用程序无法正确启动 (0xc000007b)。”

What am i missing?我错过了什么? I downloaded the assimp 3.1.1 binary and got我下载了 assimp 3.1.1 二进制文件并得到了

  • an include/assimp folder, containing header files and a "Compiler" folder containing more headers包含头文件的 include/assimp 文件夹和包含更多头文件的“Compiler”文件夹
  • "lib32" and "lib64" folders, each containing an "assimp.lib" “lib32”和“lib64”文件夹,每个文件夹包含一个“assimp.lib”
  • "bin32" and "bin64" folders, containing an "assimp.dll" and an "assimp.exe" “bin32”和“bin64”文件夹,包含一个“assimp.dll”和一个“assimp.exe”

  • ...along with other folders and files, like samples and cmake stuff. ...以及其他文件夹和文件,例如示例和 cmake 内容。

I put the "include/assimp" folder into my projects include folder, the assimp.lib i put in my lib/x86 folder and the assimp.dll and.exe next to my application.exe.我将“include/assimp”文件夹放入我的项目 include 文件夹中,将 assimp.lib 放入我的 lib/x86 文件夹中,并将 assimp.dll 和 .exe 放在我的 application.exe 旁边。

In my startup-project´s properties i am linking to the include and library paths and i am including assimp.lib in my additional dependencies.在我的启动项目的属性中,我链接到包含和库路径,并且在我的附加依赖项中包含 assimp.lib。

The problem was that the assimp.dll and assimp.exe had to go into my solution folder.问题是 assimp.dll 和 assimp.exe 必须进入我的解决方案文件夹。 appearently somewhere this is defined as the place to read.dll or.exe from.. even though thats strange because my glew.dll and sdl2.dll need to be inside the same directory as my application.. Probably the assimp.exe assumes the.dll is in the directory above it似乎在某个地方,这被定义为从 read.dll 或 .exe 的位置。尽管这很奇怪,因为我的 glew.dll 和 sdl2.dll 需要与我的应用程序位于同一目录中。可能 assimp.exe 假设.dll 在它上面的目录中

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

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