I'm using the latest box2d source files & codeblocks 10.05 running on windows 7.
This is what I've done so far:
-downloaded latest box2d source files (v2.2.1)
-downloaded and installed cmake (v2.8.6) (setup is good AFIK)
-opened cmake GUI and set paths,hit configure,and generate no problems (I did have to set the code blocks exe path myself. see here)
-Opened the codeblocks project that was generated in the box2d build folder.
-built and compiled
I was hoping the testbed would just spring into action but then the compiler complained...
it says I'm missing those 3 libraries:
lwinmm.lib
lglu32.lib
lopengl.lib
Now do I need to obtain these libraries myself and link them to the project (I assume the opengl and glut libs are required for the testbed, the other I think has something to do with time i think?...) Or did I possibly do something wrong? I haven't altered the project that Cmake generated in any way.
This is what I've done so far:
-downloaded latest box2d source files (v2.2.1)
-downloaded and installed cmake (v2.8.6) (setup is good AFIK)
-opened cmake GUI and set paths,hit configure,and generate no problems (I did have to set the code blocks exe path myself. see here)
-Opened the codeblocks project that was generated in the box2d build folder.
-built and compiled
I was hoping the testbed would just spring into action but then the compiler complained...
Code:
-------------- Build: all in Box2D ---------------
Using makefile: Makefile
[ 29%]
Built target Box2D
[ 59%]
Built target Box2D_shared
[ 60%]
Built target HelloWorld
[ 76%]
Built target freeglut_static
[ 98%]
Built target glui
Linking CXX executable Testbed.exe
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lwinmm.lib
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lglu32.lib
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lopengl32.lib
collect2: ld returned 1 exit status
mingw32-make.exe[2]: *** [Testbed/Testbed.exe] Error 1
mingw32-make.exe[1]: *** [Testbed/CMakeFiles/Testbed.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
Process terminated with status 2 (7 minutes, 32 seconds)
3 errors, 0 warnings
Using makefile: Makefile
[ 29%]
Built target Box2D
[ 59%]
Built target Box2D_shared
[ 60%]
Built target HelloWorld
[ 76%]
Built target freeglut_static
[ 98%]
Built target glui
Linking CXX executable Testbed.exe
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lwinmm.lib
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lglu32.lib
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lopengl32.lib
collect2: ld returned 1 exit status
mingw32-make.exe[2]: *** [Testbed/Testbed.exe] Error 1
mingw32-make.exe[1]: *** [Testbed/CMakeFiles/Testbed.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
Process terminated with status 2 (7 minutes, 32 seconds)
3 errors, 0 warnings
it says I'm missing those 3 libraries:
lwinmm.lib
lglu32.lib
lopengl.lib
Now do I need to obtain these libraries myself and link them to the project (I assume the opengl and glut libs are required for the testbed, the other I think has something to do with time i think?...) Or did I possibly do something wrong? I haven't altered the project that Cmake generated in any way.