Hi,
I need to integrate bullet into my project. I tried copying src and some jam files into my top folder (I am also a jam newbie) but now my other project files don't compile.
?What it is the best way to integrate bullet into apps? Please... help...
Linux app integration
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Linux app integration
You already have your buildsystem for the rest of the project, right?Trauma wrote:Hi,
I need to integrate bullet into my project. I tried copying src and some jam files into my top folder (I am also a jam newbie) but now my other project files don't compile.
?What it is the best way to integrate bullet into apps? Please... help...
Just use that, and don't bother about Bullet's various build systems. Only if you use Cmake, jam or msvc projectfiles you can re-use Bullet build-system.
Just copy the src folder, and add the files your your existing build system.
Hope this helps,
Erwin
-
- Posts: 4
- Joined: Wed Jan 17, 2007 9:50 pm
Yes. I already have a jam buildsystem running, but when I try to incorporate the src folder (with Jamfiles) I need to incorporate the jam rules too, and other config files. And when I do, It changes target path and other things, and my prior buildsystem go to hell
The project is organized in the following folders (+):
+ bullet (prior src folder)
+ conf (proyect files)
+ jam (jam rules and actions from bullet)
|--- Jamconfig (jam file from bullet)
|--- Jamfile (jam file from proyect and bullet)
|--- Jamrules (jam file from proyect and bullet)
+ media (proyect folder)
|--- ogre.cfg (proyect file)
|--- plugins.cfg (proyect file)
+ src (proyect source code folder)
+ tinyxml (tiny xml source code folder)
I tried to link the libs in "out/linuxx86/optimize/" but it threw a lot of links errors, that's why I decide to compile the src within my own project.
If you need more info, please just ask. Thanks
The project is organized in the following folders (+):
+ bullet (prior src folder)
+ conf (proyect files)
+ jam (jam rules and actions from bullet)
|--- Jamconfig (jam file from bullet)
|--- Jamfile (jam file from proyect and bullet)
|--- Jamrules (jam file from proyect and bullet)
+ media (proyect folder)
|--- ogre.cfg (proyect file)
|--- plugins.cfg (proyect file)
+ src (proyect source code folder)
+ tinyxml (tiny xml source code folder)
I tried to link the libs in "out/linuxx86/optimize/" but it threw a lot of links errors, that's why I decide to compile the src within my own project.
If you need more info, please just ask. Thanks
-
- Posts: 4
- Joined: Wed Jan 17, 2007 9:50 pm
-
- Posts: 198
- Joined: Mon Sep 04, 2006 5:31 pm
- Location: Switzerland
I don't know exactly what the problem is with your Jam system as I do not use jam but autotools but I guess the way it is done is the same. I simply copied the source files ( including the required license and author files ) over to a folder of my own stripping out the game files and then simply added it to my project. This should be the same on jam I guess. Just replace the jam files from bullet with your own ones you use for your project and it should work.
-
- Posts: 4
- Joined: Wed Jan 17, 2007 9:50 pm
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
The main idea of having all sources and headerfiles collected in the Bullet/src directory is that the user/developer only needs one include folder, this src folder.
All include paths were relative to this 'src' folder. However, if a cpp file includes a headerfile that exists in the same folder, it is redundant indeed,because '.' is in the include path too.
Thanks,
Erwin
All include paths were relative to this 'src' folder. However, if a cpp file includes a headerfile that exists in the same folder, it is redundant indeed,because '.' is in the include path too.
Thanks,
Erwin