Using the usual configure approach didn't get me anywhere but cmake was some kind of help. The following is what I did:
- remove Extras and Demos from bullet-2.4/CMakeLists.txt
- added to src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp in line 104 (got error: expected to return a value)
Code: Select all
return false;
- in src/LinearMath/btQuickprof.h I added
as sprintf was missing.
Code: Select all
#if defined (SUNOS) || defined (__SUNOS__) #include <stdio.h> #endif
- I added the following to the CMakeLists.txt files to get support for stlport and have the SUNOS define:
Code: Select all
src/BulletDynamics/CMakeLists.txt: SET_TARGET_PROPERTIES(LibBulletDynamics PROPERTIES LINK_FLAGS "-library=stlport4" COMPILE_FLAGS "-library=stlport4 -DSUNOS") src/BulletCollision/CMakeLists.txt: SET_TARGET_PROPERTIES(LibBulletCollision PROPERTIES LINK_FLAGS "-library=stlport4" COMPILE_FLAGS "-library=stlport4 -DSUNOS") src/LinearMath/CMakeLists.txt: SET_TARGET_PROPERTIES(LibLinearMath PROPERTIES LINK_FLAGS "-library=stlport4" COMPILE_FLAGS "-library=stlport4 -DSUNOS")
- set shell variable CC=cc and CXX=CC to use SunStudio compilers
- call cmake . and make
- have fun
Thanks for paying attention,
Noehrgel
EDIT: to quote R.v.d.P. "always use -fast with SunStudio!" I forgot to do this in the above settings. Result was that my demo application spent most of the time in the collision detection. Using -fast this is approx. 1/4th of the overall time.