Jump to content
• Advertisement

Public Group

Linking Assimp

This topic is 3190 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 I am having trouble linking the assimp lib, I have spent now 3 hours trying to get it running, I am using windows 7 and visual studio 2010 beta 2. in one case it builds sucessfully a lib which is 140mb in size. I tried to link that under /MT, gives me a bunch of linker errors. in another case I compiled a a dll file and a lib which are both around 200kb in size, tried linking that under /MD also a lot of linker errors, lib is linked, dll is in correct folder. Is it even possible to build it with vs 2010? It would be amazing if someone could send me the compiled lib in pm. thanks

Share this post

Share on other sites
Advertisement
If you tell us the errors you're getting, we'll have more chance of being able to fix your problem...

Share this post

Share on other sites
You can of course use it with Visual Studio 2010. It's just that the pre-built libraries that come with the binary package are most probably not linkable with VS2010. I suggest fetching the most recent source codes via Subversion and then just copy the whole directory into your solution's directory and add its vcproj to your solution via the "Add existing project" context menu entry.

You then maybe have to adapt the runtime so that it matches the runtime of your main application, and maybe check a box in the dependency manager to tell VS that your application depends on that project. But I think you're simply done, then. Just recompile and it should build Assimp and link to it automatically.

Share this post

Share on other sites
Thanks for replies,

I didnt post the errors before because they were just the standard errors that you get when a lib is missing, like it cant find the definition of a function.

I tried Schrompf method and it did seem to do something, it built the Assimp project (but no .lib output) that I added but now it says:

C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1095,5): warning MSB8012: TargetPath(C:\Users\DEV\Desktop\Test\Test\Assimp\workspaces\vc9\./../../lib/assimp_release_Win32\assimp.lib) does not match the Library's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir),$(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1096,5): warning MSB8012: TargetExt(.lib) does not match the Library's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that$(OutDir), $(TargetName) and$(TargetExt) property values match the value specified in %(Lib.OutputFile).C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1097,5): warning MSB8012: TargetName(assimp) does not match the Library's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir),$(TargetName) and \$(TargetExt) property values match the value specified in %(Lib.OutputFile).

I am sorry I dont know what you mean by adapt the runtime of the main application.

Share this post

Share on other sites
Ok I managed to make it work, after trying many different project settings. Now the .lib is 95.7mb large/

Build succeeded.

Time Elapsed 00:01:51.64

Thats the time it took to compile my game project with static lib linked, not the .lib project.
Is this normal?

Share this post

Share on other sites

• Advertisement
• Advertisement

• Popular Contributors

1. 1
2. 2
Rutin
21
3. 3
4. 4
frob
17
5. 5
• Advertisement

• 9
• 12
• 9
• 33
• 13
• Forum Statistics

• Total Topics
632591
• Total Posts
3007250

×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!