I want to use the assimp library (http://assimp.sourceforge.net/) in my Qt Application (Compiler: MSVC2013).
My problem is that I can't figure out how to build the library. Here is what I have tried.
- I downloaded assimp-3.1.1.zip and CMake.
- Ran CMake-gui
- Chose in "Where is the source code" the unpacked folder of assimp-3.1.1.zip.
- In "Where to build the binaries" I chose a new folder that i made called "cmake binary/3.1.1".
- I selected "Configure" and chose Visual Studio 12 2013 Win64 and "Use Default native Compilers".
- I unchecked "BUILD_SHARED_LIBS" and checked "BUILD_STATIC_LIB" and "ENABLE_BOOST_WORKAROUND"
- I hit "Generate".
Once I opened the generated "Assimp.sln" with Visual Studio (I am not sure if its the right way, because i want to use it with Qt afterwards) and built "ALL_BUILD" by rightclick->Build. This one works but now comes the problem: If I build "INSTALL" i get the following error:
Error 20 error MSB3073: The command "setlocal
C:\Data-NoBackup\CMake\bin\cmake.exe -DBUILD_TYPE=Debug -P cmake_install.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5 INSTALL"
After Googling this error and found that I have to run my programms as an Administrator (according to https://social.msdn.microsoft.com/Forums/vstudio/en-US/02d24b1e-65ff-4177-bdf2-0d1e0fb8cdf6/error-msb3073-and-my-build-exited-with-code-1).
But this doesnt help me. I still get this error. I hope you are able to help me here. Thanks in advance.