I tried the PocketTest.zip file and what I found was that once I fixed some of the integration issues the demo worked. What was required to get things to compile (for me) was:
1. The file Examples/PocketTest/Main.cpp was in a unicode format which gcc does not understand (emacs does but vi does not). I converted into a standard ASCII file.
2. Reference to some of the include files needed to be changed (gl->GL, box2d->Box2D). Maybe some compilers/OS does look at case for include files?
3. Lots of references in printf with float32 variables. This must be explicitly cast to float because printf does not know how to print Fixed variable.
4. The first shape created in Tests/VaryingFriction.h is too big. Change 100.0 to 50.0.
5. RenderGIF does not compile at all because it references a "color" field in the b2Color type, which does not exist. eliminated the references so things would compile.
6. Fixed a type issue in Main.cpp with settings.Hz (have to cast 0.0 to float32(0.0)).
7. #defined _MAX_PATH to 1024
I compiled the fixed point stuff with the following (from a Makefile):
Code:
c++ -g -O2 -I../../Contrib -I../../Include -DGLUI_FREEGLUT -DTARGET_FLOAT32_IS_FIXED -c -o Gen/fixed/Main.o Main.cpp
c++ -g -O2 -I../../Contrib -I../../Include -DGLUI_FREEGLUT -DTARGET_FLOAT32_IS_FIXED -c -o Gen/fixed/Test.o Test.cpp
c++ -g -O2 -I../../Contrib -I../../Include -DGLUI_FREEGLUT -DTARGET_FLOAT32_IS_FIXED -c -o Gen/fixed/Render.o Render.cpp
c++ -g -O2 -I../../Contrib -I../../Include -DGLUI_FREEGLUT -DTARGET_FLOAT32_IS_FIXED -c -o Gen/fixed/RenderGIF.o RenderGIF.cpp
c++ -g -O2 -I../../Contrib -I../../Include -DGLUI_FREEGLUT -DTARGET_FLOAT32_IS_FIXED -c -o Gen/fixed/RenderOGL.o RenderOGL.cpp
RenderOGL.cpp:183:7: warning: no newline at end of file
c++ -g -O2 -I../../Contrib -I../../Include -DGLUI_FREEGLUT -DTARGET_FLOAT32_IS_FIXED -c -o Gen/fixed/Tests/BroadPhaseTest.o Tests/BroadPhaseTest.cpp
c++ -g -O2 -I../../Contrib -I../../Include -DGLUI_FREEGLUT -DTARGET_FLOAT32_IS_FIXED -c -o Gen/fixed/Tests/Biped.o Tests/Biped.cpp
c++ -g -O2 -I../../Contrib -I../../Include -DGLUI_FREEGLUT -DTARGET_FLOAT32_IS_FIXED -c -o Gen/fixed/Tests/BipedDef.o Tests/BipedDef.cpp
c++ -g -O2 -I../../Contrib -I../../Include -DGLUI_FREEGLUT -DTARGET_FLOAT32_IS_FIXED -c -o Gen/fixed/Tests/TestEntries.o Tests/TestEntries.cpp
g++ -rdynamic -o Gen/fixed/testbed Gen/fixed/Main.o Gen/fixed/Test.o Gen/fixed/Render.o Gen/fixed/RenderGIF.o Gen/fixed/RenderOGL.o Gen/fixed/Tests/BroadPhaseTest.o Gen/fixed/Tests/Biped.o Gen/fixed/Tests/BipedDef.o Gen/fixed/Tests/TestEntries.o ../../Source/Gen/fixed/libbox2d.a -L../../Contrib/freeglut -L../../Contrib/glui -L../../Source/Gen/fixed -lbox2d -lglui -lglut -lgd -lGLU -lGL
Then I ran it my machine and it works just like the testbed works. Squares slide down the ramps and stop at various points. They do not go through the ramp and do not fly away.