From: Brendan M. <bre...@gm...> - 2008-01-20 03:22:12
|
I don't think you can with freeglut. I think I solved the problem by either downloading the most recent original glut (which is quite old - 3.7 I think), or more recently just not using glut and using qt. Cheers, B. On 14/01/2008, Haishan Wu <hs...@fu...> wrote: > 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? > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users > > -- Cheers, Brendan |