igrok
01-02-2009 21:13:34
It appears that a good number of people have trouble compiling OgreBullet on Linux, and it shouldn't be that big of a problem.
These instructions were last tested with OGRE 1.6 (r8195), bullet-2.73 and OgreBullet SVN (r2635) on February 06, 2009. I use 32-bit Gentoo Linux, but you should expect these instructions to work for almost all distributions.
First, grab the code from SVN and convert the files to UNIX format:
If Bullet and OGRE were not installed in the default directory (i.e. /usr/include and /usr/lib), you will need to set the correct paths. I have them installed in /usr/local/include and /usr/local/lib:
My installation of bullet did not install any of the Extras, so I had to put them in place manually:
Then, generate the Makefiles, configure the build for your system and compile:
As long as you didn't see any build errors, you'll have a nice new OgreBullet library installed in /usr/local/include/OgreBullet and /usr/local/lib!
Next, we'll get the Demo built (see my reply below).
These instructions were last tested with OGRE 1.6 (r8195), bullet-2.73 and OgreBullet SVN (r2635) on February 06, 2009. I use 32-bit Gentoo Linux, but you should expect these instructions to work for almost all distributions.
First, grab the code from SVN and convert the files to UNIX format:
svn co https://ogreaddons.svn.sourceforge.net/svnroot/ogreaddons/trunk/ogrebullet OgreBullet
cd OgreBullet/
for i in `find . -type f`; do dos2unix "$i"; done
If Bullet and OGRE were not installed in the default directory (i.e. /usr/include and /usr/lib), you will need to set the correct paths. I have them installed in /usr/local/include and /usr/local/lib:
export CPPFLAGS="-I/usr/local/include/OGRE -I/usr/local/include"
export LDFLAGS="-L/usr/local/lib/OGRE -L/usr/local/lib"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
My installation of bullet did not install any of the Extras, so I had to put them in place manually:
cp bullet-2.73/Extras/ConvexDecomposition/ConvexDecomposition.h /usr/local/include/bullet/
cp bullet-2.73/Extras/ConvexDecomposition/ConvexBuilder.h /usr/local/include/bullet/
cp bullet-2.73/Extras/ConvexDecomposition/vlookup.h /usr/local/include/bullet/
Then, generate the Makefiles, configure the build for your system and compile:
chmod 755 autogen.sh
./autogen.sh
./configure --prefix=/usr/local
make && make install
As long as you didn't see any build errors, you'll have a nice new OgreBullet library installed in /usr/local/include/OgreBullet and /usr/local/lib!
Next, we'll get the Demo built (see my reply below).