找不到assimp-vc140-mt.dll ASSIMP [英] assimp-vc140-mt.dll ASSIMP was not found
问题描述
我已经从 http://assimp.sourceforge.net/main_downloads.html <下载了Assimp项目/a>
I have downloaded the Assimp project from http://assimp.sourceforge.net/main_downloads.html
我还从此链接下载了cmake x86版本: https://cmake.org/download/
And I've also downloaded the cmake x86 version from this link: https://cmake.org/download/
我都提取了两者,并在assimp的文件夹旁边创建了一个build文件夹.之后,我打开了一个命令promt,将目录更改为提到的build文件夹.我将 cmake.exe
的路径提供给命令promt,并将assimp文件夹的路径作为第一个参数.之后,我在build文件夹中有了Visual Studio解决方案.我在openGL项目中创建了一个assimp文件夹.在这个assimp文件夹中,我创建了一个 lib
文件夹,并将所有内容从build/code/debug文件夹放入其中,即:
I have extracted both, and made a build folder next to the assimp's folder.
After that I have opened a command promt, changed the directory to the mentioned build folder. I gave the cmake.exe
's path to the command promt and the assimp folder's path as the first parameter. After that I had the visual studio solution in the build folder.
I have made an assimp folder in my openGL project. In this assimp folder I've created a lib
folder and I put everything from the build/code/debug folder into it, namely:
assimp-vc140-mt.dll
assimp-vc140-mt.exp
assimp-vc140-mt.ilk
assimp-vc140-mt.lib
assimp-vc140-mt.pdb
此后,我从下载的assimp文件夹中复制了包含文件夹,该文件夹位于前面提到的 lib
文件夹旁边.所以现在我有了所有的库,并在我的openGl项目中包含了这些库我为我的openGl项目在Visual Studio中设置了其他包含目录,其他库和其他依赖项
After that I copied the include folder from the downloaded assimp folder next to the previously mentioned lib
folder.
So now I have all the libs and includes inside my openGl project
I have set the additional include directories, the additional libraries and the additional dependencies in the visual studio for my openGl project
在我的 main.cpp
中,我包含了以下标头:
In my main.cpp
I have included these headers:
include "assimp/Importer.hpp"
include "assimp/scene.h"
include "assimp/postprocess.h"
我可以构建我的项目并运行它.但是当控制台出现后我运行它时,我立即收到此错误:
I can build my project and run it. But when I run it after the console appears I immediately get this error:
assimp-vc140-mt.dll was not found
我不知道错误的根源是什么,您有什么主意吗?
I don't know what could be the source of the error, do you have any idea?
提前谢谢!
推荐答案
不要忘记不是系统DLL的依赖DLL是从应用程序目录和当前目录中加载的-对我来说,这听起来好像您没有把assimp-vc140-mt.dll都在其中.
Don't forget dependant DLLs which are not system DLLs are loaded from application directory and from current directory - to me it sounds like you haven't put assimp-vc140-mt.dll in either of those.
这篇关于找不到assimp-vc140-mt.dll ASSIMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!