Irrlicht + Bullet Project

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
tm19609
Posts: 2
Joined: Sun Mar 13, 2011 10:28 am

Irrlicht + Bullet Project

Post by tm19609 »

Is there any way to use bullet libraries in irrlicht without having to import the solutions into my vs2008 project?
I've tried linking the libs folder created using cmake but when compiling I get unresolved external problems.
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Irrlicht + Bullet Project

Post by serengeor »

tm19609 wrote:Is there any way to use bullet libraries in irrlicht without having to import the solutions into my vs2008 project?
I've tried linking the libs folder created using cmake but when compiling I get unresolved external problems.
You must link them in correct order.. Search google on Bullet static linking order.
Working on game: Marrbles (Currently stopped).
jibblesmgee
Posts: 42
Joined: Thu Jan 06, 2011 9:12 am

Post by jibblesmgee »

Also you must put the additional library directories in that the libs are held in. If you built bullet yourself it will probably be C:\programfiles (x86)\Bullet Physics\lib or something like that. you can access them in the general section on linker in the property pages of your project.

And as far as I know YOU MUST put them in the additional dependencies part of the linker input too, or use #pragma comment(lib, XXXXXX)

XXXXXX is the lib file you want to link

I think it's better to use the linker though in property pages because it keeps your code from having a bunch of extra pre compiler stuff at the beginning.
tm19609
Posts: 2
Joined: Sun Mar 13, 2011 10:28 am

Post by tm19609 »

I tried it and I didn't get any linker problem but later the project crashed when trying to start physics.
But I've tried today with another instance of the project and don't know why but it worked, so thanks!
Post Reply