Installed Box2D tar.gz from Box2D.org, then installed cmake tar.gz from cmake's website. Compiled cmake fine using the bootstrap, then make, then make install. Ran into a problem with I tried to use cmake in the directory ~/Box2Dv1.x/Box2D/Build - the problem was the CMakeCache.txt file in that directory had unresolved values for OPENGL_INCLUDE_DIR (and the next two OPENGL-related variables). After searching for hours, I came across the advice of a saint who recommended installing three mesa dev tools: libgl1-mesa-dev, libglu1-mesa-dev, and mesa-common-dev. Rebooted and it progressed from there.
However, ran into an error at 55% of the make:
In file included from /home/michael/Box2D_v2.1.2/Box2D/freeglut/freeglut_callbacks.c:29:
/home/michael/Box2D_v2.1.2/Box2D/freeglut/freeglut_internal.h:111: fatal error: X11/extensions/XInput.h: No such file or directory
compilation terminated.
make[2]: *** [freeglut/CMakeFiles/freeglut_static.dir/freeglut_callbacks.o] Error 1
make[1]: *** [freeglut/CMakeFiles/freeglut_static.dir/all] Error 2
make: *** [all] Error 2
This was fixed by installing libxi-dev, on advice from here. Ran make with no further problems, then make install. Woo.
Monday, December 27, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment