assimp-vc140-mt.dll ASSIMP was not found

送分小仙女□ 提交于 2021-01-27 07:23:36

问题


I have downloaded the Assimp project from http://assimp.sourceforge.net/main_downloads.html

Assimp release image

assimp zip image

And I've also downloaded the cmake x86 version from this link: https://cmake.org/download/

cmake x86 image

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

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

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?

Thank you in advance!


回答1:


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.



来源:https://stackoverflow.com/questions/48253826/assimp-vc140-mt-dll-assimp-was-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!