Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#195 build docs completely wrong

open
nobody
critical (31)
5
2013-02-22
2013-02-22
John Skaller
No

The build instructions are completely wrong. The current tarball is using cmake. There's no configure. And Cmake doesn't work either.

README config.h
~/Desktop/freeglut>make
Scanning dependencies of target freeglut
[ 1%] Building C object CMakeFiles/freeglut.dir/src/fg_callbacks.c.o
In file included from /Users/johnskaller/Desktop/freeglut/src/fg_internal.h:179,
from /Users/johnskaller/Desktop/freeglut/src/fg_callbacks.c:29:
/Users/johnskaller/Desktop/freeglut/src/x11/fg_internal_x11.h:36:20: error: GL/glx.h: No such file or directory
In file included from /Users/johnskaller/Desktop/freeglut/src/fg_internal.h:179,
from /Users/johnskaller/Desktop/freeglut/src/fg_callbacks.c:29:
/Users/johnskaller/Desktop/freeglut/src/x11/fg_internal_x11.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SFG_WindowContextType’
/Users/johnskaller/Desktop/freeglut/src/x11/fg_internal_x11.h:105: error: expected specifier-qualifier-list before ‘GLXFBConfig’
In file included from /Users/johnskaller/Desktop/freeglut/src/fg_callbacks.c:29:
/Users/johnskaller/Desktop/freeglut/src/fg_internal.h:369: error: expected specifier-qualifier-list before ‘SFG_WindowContextType’
/Users/johnskaller/Desktop/freeglut/src/fg_internal.h:561: error: expected specifier-qualifier-list before ‘SFG_WindowContextType’
make[2]: *** [CMakeFiles/freeglut.dir/src/fg_callbacks.c.o] Error 1
make[1]: *** [CMakeFiles/freeglut.dir/all] Error 2
make: *** [all] Error 2
~/Desktop/freeglut>./configure
bash: ./configure: No such file or directory

Discussion

  • Hi John,

    what build docs are you referring to? The website is not in sync with what is in trunk, but with what is in the current release. See README.cmake in the trunk tarball and follow those instructions to build, should work.