*Not sure where this should be put, so an admin might want to refile it.*
I am having difficulties installing PAL using Bullet-Physics under linux with premake. I installed bullet and irrlicht with no problems, but PAL wont seem to work and is complaining about HULL.cpp. I'm also a little confused about install process itself as explained at http://www.adrianboeing.com/pal/install_generic.html. Premake, gnu tools and other libraries were retreaved through Ubuntu 12.04LTS "sudo apt-get install ..." process. Has anyone here had any luck with this?
Irrlicht+BulletPhysics+PAL
Re: Irrlicht+BulletPhysics+PAL
While bullet-physics was originally installed using the methods described at http://www.warp1337.com/content/compile ... -910-howto and PAL was attempted unsuccessfully via methods described at http://www.adrianboeing.com/pal/install_generic.html, although still not working further progress was made with steps outlined at http://willkamp.blogspot.com/2009/04/co ... r-pal.html. This last reference states that the methods described on PAL's own website are inadequate and outdated (the premake method), in favor of the "newer" install tool known as cmake. Using CMAKE instead of PREMAKE seems to all the fix the HULL.cpp errors.
Re: Irrlicht+BulletPhysics+PAL
Again, bullet-physics installs fine (as far as I can tell). This time using multiple core/CPU option as mentioned on the new link.
Code: Select all
USR@USR-desktop:~/svn/pal/bin$ make
Scanning dependencies of target libpal
[ 1%] Building CXX object pal/CMakeFiles/libpal.dir/__/framework/errorlog.cpp.o
[ 2%] Building CXX object pal/CMakeFiles/libpal.dir/__/framework/factoryconfig.cpp.o
[ 4%] Building CXX object pal/CMakeFiles/libpal.dir/__/framework/osfs.cpp.o
[ 5%] Building CXX object pal/CMakeFiles/libpal.dir/__/framework/os.cpp.o
[ 7%] Building CXX object pal/CMakeFiles/libpal.dir/__/framework/statusobject.cpp.o
[ 8%] Building CXX object pal/CMakeFiles/libpal.dir/pal.cpp.o
[ 10%] Building CXX object pal/CMakeFiles/libpal.dir/palActuators.cpp.o
[ 11%] Building CXX object pal/CMakeFiles/libpal.dir/palBodies.cpp.o
[ 12%] Building CXX object pal/CMakeFiles/libpal.dir/palBodyBase.cpp.o
[ 14%] Building CXX object pal/CMakeFiles/libpal.dir/palCollision.cpp.o
[ 15%] Building CXX object pal/CMakeFiles/libpal.dir/palException.cpp.o
[ 17%] Building CXX object pal/CMakeFiles/libpal.dir/palFactory.cpp.o
[ 18%] Building CXX object pal/CMakeFiles/libpal.dir/palFluid.cpp.o
[ 20%] Building CXX object pal/CMakeFiles/libpal.dir/palGeometry.cpp.o
[ 21%] Building CXX object pal/CMakeFiles/libpal.dir/palLinks.cpp.o
[ 22%] Building CXX object pal/CMakeFiles/libpal.dir/palMath.cpp.o
[ 24%] Building CXX object pal/CMakeFiles/libpal.dir/palSensors.cpp.o
[ 25%] Building CXX object pal/CMakeFiles/libpal.dir/palSolver.cpp.o
[ 27%] Building CXX object pal/CMakeFiles/libpal.dir/palStatic.cpp.o
[ 28%] Building CXX object pal/CMakeFiles/libpal.dir/palSoftBody.cpp.o
[ 30%] Building CXX object pal/CMakeFiles/libpal.dir/palStringable.cpp.o
[ 31%] Building CXX object pal/CMakeFiles/libpal.dir/palTerrain.cpp.o
Re: Irrlicht+BulletPhysics+PAL
Code: Select all
[ 32%] Building CXX object pal/CMakeFiles/libpal.dir/palCharacter.cpp.o
[ 34%] Building CXX object pal/CMakeFiles/libpal.dir/__/pal_i/hull.cpp.o
Linking CXX shared library ../lib/libpal.so
[ 34%] Built target libpal
Scanning dependencies of target libpal_bullet
[ 35%] Building CXX object pal_i/CMakeFiles/libpal_bullet.dir/bullet/bullet_pal.cpp.o
/home/USR/svn/pal/pal/pal_i/bullet/bullet_pal.cpp: In function ‘bool CustomMaterialCombinerCallback(btManifoldPoint&, const btCollisionObject*, int, int, const btCollisionObject*, int, int)’:
/home/USR/svn/pal/pal/pal_i/bullet/bullet_pal.cpp:219:66: error: cannot convert ‘const btCollisionObject*’ to ‘const btCollisionObjectWrapper*’ for argument ‘2’ to ‘void btAdjustInternalEdgeContacts(btManifoldPoint&, const btCollisionObjectWrapper*, const btCollisionObjectWrapper*, int, int, int)’
/home/USR/svn/pal/pal/pal_i/bullet/bullet_pal.cpp: In member function ‘virtual void palBulletPhysics::RayCast(Float, Float, Float, Float, Float, Float, Float, palRayHit&)’:
/home/USR/svn/pal/pal/pal_i/bullet/bullet_pal.cpp:370:72: error: invalid conversion from ‘const btRigidBody*’ to ‘btRigidBody*’ [-fpermissive]
/home/USR/svn/pal/pal/pal_i/bullet/bullet_pal.cpp: In member function ‘virtual btScalar palBulletCustomResultCallback::addSingleResult(btCollisionWorld::LocalRayResult&, bool)’:
/home/USR/svn/pal/pal/pal_i/bullet/bullet_pal.cpp:416:70: error: invalid conversion from ‘const btRigidBody*’ to ‘btRigidBody*’ [-fpermissive]
/home/USR/svn/pal/pal/pal_i/bullet/bullet_pal.cpp: In member function ‘virtual void palBulletPhysics::Init(const palPhysicsDesc&)’:
/home/USR/svn/pal/pal/pal_i/bullet/bullet_pal.cpp:761:28: error: invalid conversion from ‘bool (*)(btManifoldPoint&, const btCollisionObject*, int, int, const btCollisionObject*, int, int)’ to ‘ContactAddedCallback {aka bool (*)(btManifoldPoint&, const btCollisionObjectWrapper*, int, int, const btCollisionObjectWrapper*, int, int)}’ [-fpermissive]
/home/USR/svn/pal/pal/pal_i/bullet/bullet_pal.cpp: In member function ‘virtual void palBulletPhysics::StartIterate(Float)’:
/home/USR/svn/pal/pal/pal_i/bullet/bullet_pal.cpp:858:88: error: static_cast from type ‘const btCollisionObject*’ to type ‘btCollisionObject*’ casts away qualifiers
/home/USR/svn/pal/pal/pal_i/bullet/bullet_pal.cpp:859:88: error: static_cast from type ‘const btCollisionObject*’ to type ‘btCollisionObject*’ casts away qualifiers
make[2]: *** [pal_i/CMakeFiles/libpal_bullet.dir/bullet/bullet_pal.cpp.o] Error 1
make[1]: *** [pal_i/CMakeFiles/libpal_bullet.dir/all] Error 2
make: *** [all] Error 2
Re: Irrlicht+BulletPhysics+PAL
cmake-gui says this:
This is using the flag: "-fPIC -fpermissive"
Code: Select all
Could NOT find GTest (missing: GTEST_LIBRARY GTEST_MAIN_LIBRARY)
Google Test framework not found. Unit tests not enabled.
Found X11: /usr/lib/i386-linux-gnu/libX11.so
/!\ WARNING: ODE_LIBRARY_MODULE not defined. You may have to manually copy ODE release DLL to runtime output directory (/home/uu2/pal/pal/lib).
/!\ WARNING: SDL_LIBRARY_MODULE not defined. You may have to manually copy SDL release DLL to runtime output directory (/home/uu2/pal/pal/bin).
--- Looking for Xxf86vm - found
--- Libs: /usr/lib/i386-linux-gnu/libXxf86vm.so
--- Looking for JPEG library - found
--- Libs: /usr/lib/i386-linux-gnu/libjpeg.so
--- Looking for PNG library - found
--- Libs: /usr/lib/i386-linux-gnu/libpng.so
Found Irrlicht: include dirs='/usr/local/include', libs='/usr/local/lib/libIrrlicht.a'
*** FindIRRLICHT: final IRRLICHT_LIBRARIES=/usr/local/lib/libIrrlicht.a;/usr/lib/i386-linux-gnu/libSM.so;/usr/lib/i386-linux-gnu/libICE.so;/usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so;/usr/lib/i386-linux-gnu/libXxf86vm.so;/usr/lib/i386-linux-gnu/libjpeg.so;/usr/lib/i386-linux-gnu/libpng.so
Configuring done
Re: Irrlicht+BulletPhysics+PAL
http://irrlicht.sourceforge.net/forum/v ... 8&p=305750 wrapper here for this, works on linux.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%