Hi all, Recently I'm learning opengl with GLSL, and come to the phase where 3d model is needed. my problem is I can't build assimp appropriately under VS 2012. Should I just create a new project and add all source code and build them? Can someone provide a tutorial on this?(I got my boost installed.) Thanks.
how to compile ASSIMP using vs 11
Personally I copy/pasted all files, including libraries, and copied boost workaround since I'm not using boost. If I remember correctly some includes needed fixing but that's all.
thanks for helping here. but I still got errors and tons of warnings. did you create a new VS project and add all header and source file in manually, including "include" and "contrib" file? can you describe the process in more detail?
Personally I copy/pasted all files, including libraries, and copied boost workaround since I'm not using boost. If I remember correctly some includes needed fixing but that's all.
This chart shows it should compile under VS2012 (vc11): http://assimp.sourceforge.net/main_downloads.html
What are you doing to get Assimp as you don't need to compile it on your own, you can just download their SDK package and link to the required libraries, this is what I did when using this library for my own use.
Also which version of Assimp are you using.
This chart shows it should compile under VS2012 (vc11): http://assimp.sourceforge.net/main_downloads.html
What are you doing to get Assimp as you don't need to compile it on your own, you can just download their SDK package and link to the required libraries, this is what I did when using this library for my own use.
Also which version of Assimp are you using.
I'm using VS 2012, so I need to use VS 11 version of pre-compiled libraries which they do not provide yet.
I downloaded the source code of latest version.
It might be useful to post the errors.
Don't mind the warnings, they are ok anyway.
the compiler says "LNK1561: entry point must be defined".
They don't? I suppose I made those myself then.I'm using VS 2012, so I need to use VS 11 version of pre-compiled libraries which they do not provide yet.
Go to project property pages.
General settings
Target extension: .lib
Configuration type: static library
C/C++ > Code Generation
Might need to set "runtime library" to multi-threaded dll (optionally debug), make sure it's coherent with other projects being built and linked
C/C++ > Precompiled header
Should be already set, just make sure it's on.
Have a try.
Just get the full installer from here: http://sourceforge.net/projects/assimp/files/assimp-3.0/
And tell your project which include and which lib directory to use, I use this SDK package and it works fine. When you have the lib and header files it doesn't really matter that much which version of VS it is compiled with, you can happily use a lib compiled in 2005 with the latest version of Visual Studio.
PS: VS11 doesn't exist, vc stands for Visual C++. They 11 comes from an internal tool number as such these are the vc versions tied to Visual Studio versions, VS2012=vc11, VS2010=vc10, VS2008=vc9 and VS2005=vc8.