irrBullet on windows?

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
rk
Posts: 6
Joined: Mon Feb 08, 2010 9:42 pm

irrBullet on windows?

Post by rk »

Hello,

I found this topic about irrBullet in the "Project Announcements" section. I've read the example and it looks like a great library and I would like to try it out. But it seems to be compiled for a Linux platform (.a extension). Has anyone had any success using it under Windows? The project description says it works on both, 32 and 64 bit Windows (source: http://sourceforge.net/projects/irrbullet/) . I tryed messing around with the source files without any success. :(

I did not post this as a reply to the original irrBullet post because it was posted in the Project Announcements section, and also, I did not feel like reviving a 1 year old topic.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Re: irrBullet on windows?

Post by Acki »

rk wrote:But it seems to be compiled for a Linux platform (.a extension).
not neccessarily, MinGW/Gcc also uses libs with the .a extension on windows... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Destructavator
Posts: 40
Joined: Sat Feb 06, 2010 9:00 pm
Location: Ohio, USA

Post by Destructavator »

The download of the latest version has an EXE for the one simple example project, and its all packaged in .ZIP format. To me, both of these hint (but don't prove solidly) at the idea that the developer(s) built it on some version of Windows, although at a quick glance it looks like they wanted it to work for any of the three major platforms.

I didn't study the download in detail though.

Edit: The latest version also just came out on Jan. 17, do you have the latest version?
rk
Posts: 6
Joined: Mon Feb 08, 2010 9:42 pm

still not working =(

Post by rk »

Hey guys, thanx a lot for your replys,

You're right, i don't see why it wouldn't work with windows, it would only make sense if it did. It was actualy my c++ teacher who told me .a library files were for Linux only :shock:.

I've also tryed the lastest version, v0.1.4, as Destructavator suggested, but the library files aren't included! I'm guessing the developper forgot to add them into the release.

I'm probably just doing something wrong with my project? Maybe you guys can help me. I'm trying to compile an empty project with the library included :

Code: Select all

#include <irrlicht.h>
#include <irrbullet.h>

int main(){
	return 0;
}
and i get this :

Code: Select all

fatal error LNK1120:

unresolved external symbol 
"public: __thiscall irrBulletWorld::irrBulletWorld(class irr::IrrlichtDevice * const)"
 referenced in function 
"class irrBulletWorld * __cdecl createIrrBulletWorld(class irr::IrrlichtDevice * const)"
(?createIrrBulletWorld@@YAPAVirrBulletWorld@@QAVIrrlichtDevice@irr@@@Z)
I've included the .h files and linked the library. I'm thinking, since the include folder contains other sub folders, i have to manual include them aswell? I'm using Visual C++ express, is it possible that it doesn't automaticaly include all the subfolders?

Image
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Re: still not working =(

Post by Acki »

rk wrote:It was actualy my c++ teacher who told me .a library files were for Linux only :shock:.
so now you can teach your teacher something !!! :P

well, I tested the package and it contains everything you need !!!
but you'll need to set the search directories poperly, of course... :lol:

and great, I never got Bullet to compile for MinGW on Windows on myself, but this wrapper works like a charm !!! :)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Destructavator
Posts: 40
Joined: Sat Feb 06, 2010 9:00 pm
Location: Ohio, USA

Post by Destructavator »

This does look like an interesting project - I'll have to try it out.

Where did you get "v0.1.4" from? The sourceforge page lists v0.1.1 as the most recent.

As for setting up directories, I found in the readme file:
2. Starting a project:

To begin using basic irrBullet features in your project,
you must follow these steps:

1. add "#include <irrBullet.h>" to the top of your project
with the other includes. Make sure you have added a search directory
to the irrBullet include folder!

2. add these files to your linker (available in the libs/ folder):
libirrBullet.a, libbulletdynamics.a,
libGIMPACTUtils.a (if you use GImpact),
libbulletmath.a, libbulletcollision.a

Make sure the linker files are in that order for irrBullet,
or your project will not compile.

3. Extra:
The source code to the Bullet Physics library is included, under
source/Bullet. A project file to compile irrBullet is also under
the source/ folder.

The media in the bin/ folder is not all mine, some of it is from
the Irrlicht examples folder. The Irrlicht 1.6 dll is included
for the examples to run.
rk
Posts: 6
Joined: Mon Feb 08, 2010 9:42 pm

reply!

Post by rk »

I'm doing exacly as the readme says. I still can't get it to work :(. I tryed compiling it with 2 different compilers so far and I'm probably going to try again with another one because it's the only thing I can think of doing at this point :X.

Can anyone upload an empty project with the library linked properly?

I found v0.1.4 here, but i think some files are missing :O
Destructavator
Posts: 40
Joined: Sat Feb 06, 2010 9:00 pm
Location: Ohio, USA

Post by Destructavator »

I found v0.1.4 here, but i think some files are missing :O
That's the SVN for that project, which isn't the same thing as a release. SVN revisions of software do not typically come already compiled, and are working source files of projects as they are being developed - meaning they don't have everything packaged or prepared for an official release and they might not even compile.

No offense if you already know any of this - I'm not trying to insult your intelligence.

You would be better off grabbing an official package in one .zip file, from the project's main sourceforge download page.

Just because you are able to download source files doesn't mean that they were finished and ready for release, one reason they are uploaded is so multiple developers who live miles or even nations apart can coordinate and develop the same project at the same time.

Edit: Even if there are files in a "release" folder doesn't necessarily mean that those files are a finished branch or release.

Seeing that the developer is on this forum, I'd try getting in touch with that person about this.
rk
Posts: 6
Joined: Mon Feb 08, 2010 9:42 pm

Post by rk »

Oh yeh, I've been working with v0.1.1 since the beginning, but I just tryed the 0.1.4 hoping it would work better, but I really didn't waste too much time with it :P

But thanx a lot for all your help, I'll try a few other things, I'm pretty confident i'll get it to work :P and once i do, i'll post an update to help other people with a similar problem.
Post Reply