Sorry... it's my mistake. I include wxglcanvas.h (from wxwidgets) before the define... this header include gl.h and so on...
a stupid mistake!! Sorry and thanks for your help! Sandro Il giorno 03/lug/07, alle ore 17:36, Brian Paul ha scritto: > Sandro Cavazzoni wrote: >> No, i'm using the right version. >> I've removed the GL_GLEXT_PROTOTYPES check in glext.h >> ---------------------------------- in glext.h >> #ifndef GL_VERSION_2_0 >> #define GL_VERSION_2_0 1 >> //#ifdef GL_GLEXT_PROTOTYPES >> ........... >> ........... >> ........... >> //#endif /* GL_GLEXT_PROTOTYPES */ >> And now it compile succesfully. >> /home/skaman/workspace/netvideo/bk-deps g++ -c -o >> netvideo_wx_av_box.o -I/usr/include/ffmpeg -I/usr/local/ >> include// -I./xpm/ -D__STDC_CONSTANT_MACROS -I/usr/lib/wx/ >> include/gtk2-unicode-debug-2.8 -I/usr/include/wx-2.8 - >> D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXGTK__ - >> pthread -g -O2 ./src/gui/elements/wx_av_box.cpp >> g++ -o netvideo netvideo_netvideo.o netvideo_acquire_jpeg.o >> netvideo_av_frame_event.o netvideo_gui_main.o >> netvideo_gui_config.o netvideo_wx_av_box.o -pthread - >> lwx_gtk2ud_aui-2.8 -lwx_gtk2ud_xrc-2.8 -lwx_gtk2ud_qa-2.8 - >> lwx_gtk2ud_html-2.8 -lwx_gtk2ud_adv-2.8 -lwx_gtk2ud_core-2.8 - >> lwx_baseud_xml-2.8 -lwx_baseud_net-2.8 -lwx_baseud-2.8 - >> lwxcode_gtk2ud_wxcurl-2.8 -lavformat -lavcodec -lz -la52 -ldts - >> lgsm -ldc1394_control -ldl -lvorbisenc -lraw1394 -lavutil -lvorbis >> -lm -logg -lwx_gtk2ud_gl-2.8 -lGL -lm -lGLU -lGL -lm >> [EMAIL PROTECTED]:~/workspace/netvideo$ >> I don't know why it doesn't consider my define. I defined it >> before include gl.h. But it doesn't work :/ > > Hmmm. > > If I were debugging this, I'd put something like this at the the > top of gl.h and glext.h: > > #ifdef GL_GLEXT_PROTOTYPES > #error defined! > #else > #error undefined! > #endif > > and see what happens. That might give a clue. Then, move the test > to other places in the headers to narrow things down. > > -Brian ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
