From: Haishan W. <hs...@fu...> - 2008-01-14 06:15:01
|
Hello all, I now want to use vgui in my project, but when I run the example in core/vgui/examples/example_text_windows, an error occured: *freeglut ERROR: Function <glutBitmapCharacter> called without first calling 'glutInit'. vgui::uninit called* My settings are : Ubuntu 7.10, freeglut 2.4.0. gcc 4.1.2 After some google, I understood this error a little better: the 2.4.0 release announcement at | freeglut.sourceforge.net: | | "Users should note a new incompatibility with GLUT, in which GLUT | allowed the application to call some functions before 'glutInit' was | called. This is contrary to both good programming practice and the GLUT | documentation, and the new 'freeglut' enforces the initial call to | 'glutInit'". It seems that the freeglut of version 2.4.0 results in this error. But how can I fix it? |