From: Salvatore S. <sit...@gm...> - 2008-04-05 01:19:33
|
Il giorno 04/apr/08, alle ore 23:34, Amitha Perera ha scritto: > Salvatore Sittinieri wrote: >> But i get this errors: >> Users/sittisal/Downloads/vxl-1.10.0/contrib/oxl/apps/glmovie/ >> glmovie.cxx:46:21: error: GL/glut.h: No such file or directory > > Can you verify that vxl-1.10.0/contrib/oxl/apps/glmovie/ > CMakeLists.txt has lines like > IF( GLUT_FOUND ) > around the glmovie part? > > If it does, can you > grep "GLUT_" CMakeCache.txt > (in the root of the build directory) and tell us what it returns? > > > As for building well on MacOS X, there are some folks that use > MacOS. (I'm not sure of the version.) However, no-one is yet > submitting a nightly build to the dashboard, so it is difficult for > us to continue to verify that it works on MacOS. (If you have the > resources---about 1 hour of compute time at night---you could submit > a nightly build.) > Solved. 1) I had to modify $VXLDIR/contrib/oxl/apps/glmovie/glmovie.cxx as follows: Line 46: FROM #include <GL/glut.h> TO #include <GLUT/glut.h> (info: http://www.gamedev.net/community/forums/topic.asp?topic_id=480686) 2) Due to an OpenGL linking issue in Mac OS X Leopard: (http://wiki.finkproject.org/index.php/Fink:Packaging:Preparing_for_10.5#OpenGL_Bug ) I had to manually set the OPENGL_gl_LIBRARY variable to /System/ Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib in ccmake advanced configuration mode 3) I added -fno-common option in CMAKE_CXX_FLAGS and CMAKE_C_FLAGS Now i've succesfully build vxl on Leopard Thank you very much to everyone that helped me. |