installing on linux

jobes

22-03-2008 19:03:07

Good afternoon,
I have problem with installing ogrebullet on linux kubuntu
i downloaded the ogrebullet with command

cvs -z3 -d :pserver:anonymous@cvs.ogre3d.org:/cvsroot/ogre co ogreaddons

but I don't know how to compile/install ogrebullet

Please,how to install ogrebullet? Or where can I download ogreode for linux?

thanks. jobes

tuan kuranes

16-04-2008 17:59:00

You have to create makefiles/config/build system yourself. (or for the matter just copy OgreOde ones, replacing filenames by bullet files.

ogreode is in ogreaddons... with makefiles. (you may have to update some but I don't think so.)

dacohen

03-05-2008 15:46:56

Hi,

I've adapted ogreode build scripts to ogrebullet, but without Demos folder yet.
I hope it could be officially applied to the ogre bullet project.

Thanks,

David Cohen <dacohen@gmail.com>

Index: configure.ac
===================================================================
--- configure.ac (revision 0)
+++ configure.ac (revision 0)
@@ -0,0 +1,40 @@
+# Author: David Cohen <dacohen@gmail.com>
+# Modified: 05/02/2008
+
+AC_PREREQ(2.59)
+AC_INIT([OgreBullet], [0.2])
+AM_INIT_AUTOMAKE([OgreBullet], [0.2])
+AM_CONFIG_HEADER([config.h])
+
+AM_INIT_AUTOMAKE([foreign dist-bzip2])
+
+dnl Checks for programs
+AC_PROG_CXX
+AC_PROG_LIBTOOL
+
+PKG_CHECK_MODULES(OGRE, [OGRE >= 1.4.0],,
+ AC_MSG_ERROR([OGRE is required to compile Ogre-Ode]))
+AC_SUBST(OGRE_CFLAGS)
+AC_SUBST(OGRE_LIBS)
+
+PKG_CHECK_MODULES(bullet, [bullet >= 1.4.0],,
+ AC_MSG_ERROR([Bullet is required to compile Ogre-Ode]))
+AC_SUBST(bullet_CFLAGS)
+AC_SUBST(bullet_LIBS)
+
+AC_CONFIG_FILES([Makefile
+ Collisions/Makefile
+ Collisions/src/Makefile
+ Collisions/include/Makefile
+ Collisions/include/Debug/Makefile
+ Collisions/include/Shapes/Makefile
+ Collisions/include/Utils/Makefile
+ Dynamics/Makefile
+ Dynamics/src/Makefile
+ Dynamics/include/Makefile
+ Dynamics/include/Constraints/Makefile
+ OgreBullet.pc
+ ])
+
+AC_OUTPUT
+
Index: Dynamics/include/Constraints/Makefile.am
===================================================================
--- Dynamics/include/Constraints/Makefile.am (revision 0)
+++ Dynamics/include/Constraints/Makefile.am (revision 0)
@@ -0,0 +1,9 @@
+ogrebulletdynconstraintsincludedir = $(includedir)/OgreBullet/Dynamics/Constraints
+
+ogrebulletdynconstraintsinclude_HEADERS = \
+ OgreBulletDynamics6DofConstraint.h \
+ OgreBulletDynamicsConeTwistConstraint.h \
+ OgreBulletDynamicsHingeConstraint.h \
+ OgreBulletDynamicsPoint2pointConstraint.h \
+ OgreBulletDynamicsRaycastVehicle.h
+
Index: Dynamics/include/Makefile.am
===================================================================
--- Dynamics/include/Makefile.am (revision 0)
+++ Dynamics/include/Makefile.am (revision 0)
@@ -0,0 +1,12 @@
+ogrebulletdynincludedir = $(includedir)/OgreBullet/Dynamics
+
+SUBDIRS = Constraints
+
+ogrebulletdyninclude_HEADERS = \
+ OgreBulletDynamicsConstraint.h \
+ OgreBulletDynamics.h \
+ OgreBulletDynamicsObjectState.h \
+ OgreBulletDynamicsPreRequisites.h \
+ OgreBulletDynamicsRigidBody.h \
+ OgreBulletDynamicsWorld.h
+
Index: Dynamics/src/Makefile.am
===================================================================
--- Dynamics/src/Makefile.am (revision 0)
+++ Dynamics/src/Makefile.am (revision 0)
@@ -0,0 +1,26 @@
+INCLUDES = \
+ ${OGRE_CFLAGS} \
+ ${bullet_CFLAGS} \
+ -I../../Collisions/include \
+ -I../include
+
+lib_LTLIBRARIES = libOgreBulletDyn.la
+
+libOgreBulletDyn_la_SOURCES = \
+ OgreBulletDynamicsConstraint.cpp \
+ OgreBulletDynamicsObjectState.cpp \
+ OgreBulletDynamicsPrecompiled.cpp \
+ OgreBulletDynamicsRigidBody.cpp \
+ OgreBulletDynamicsWorld.cpp \
+ Constraints/OgreBulletDynamics6DofConstraint.cpp \
+ Constraints/OgreBulletDynamicsConeTwistConstraint.cpp \
+ Constraints/OgreBulletDynamicsHingeConstraint.cpp \
+ Constraints/OgreBulletDynamicsPoint2pointConstraint.cpp \
+ Constraints/OgreBulletDynamicsRaycastVehicle.cpp
+
+libOgreBulletDyn_la_LIBADD = \
+ $(OGRE_LIBS) \
+ $(bullet_LIBS) \
+ -L../../Collisions/src \
+ -lOgreBulletCol
+
Index: Dynamics/Makefile.am
===================================================================
--- Dynamics/Makefile.am (revision 0)
+++ Dynamics/Makefile.am (revision 0)
@@ -0,0 +1,2 @@
+SUBDIRS = include src
+
Index: Makefile.am
===================================================================
--- Makefile.am (revision 0)
+++ Makefile.am (revision 0)
@@ -0,0 +1,5 @@
+SUBDIRS = Collisions Dynamics
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = OgreBullet.pc
+
Index: OgreBullet.pc.in
===================================================================
--- OgreBullet.pc.in (revision 0)
+++ OgreBullet.pc.in (revision 0)
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: OgreBullet
+Description: Ogre's wrapper for Bullet library
+Version: @VERSION@
+Libs: -L${libdir} -lOgreBulletCol -lOgreBulletDyn
+Cflags: -I${includedir}/OgreBullet/Collisions -I${includedir}/OgreBullet/Dynnamics
Index: autogen.sh
===================================================================
--- autogen.sh (revision 0)
+++ autogen.sh (revision 0)
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+rm -f config.cache
+rm -drf autom4te.cache
+libtoolize --force
+echo "Running aclocal"
+aclocal -I .
+echo "Running autoheader"
+autoheader
+echo "Running automake"
+automake --foreign --add-missing --include-deps &&
+echo "Running autoconf"
+autoconf
+echo "Now you are ready to run ./configure"
+
+exit 0

Property changes on: autogen.sh
___________________________________________________________________
Name: svn:executable
+ *

Index: Collisions/include/Utils/OgreBulletCollisionsMeshToShapeConverter.h
===================================================================
--- Collisions/include/Utils/OgreBulletCollisionsMeshToShapeConverter.h (revision 2435)
+++ Collisions/include/Utils/OgreBulletCollisionsMeshToShapeConverter.h (working copy)
@@ -111,15 +111,15 @@
void addEntity(Ogre::Entity *entity,const Ogre::Matrix4 &transform = Ogre::Matrix4::IDENTITY);
void addMesh(const Ogre::MeshPtr &mesh, const Ogre::Matrix4 &transform);

- BoxCollisionShape* AnimatedMeshToShapeConverter::createAlignedBox(unsigned char bone,
+ BoxCollisionShape* createAlignedBox(unsigned char bone,
const Ogre::Vector3 &bonePosition,
const Ogre::Quaternion &boneOrientation);

- BoxCollisionShape* AnimatedMeshToShapeConverter::createOrientedBox(unsigned char bone,
+ BoxCollisionShape* createOrientedBox(unsigned char bone,
const Ogre::Vector3 &bonePosition,
const Ogre::Quaternion &boneOrientation);

- CapsuleCollisionShape* AnimatedMeshToShapeConverter::createOrientedCapsuleCollisionShape(unsigned char bone,
+ CapsuleCollisionShape* createOrientedCapsuleCollisionShape(unsigned char bone,
const Ogre::Vector3 &bonePosition,
const Ogre::Quaternion &boneOrientation);

Index: Collisions/include/Utils/Makefile.am
===================================================================
--- Collisions/include/Utils/Makefile.am (revision 0)
+++ Collisions/include/Utils/Makefile.am (revision 0)
@@ -0,0 +1,6 @@
+ogrebulletcolutilsincludedir = $(includedir)/OgreBullet/Collisions/Utils
+
+ogrebulletcolutilsinclude_HEADERS = \
+ OgreBulletCollisionsMeshToShapeConverter.h \
+ OgreBulletConverter.h
+
Index: Collisions/include/Shapes/OgreBulletCollisionsGImpactShape.h
===================================================================
--- Collisions/include/Shapes/OgreBulletCollisionsGImpactShape.h (revision 2435)
+++ Collisions/include/Shapes/OgreBulletCollisionsGImpactShape.h (working copy)
@@ -35,7 +35,11 @@

namespace OgreBulletCollisions
{
+#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
class __declspec( dllexport ) GImpactConcaveShape : public CollisionShape
+#else
+ class GImpactConcaveShape : public CollisionShape
+#endif
{
public:
GImpactConcaveShape(Ogre::Vector3 *_vertices, unsigned int _vertex_count, unsigned int *_indices, unsigned int_index_count);
Index: Collisions/include/Shapes/Makefile.am
===================================================================
--- Collisions/include/Shapes/Makefile.am (revision 0)
+++ Collisions/include/Shapes/Makefile.am (revision 0)
@@ -0,0 +1,18 @@
+ogrebulletcolshapesincludedir = $(includedir)/OgreBullet/Collisions/Shapes
+
+ogrebulletcolshapesinclude_HEADERS = \
+ OgreBulletCollisionsBoxShape.h \
+ OgreBulletCollisionsCapsuleShape.h \
+ OgreBulletCollisionsCompoundShape.h \
+ OgreBulletCollisionsConeShape.h \
+ OgreBulletCollisionsConvexHullShape.h \
+ OgreBulletCollisionsCylinderShape.h \
+ OgreBulletCollisionsGImpactShape.h \
+ OgreBulletCollisionsMinkowskiSumShape.h \
+ OgreBulletCollisionsMultiSphereShape.h \
+ OgreBulletCollisionsSphereShape.h \
+ OgreBulletCollisionsStaticPlaneShape.h \
+ OgreBulletCollisionsTerrainShape.h \
+ OgreBulletCollisionsTriangleShape.h \
+ OgreBulletCollisionsTrimeshShape.h
+
Index: Collisions/include/Debug/Makefile.am
===================================================================
--- Collisions/include/Debug/Makefile.am (revision 0)
+++ Collisions/include/Debug/Makefile.am (revision 0)
@@ -0,0 +1,8 @@
+ogrebulletcoldebugincludedir = $(includedir)/OgreBullet/Collisions/Debug
+
+ogrebulletcoldebuginclude_HEADERS = \
+ OgreBulletCollisionsDebugContact.h \
+ OgreBulletCollisionsDebugDrawer.h \
+ OgreBulletCollisionsDebugLines.h \
+ OgreBulletCollisionsDebugShape.h
+
Index: Collisions/include/Makefile.am
===================================================================
--- Collisions/include/Makefile.am (revision 0)
+++ Collisions/include/Makefile.am (revision 0)
@@ -0,0 +1,13 @@
+ogrebulletcolincludedir = $(includedir)/OgreBullet/Collisions
+
+SUBDIRS = Debug Shapes Utils
+
+ogrebulletcolinclude_HEADERS = \
+ OgreBulletCollisions.h \
+ OgreBulletCollisionsObject.h \
+ OgreBulletCollisionsObjectState.h \
+ OgreBulletCollisionsPreRequisites.h \
+ OgreBulletCollisionsRay.h \
+ OgreBulletCollisionsShape.h \
+ OgreBulletCollisionsWorld.h
+
Index: Collisions/src/Makefile.am
===================================================================
--- Collisions/src/Makefile.am (revision 0)
+++ Collisions/src/Makefile.am (revision 0)
@@ -0,0 +1,37 @@
+INCLUDES = \
+ ${OGRE_CFLAGS} \
+ ${bullet_CFLAGS} \
+ -I../include
+
+lib_LTLIBRARIES = libOgreBulletCol.la
+
+libOgreBulletCol_la_SOURCES = \
+ OgreBulletCollisionsObject.cpp \
+ OgreBulletCollisionsObjectState.cpp \
+ OgreBulletCollisionsPrecompiled.cpp \
+ OgreBulletCollisionsRay.cpp \
+ OgreBulletCollisionsShape.cpp \
+ OgreBulletCollisionsWorld.cpp \
+ Debug/OgreBulletCollisionsDebugContact.cpp \
+ Debug/OgreBulletCollisionsDebugDrawer.cpp \
+ Debug/OgreBulletCollisionsDebugLines.cpp \
+ Debug/OgreBulletCollisionsDebugShape.cpp \
+ Shapes/OgreBulletCollisionsBoxShape.cpp \
+ Shapes/OgreBulletCollisionsCapsuleShape.cpp \
+ Shapes/OgreBulletCollisionsCompoundShape.cpp \
+ Shapes/OgreBulletCollisionsConeShape.cpp \
+ Shapes/OgreBulletCollisionsConvexHullShape.cpp \
+ Shapes/OgreBulletCollisionsCylinderShape.cpp \
+ Shapes/OgreBulletCollisionsGImpactShape.cpp \
+ Shapes/OgreBulletCollisionsMinkowskiSumShape.cpp \
+ Shapes/OgreBulletCollisionsMultiSphereShape.cpp \
+ Shapes/OgreBulletCollisionsSphereShape.cpp \
+ Shapes/OgreBulletCollisionsStaticPlaneShape.cpp \
+ Shapes/OgreBulletCollisionsTriangleShape.cpp \
+ Shapes/OgreBulletCollisionsTrimeshShape.cpp \
+ Utils/OgreBulletCollisionsMeshToShapeConverter.cpp
+
+libOgreBulletCol_la_LIBADD = \
+ $(OGRE_LIBS) \
+ $(bullet_LIBS)
+
Index: Collisions/Makefile.am
===================================================================
--- Collisions/Makefile.am (revision 0)
+++ Collisions/Makefile.am (revision 0)
@@ -0,0 +1,2 @@
+SUBDIRS = include src
+

dacohen

03-05-2008 15:50:33

I forgot to mention. This file was created with 'svn diff' command.
I also modified 2 original files (as you can see on previously posted diff file) to be compilable on unix system. But these changes should not affect WIN32 platform.

BR,

David

dacohen

06-05-2008 19:23:47

Hi,

I'm posting this second patch fixing some errors in the first one.

BR,

David Cohen <dacohen@gmail.com>

Index: configure.ac
===================================================================
--- configure.ac (revision 0)
+++ configure.ac (revision 0)
@@ -0,0 +1,40 @@
+# Author: David Cohen <dacohen@gmail.com>
+# Modified: 05/02/2008
+
+AC_PREREQ(2.59)
+AC_INIT([OgreBullet], [0.2])
+AM_INIT_AUTOMAKE([OgreBullet], [0.2])
+AM_CONFIG_HEADER([config.h])
+
+AM_INIT_AUTOMAKE([foreign dist-bzip2])
+
+dnl Checks for programs
+AC_PROG_CXX
+AC_PROG_LIBTOOL
+
+PKG_CHECK_MODULES(OGRE, [OGRE >= 1.4.0],,
+ AC_MSG_ERROR([OGRE is required to compile OgreBullet]))
+AC_SUBST(OGRE_CFLAGS)
+AC_SUBST(OGRE_LIBS)
+
+PKG_CHECK_MODULES(bullet, [bullet >= 2.6.0],,
+ AC_MSG_ERROR([Bullet is required to compile OgreBullet]))
+AC_SUBST(bullet_CFLAGS)
+AC_SUBST(bullet_LIBS)
+
+AC_CONFIG_FILES([Makefile
+ Collisions/Makefile
+ Collisions/src/Makefile
+ Collisions/include/Makefile
+ Collisions/include/Debug/Makefile
+ Collisions/include/Shapes/Makefile
+ Collisions/include/Utils/Makefile
+ Dynamics/Makefile
+ Dynamics/src/Makefile
+ Dynamics/include/Makefile
+ Dynamics/include/Constraints/Makefile
+ OgreBullet.pc
+ ])
+
+AC_OUTPUT
+
Index: Dynamics/include/Constraints/Makefile.am
===================================================================
--- Dynamics/include/Constraints/Makefile.am (revision 0)
+++ Dynamics/include/Constraints/Makefile.am (revision 0)
@@ -0,0 +1,9 @@
+ogrebulletdynconstraintsincludedir = $(includedir)/OgreBullet/Dynamics/Constraints
+
+ogrebulletdynconstraintsinclude_HEADERS = \
+ OgreBulletDynamics6DofConstraint.h \
+ OgreBulletDynamicsConeTwistConstraint.h \
+ OgreBulletDynamicsHingeConstraint.h \
+ OgreBulletDynamicsPoint2pointConstraint.h \
+ OgreBulletDynamicsRaycastVehicle.h
+
Index: Dynamics/include/Makefile.am
===================================================================
--- Dynamics/include/Makefile.am (revision 0)
+++ Dynamics/include/Makefile.am (revision 0)
@@ -0,0 +1,12 @@
+ogrebulletdynincludedir = $(includedir)/OgreBullet/Dynamics
+
+SUBDIRS = Constraints
+
+ogrebulletdyninclude_HEADERS = \
+ OgreBulletDynamicsConstraint.h \
+ OgreBulletDynamics.h \
+ OgreBulletDynamicsObjectState.h \
+ OgreBulletDynamicsPreRequisites.h \
+ OgreBulletDynamicsRigidBody.h \
+ OgreBulletDynamicsWorld.h
+
Index: Dynamics/src/Makefile.am
===================================================================
--- Dynamics/src/Makefile.am (revision 0)
+++ Dynamics/src/Makefile.am (revision 0)
@@ -0,0 +1,26 @@
+INCLUDES = \
+ ${OGRE_CFLAGS} \
+ ${bullet_CFLAGS} \
+ -I../../Collisions/include \
+ -I../include
+
+lib_LTLIBRARIES = libOgreBulletDyn.la
+
+libOgreBulletDyn_la_SOURCES = \
+ OgreBulletDynamicsConstraint.cpp \
+ OgreBulletDynamicsObjectState.cpp \
+ OgreBulletDynamicsPrecompiled.cpp \
+ OgreBulletDynamicsRigidBody.cpp \
+ OgreBulletDynamicsWorld.cpp \
+ Constraints/OgreBulletDynamics6DofConstraint.cpp \
+ Constraints/OgreBulletDynamicsConeTwistConstraint.cpp \
+ Constraints/OgreBulletDynamicsHingeConstraint.cpp \
+ Constraints/OgreBulletDynamicsPoint2pointConstraint.cpp \
+ Constraints/OgreBulletDynamicsRaycastVehicle.cpp
+
+libOgreBulletDyn_la_LIBADD = \
+ $(OGRE_LIBS) \
+ $(bullet_LIBS) \
+ -L../../Collisions/src \
+ -lOgreBulletCol
+
Index: Dynamics/Makefile.am
===================================================================
--- Dynamics/Makefile.am (revision 0)
+++ Dynamics/Makefile.am (revision 0)
@@ -0,0 +1,2 @@
+SUBDIRS = include src
+
Index: Makefile.am
===================================================================
--- Makefile.am (revision 0)
+++ Makefile.am (revision 0)
@@ -0,0 +1,5 @@
+SUBDIRS = Collisions Dynamics
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = OgreBullet.pc
+
Index: OgreBullet.pc.in
===================================================================
--- OgreBullet.pc.in (revision 0)
+++ OgreBullet.pc.in (revision 0)
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: OgreBullet
+Description: Ogre's wrapper for Bullet library
+Version: @VERSION@
+Libs: -L${libdir} -lOgreBulletCol -lOgreBulletDyn
+Cflags: -I${includedir}/OgreBullet/Collisions -I${includedir}/OgreBullet/Dynamics
Index: autogen.sh
===================================================================
--- autogen.sh (revision 0)
+++ autogen.sh (revision 0)
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+rm -f config.cache
+rm -drf autom4te.cache
+libtoolize --force
+echo "Running aclocal"
+aclocal -I .
+echo "Running autoheader"
+autoheader
+echo "Running automake"
+automake --foreign --add-missing --include-deps &&
+echo "Running autoconf"
+autoconf
+echo "Now you are ready to run ./configure"
+
+exit 0

Property changes on: autogen.sh
___________________________________________________________________
Name: svn:executable
+ *

Index: Collisions/include/Utils/OgreBulletCollisionsMeshToShapeConverter.h
===================================================================
--- Collisions/include/Utils/OgreBulletCollisionsMeshToShapeConverter.h (revision 2435)
+++ Collisions/include/Utils/OgreBulletCollisionsMeshToShapeConverter.h (working copy)
@@ -111,15 +111,15 @@
void addEntity(Ogre::Entity *entity,const Ogre::Matrix4 &transform = Ogre::Matrix4::IDENTITY);
void addMesh(const Ogre::MeshPtr &mesh, const Ogre::Matrix4 &transform);

- BoxCollisionShape* AnimatedMeshToShapeConverter::createAlignedBox(unsigned char bone,
+ BoxCollisionShape* createAlignedBox(unsigned char bone,
const Ogre::Vector3 &bonePosition,
const Ogre::Quaternion &boneOrientation);

- BoxCollisionShape* AnimatedMeshToShapeConverter::createOrientedBox(unsigned char bone,
+ BoxCollisionShape* createOrientedBox(unsigned char bone,
const Ogre::Vector3 &bonePosition,
const Ogre::Quaternion &boneOrientation);

- CapsuleCollisionShape* AnimatedMeshToShapeConverter::createOrientedCapsuleCollisionShape(unsigned char bone,
+ CapsuleCollisionShape* createOrientedCapsuleCollisionShape(unsigned char bone,
const Ogre::Vector3 &bonePosition,
const Ogre::Quaternion &boneOrientation);

Index: Collisions/include/Utils/Makefile.am
===================================================================
--- Collisions/include/Utils/Makefile.am (revision 0)
+++ Collisions/include/Utils/Makefile.am (revision 0)
@@ -0,0 +1,6 @@
+ogrebulletcolutilsincludedir = $(includedir)/OgreBullet/Collisions/Utils
+
+ogrebulletcolutilsinclude_HEADERS = \
+ OgreBulletCollisionsMeshToShapeConverter.h \
+ OgreBulletConverter.h
+
Index: Collisions/include/Shapes/OgreBulletCollisionsGImpactShape.h
===================================================================
--- Collisions/include/Shapes/OgreBulletCollisionsGImpactShape.h (revision 2435)
+++ Collisions/include/Shapes/OgreBulletCollisionsGImpactShape.h (working copy)
@@ -35,7 +35,11 @@

namespace OgreBulletCollisions
{
+#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
class __declspec( dllexport ) GImpactConcaveShape : public CollisionShape
+#else
+ class GImpactConcaveShape : public CollisionShape
+#endif
{
public:
GImpactConcaveShape(Ogre::Vector3 *_vertices, unsigned int _vertex_count, unsigned int *_indices, unsigned int_index_count);
Index: Collisions/include/Shapes/Makefile.am
===================================================================
--- Collisions/include/Shapes/Makefile.am (revision 0)
+++ Collisions/include/Shapes/Makefile.am (revision 0)
@@ -0,0 +1,18 @@
+ogrebulletcolshapesincludedir = $(includedir)/OgreBullet/Collisions/Shapes
+
+ogrebulletcolshapesinclude_HEADERS = \
+ OgreBulletCollisionsBoxShape.h \
+ OgreBulletCollisionsCapsuleShape.h \
+ OgreBulletCollisionsCompoundShape.h \
+ OgreBulletCollisionsConeShape.h \
+ OgreBulletCollisionsConvexHullShape.h \
+ OgreBulletCollisionsCylinderShape.h \
+ OgreBulletCollisionsGImpactShape.h \
+ OgreBulletCollisionsMinkowskiSumShape.h \
+ OgreBulletCollisionsMultiSphereShape.h \
+ OgreBulletCollisionsSphereShape.h \
+ OgreBulletCollisionsStaticPlaneShape.h \
+ OgreBulletCollisionsTerrainShape.h \
+ OgreBulletCollisionsTriangleShape.h \
+ OgreBulletCollisionsTrimeshShape.h
+
Index: Collisions/include/Debug/Makefile.am
===================================================================
--- Collisions/include/Debug/Makefile.am (revision 0)
+++ Collisions/include/Debug/Makefile.am (revision 0)
@@ -0,0 +1,8 @@
+ogrebulletcoldebugincludedir = $(includedir)/OgreBullet/Collisions/Debug
+
+ogrebulletcoldebuginclude_HEADERS = \
+ OgreBulletCollisionsDebugContact.h \
+ OgreBulletCollisionsDebugDrawer.h \
+ OgreBulletCollisionsDebugLines.h \
+ OgreBulletCollisionsDebugShape.h
+
Index: Collisions/include/Makefile.am
===================================================================
--- Collisions/include/Makefile.am (revision 0)
+++ Collisions/include/Makefile.am (revision 0)
@@ -0,0 +1,13 @@
+ogrebulletcolincludedir = $(includedir)/OgreBullet/Collisions
+
+SUBDIRS = Debug Shapes Utils
+
+ogrebulletcolinclude_HEADERS = \
+ OgreBulletCollisions.h \
+ OgreBulletCollisionsObject.h \
+ OgreBulletCollisionsObjectState.h \
+ OgreBulletCollisionsPreRequisites.h \
+ OgreBulletCollisionsRay.h \
+ OgreBulletCollisionsShape.h \
+ OgreBulletCollisionsWorld.h
+
Index: Collisions/src/Makefile.am
===================================================================
--- Collisions/src/Makefile.am (revision 0)
+++ Collisions/src/Makefile.am (revision 0)
@@ -0,0 +1,37 @@
+INCLUDES = \
+ ${OGRE_CFLAGS} \
+ ${bullet_CFLAGS} \
+ -I../include
+
+lib_LTLIBRARIES = libOgreBulletCol.la
+
+libOgreBulletCol_la_SOURCES = \
+ OgreBulletCollisionsObject.cpp \
+ OgreBulletCollisionsObjectState.cpp \
+ OgreBulletCollisionsPrecompiled.cpp \
+ OgreBulletCollisionsRay.cpp \
+ OgreBulletCollisionsShape.cpp \
+ OgreBulletCollisionsWorld.cpp \
+ Debug/OgreBulletCollisionsDebugContact.cpp \
+ Debug/OgreBulletCollisionsDebugDrawer.cpp \
+ Debug/OgreBulletCollisionsDebugLines.cpp \
+ Debug/OgreBulletCollisionsDebugShape.cpp \
+ Shapes/OgreBulletCollisionsBoxShape.cpp \
+ Shapes/OgreBulletCollisionsCapsuleShape.cpp \
+ Shapes/OgreBulletCollisionsCompoundShape.cpp \
+ Shapes/OgreBulletCollisionsConeShape.cpp \
+ Shapes/OgreBulletCollisionsConvexHullShape.cpp \
+ Shapes/OgreBulletCollisionsCylinderShape.cpp \
+ Shapes/OgreBulletCollisionsGImpactShape.cpp \
+ Shapes/OgreBulletCollisionsMinkowskiSumShape.cpp \
+ Shapes/OgreBulletCollisionsMultiSphereShape.cpp \
+ Shapes/OgreBulletCollisionsSphereShape.cpp \
+ Shapes/OgreBulletCollisionsStaticPlaneShape.cpp \
+ Shapes/OgreBulletCollisionsTriangleShape.cpp \
+ Shapes/OgreBulletCollisionsTrimeshShape.cpp \
+ Utils/OgreBulletCollisionsMeshToShapeConverter.cpp
+
+libOgreBulletCol_la_LIBADD = \
+ $(OGRE_LIBS) \
+ $(bullet_LIBS)
+
Index: Collisions/Makefile.am
===================================================================
--- Collisions/Makefile.am (revision 0)
+++ Collisions/Makefile.am (revision 0)
@@ -0,0 +1,2 @@
+SUBDIRS = include src
+

vbuser1338

09-05-2008 01:54:44

I copied those makefiles and edited the files. Everything compiles fine but I am unable to link them in an application. I've tried different orders but none of them worked. If I try the order
-lOgreBulletDyn
-lOgreBulletCol
-lbulletcollision
-lbulletdynamics
-lbulletmath
I get
/usr/local/lib/libOgreBulletCol.so||undefined reference to `btGImpactQuantizedBvh::refit()'|
/usr/local/lib/libOgreBulletDyn.so||undefined reference to `btGImpactCollisionAlgorithm::registerAlgorithm(btCollisionDispatcher*)'|
/usr/local/lib/libOgreBulletCol.so||undefined reference to `OgreBulletCollisions::CollisionRayResultCallback::getRayEndPoint() const'|
/usr/local/lib/libOgreBulletCol.so||undefined reference to `vtable for btGImpactMeshShapePart'|
/usr/local/lib/libOgreBulletCol.so||undefined reference to `vtable for btGImpactMeshShape'|
/usr/local/lib/libOgreBulletCol.so||undefined reference to `OgreBulletCollisions::CollisionRayResultCallback::getRayStartPoint() const'|
/usr/local/lib/libOgreBulletCol.so||undefined reference to `btGImpactQuantizedBvh::buildSet()'|

Could you please post your linking order.

Thanks

btmorex

09-05-2008 04:08:40

I'd try:

bulletmath
bulletcollision
bulletdynamics
OgreBulletCol
OgreBulletDyn

in that order.

dacohen

09-05-2008 14:43:14

Hi,

I'm getting this problems too. I've solved almost everything just compiling bullet library as shared lib.
Now, I have just 1 error:
/libOgreBulletCol.so: undefined reference to `OgreBulletCollisions::CollisionRayResultCallback::getRayStartPoint() const'

When I fix it, I'll get in touch.

BR,

David Cohen

tuan kuranes

13-05-2008 16:16:36

SVN has 'linux patch' in it.

Thanks !

pepel

23-05-2008 17:19:29

Dear all,

just "svn co'ed" ogrebullet on a linux and have some problems.

First: (solved)

./Collisions/include/Shapes/OgreBulletCollisionsTerrainShape.h:#include
"OgreBulletCollisionsPrerequisites.h"

should be

./Collisions/include/Shapes/OgreBulletCollisionsTerrainShape.h:#include
"OgreBulletCollisionsPreRequisites.h"


(note the capital R in Requisites)

Second (solved)

The libOgreBulletDyn is not build automatically... I had to manually go to Dynamics/src and just type 'make'.

Third (unsoved!!!)

building the demos I have these errors:


/usr/local/lib/libOgreBulletCol.so: undefined reference to `vtable for btGImpactMeshShapePart'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `btGImpactCollisionAlgorithm::registerAlgorithm(btCollisionDispatcher*)'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `OgreBulletCollisions::CollisionRayResultCallback::getRayEndPoint() const'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `OgreBulletCollisions::CollisionRayResultCallback::getRayStartPoint() const'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `btGImpactQuantizedBvh::buildSet()'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `btGImpactQuantizedBvh::refit()'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `vtable for btGImpactMeshShape'


I cannot clear these errors :(

I have tried to build/link demos with:


g++ -o main main.cpp Primitives_Demo.o Constraints_Demo.o Ragdoll_Demo.o Terrain_Demo.o TriMesh_Demo.o Vehicle_Demo.o -I/home/pepel/game/ogrebullet/Demos/Dynamics_Demos/include -I/usr/local/include/OGRE/ -I/usr/local/include/OgreBullet/Collisions -I/usr/local/include/OgreBullet/Dynamics -I/usr/local/include/bullet/ -I/home/pepel/game/ogrebullet/Demos/include/ -I/home/pepel/game/ogre/Samples/Common/include/ -L/usr/local/lib -lOgreMain -L/usr/local/lib -lbulletmath -lbulletcollision -lbulletdynamics -lOgreBulletCol -lOgreBulletDyn -lCEGUIOgreRenderer -lbulletsoftbody -lCEGUIBase -lOIS /home/pepel/game/ogrebullet/Demos/src/*.o


each cpp build with:

g++ -c $1 -o $(basename $1 .cpp).o -I../include -I/usr/local/include/OGRE/ -I/usr/local/include/OgreBullet/Collisions -I/usr/local/include/OgreBullet/Dynamics -I/usr/local/include/bullet/ -I/home/pepel/game/ogre/Samples/Common/include/


any hint/idea???

thanks!

P.D. Is there any bugtracker in which I could post the errors found???


P.D. forgot to say: I'm using ogre 1.4.8 and bullet 2.68 in an ubuntu 8.04

pepel

23-05-2008 22:11:15

I did get "only" these errors:

/usr/local/lib/libOgreBulletCol.so: undefined reference to `vtable for btGImpactMeshShapePart'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `btGImpactCollisionAlgorithm::registerAlgorithm(btCollisionDispatcher*)'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `btGImpactQuantizedBvh::buildSet()'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `btGImpactQuantizedBvh::refit()'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `vtable for btGImpactMeshShape'


bye just refining in Collisions/include/OgreBulletCollisionsRay.h getRayStartPoint and getRayEndPoint as: (I took out the inline...)

Ogre::Vector3 getRayStartPoint() const;
Ogre::Vector3 getRayEndPoint() const;


EDIT: SOLVED LAST ERRORS ABOUT btGImpact by just compiling Extras/GIMPACT in the bullet code!! (install the library, link with it, and Demos will link correctly )

regards,

thanks in advance

vbuser1338

25-05-2008 05:53:49

Have you been able to run the demo? I compiled it and ran it but get a segfault when I exit the demo. I also get it in a simple application I put together. It only happens if I can stepSimulation. To fix the gimpact linking errors I linked to bullet-2.68/out/linuxx86/optimize/libs/libGIMPACT.a

pepel

25-05-2008 10:42:19

I linked with gimpact also (but I linked bullet libraries shared, instead of static)

THe only problem with the demo is about performance... I get only 2.5fps in the ogrebullet demo (while in ogre demos and bullet demos I get 400+fps)

regards,

pepel

27-05-2008 11:46:34

Have you been able to run the demo? I compiled it and ran it but get a segfault when I exit the demo. I also get it in a simple application I put together. It only happens if I can stepSimulation.

Hi, you are right, I also get a segfault when I exit the demo...

regards,

bjtp

18-07-2008 14:28:53

After the usual patching I managed to compile the demo. Then there was no resources.cfg etc., I wrote one from scratch, until the demo stoppt complaining when started.

Now it crashes with an GLX-Window-Error.

X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 143 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 68
Current serial number in output stream: 68

I remember to run into a common error with the PLSM demo, where the OIS window initialisation is broken. I could patch it there, but this time i could not.

Is anybody able to run the demos under Linux? (... using Ogre 1.4.9, bullet 2.69 and OgreBullet from svn)

Is there any other kind of documentation for OgreBullet?

bjtp

18-07-2008 15:54:29

Ha! Changed from PBuffer to FBO, now it works!

Karl

27-07-2008 20:00:08

Hi all!
I'm trying to compile ogrebullet demo since few days without succes..
(using bullet-2.70-beta3, cvs ogrebullet and ogre ogre-v1-4-9)

Linking order:
g++ -o main main.cpp Primitives_Demo.o [..].o
-I/home/[myDesk]/ogrebullet/Demos/Dynamics_Demos/include
-I/usr/local/include/OGRE/
-I/usr/local/include/OgreBullet/Collisions
-I/usr/local/include/OgreBullet/Dynamics
-I/usr/local/include/bullet/
-I/home/[myDesk]/ogrebullet/Demos/include/
-I/home/[myDesk]/ogre/Samples/Common/include/
-L/usr/local/lib -lOgreMain -lbulletdynamics -lbulletcollision -lbulletmath -lOgreBulletCol -lGIMPACT -lOgreBulletDyn -lbulletsoftbody -lOIS /home/[myDesk]/ogrebullet/Demos/src/*.o

results:
/usr/local/lib/libGIMPACT.a(btGImpactCollisionAlgorithm.o): In function `btGImpactCollisionAlgorithm::gimpact_vs_shape(btCollisionObject*, btCollisionObject*, btGImpactShapeInterface*, btCollisionShape*, bool)':
btGImpactCollisionAlgorithm.cpp:(.text+0x268e): undefined reference to `btBU_Simplex1to4::btBU_Simplex1to4()'
[..]

If I just change the position of libGIMPACT.a in linking order, I get:
/usr/local/lib/libOgreBulletCol.so: undefined reference to `btGImpactQuantizedBvh::refit()'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `btGImpactCollisionAlgorithm::registerAlgorithm(btCollisionDispatcher*)'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `vtable for btGImpactMeshShapePart'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `vtable for btGImpactMeshShape'
/usr/local/lib/libOgreBulletCol.so: undefined reference to `btGImpactQuantizedBvh::buildSet()'

Could you help me please?
Charles

nikki

09-08-2008 06:44:12

Isn't ./configure supposed to create a Makefile? I don't get a Makefile after configuring, and so can't run make! I wasn't able to run autogen.sh, so I did its contents step by step, but no makefile is created after ./configure!

What are the exact steps for installing?

EDIT: Ok, fixed it now, it had CRLF line endings.

julio

18-08-2008 16:27:05

Hi all,

We are trying to compile ogrebullet in linux (ubuntu) and we are having a problem. The steps we have followed are:

- install tofro2
- dos2unix `find ./ -type f`
- sh autogen.sh
- we receive the message "now you are ready to run ./configure"

But when we run the configure we get the following error:

"checking for bullet... no"
"configure: error: bullet is required to compile OgreBullet".

We have tried setting ogre bullet libs in the local/lib dir, and to set the env varialbles bullet_LIBS and BULLET_HOME to the bullet home dir but it does not work.

Any ideas about where should we put bullet or can we make the configure find it?

We are using the last version of OgreBullet and bullet 2.7

Thanks in advance!
Julio

nikki

21-08-2008 16:27:16

Are you sure you've completely built and installed Bullet? You should get Bullet (not OgreBullet, Bullet), and run './configure', 'jam', and 'jam install'.

dedesite

02-09-2008 20:42:15

Hi Julio,
I have the same problem as your, and I don't know how to fix it.

Are you sure you've completely built and installed Bullet? You should get Bullet (not OgreBullet, Bullet), and run './configure', 'jam', and 'jam install'.

In my case, I didn't use jam to compil bullet but cmake instead (the 2 solutions are possible), can the problem be due to that?

Greetings,
Andreas

Chance

23-09-2008 14:59:49

You need to locate bullet.pc adjust it to your system and place it somewhere where pkg-config can find it. (Easiest by jam installing bullet :wink: )

I also had problems with getRayStartPoint() and the like, I think it originates from the code for the inlines being in the .cpp file instead of the .h (which would be normal? Don't know) .
It is easy to patch as some people already pointed out and I don't think there is a reason not to incorporate it into svn. I can provide the patch if needed. Same thing with the dos endings in autogen.sh and some other files.

dedesite

23-09-2008 17:09:32

Thanks Chance,

Finally I've downloaded Bullet 2.68 and compiled it with Jam and had no problem to compil OgreBullet.
I didn't manage to compil my own project but it's another problem...

Greetings,
Andreas