SuperBuild GLUT compilation problem
Mantis Issue 1274, reported by sdinot, assigned to rkanavath, created: 2016-09-07
SuperBuild GLUT build error
[ 57%] Performing build step for 'GLUT' [ 4%] Building C object CMakeFiles/freeglut.dir/src/freeglut_joystick.c.o /home/poughov/build/SuperBuild-develop/GLUT/src/GLUT/src/freeglut_joystick.c: In function 'fghJoystickOpen': /home/poughov/build/SuperBuild-develop/GLUT/src/GLUT/src/freeglut_joystick.c:1429:33: error: 'O_RDONLY' undeclared (first use in this function) joy->fd = open( joy->fname, O_RDONLY ); ^ /home/poughov/build/SuperBuild-develop/GLUT/src/GLUT/src/freeglut_joystick.c:1429:33: note: each undeclared identifier is reported only once for each function it appears in /home/poughov/build/SuperBuild-develop/GLUT/src/GLUT/src/freeglut_joystick.c:1447:21: error: 'F_SETFL' undeclared (first use in this function) fcntl( joy->fd, F_SETFL, O_NONBLOCK ); ^ /home/poughov/build/SuperBuild-develop/GLUT/src/GLUT/src/freeglut_joystick.c:1447:30: error: 'O_NONBLOCK' undeclared (first use in this function) fcntl( joy->fd, F_SETFL, O_NONBLOCK ); ^ /home/poughov/build/SuperBuild-develop/GLUT/src/GLUT/src/freeglut_joystick.c: In function 'fghJoystickInit': /home/poughov/build/SuperBuild-develop/GLUT/src/GLUT/src/freeglut_joystick.c:1596:45: error: 'F_OK' undeclared (first use in this function) if( access( fgJoystick[ ident ]->fname, F_OK ) != 0 ) ^ make[5]: *** [CMakeFiles/freeglut.dir/src/freeglut_joystick.c.o] Error 1 make[4]: *** [CMakeFiles/freeglut.dir/all] Error 2 make[3]: *** [all] Error 2 make[2]: *** [GLUT/src/GLUT-stamp/GLUT-build] Error 2 make[1]: *** [CMakeFiles/GLUT.dir/all] Error 2 make: *** [all] Error 2
1474355248 - rashadkmreproduced on debian stable. fix on the way..
1474357530 - rashadkmfixed in develop. short answer cmake build isn't mature enough.