Jump to content
  • Advertisement
Sign in to follow this  
sobeit

how to compile ASSIMP using vs 11

This topic is 1860 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Edited by sobeit

Share this post


Link to post
Share on other sites
Advertisement

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.

Share this post


Link to post
Share on other sites


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? Edited by sobeit

Share this post


Link to post
Share on other sites

It might be useful to post the errors.

Don't mind the warnings, they are ok anyway.

Share this post


Link to post
Share on other sites

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.

Edited by NightCreature83

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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".

Share this post


Link to post
Share on other sites

I'm using VS 2012, so I need to use VS 11 version of pre-compiled libraries which they do not provide yet.

They don't? I suppose I made those myself then.

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!