   freeglut/linux
  I'm trying to get techniques such as multisampling to work in Ubuntu using freeglut 3.7-25 (examples taken from the OpenGL Programming guide seventh edition)    glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_MULTISAMPLE );    //glutInitContextVersion(3,0);    GLint buf, sample;    glGetIntegerv( GL_SAMPLE_BUFFERS, &buf );    glGetIntegerv( GL_SAMPLES, &sample );    cout << buf << "   " << sample << endl;    glEnable( GL_MULTISAMPLE );this returns nonsense values such as 32565 -69152384 (random each time)glutInitContextVersion is also NOT available in this version of freeglut?   
  forgot to add, I am linking with libGLEW.soGLGLUlibglut.so.3.8.0 (the file that is installed when installing freeglut with apt-get)libboost_thread-mt.soI think I am missing something here?   ;  Which version of freeglut is actually used? Check the version number with:GLint version = glutGet(GLUT_VERSION);This should be 20600 (2.6.0) to support multisampling   ;Quote:Original post by Marco81Which version of freeglut is actually used? Check the version number with:GLint version = glutGet(GLUT_VERSION);This should be 20600 (2.6.0) to support multisamplingthat's it! it returns 20400. Where can I get the latest version? This 2.4.0 is the latest in the ubuntu repo's (synaptic says 2.4.0-6.1ubuntu1);Quote:Original post by Defeatistthat's it! it returns 20400. Where can I get the latest version? This 2.4.0 is the latest in the ubuntu repo's (synaptic says 2.4.0-6.1ubuntu1)You can find the latest version here: http://freeglut.sourceforge.net/;  installed the new library and added the new headersthe functionglutInitContextVersion(3,0)is now properly declared and the program runs fine when using it so I guess its using the correct .so and header files now. However, the version returned by glutGet(GLUT_VERSION) is still 204000 and there is no multisampling[Edited by - Defeatist on April 24, 2010 5:05:45 AM];  You can try linking directly against /usr/local/lib/glut.a   ;  I only found a libglut.a here is a picture of my current linker settingshttp://img402.imageshack.us/img402/741/screenshot6f.pngthis was mentioned during install, not sure if this could be helpfulQuote:make installLibraries have been installed in:   /usr/local/libIf you ever happen to want to link against installed librariesin a given directory, LIBDIR, you must either use libtool, andspecify the full pathname of the library, or use the `-LLIBDIR'flag during linking and do at least one of the following:   - add LIBDIR to the `LD_LIBRARY_PATH' environment variableduring execution   - add LIBDIR to the `LD_RUN_PATH' environment variableduring linking   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag   - have your system administrator add LIBDIR to `/etc/ld.so.conf';Quote:Original post by DefeatistI only found a libglut.a Yes, that's the one. Is it still not working with those settings?   ;Quote:Original post by Marco81Quote:Original post by DefeatistI only found a libglut.a Yes, that's the one. Is it still not working with those settings?I reinstalled everything OpenGL/GLUT related, freeglut version is now 20600. However,glutInit(&argc, argv);    //glutInitContextVersion(3, 1);    glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_MULTISAMPLE );    cout << glutGet(GLUT_WINDOW_NUM_SAMPLES) << endl;// returns 0video card is ATI M92 (Mobility Radeon HD 4500 Series)the window is obtained usingglutGameModeString("800x600:24@60");   glutEnterGameMode();