Hi to all,i'm writing an application based on opengl and i use GLSL for a custom shader.
The application over mac osx compile and work correctly. On linux I installed MESA 7 on my ubuntu feisty. When i try to compile it i've this error/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 ./src/gui/elements/wx_av_box.cpp: In member function âvoid wxAVBox::Render()â: ./src/gui/elements/wx_av_box.cpp:111: error: âglUseProgramâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:113: error: âglGetUniformLocationâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:114: error: âglUniform1fâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:119: error: âglUniform1iâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp: In member function âvoid wxAVBox::InitGL()â: ./src/gui/elements/wx_av_box.cpp:245: error: âglCreateProgramâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:246: error: âglCreateShaderâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:249: error: âglShaderSourceâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:250: error: âglCompileShaderâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:257: error: âglGetShaderivâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:260: error: âglGetShaderInfoLogâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:269: error: âglAttachShaderâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:270: error: âglLinkProgramâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:277: error: âglGetProgramivâ was not declared in this scope ./src/gui/elements/wx_av_box.cpp:280: error: âglGetProgramInfoLogâ was not declared in this scope
In my source files i've included the header so: #ifdef _APPLE_OPENGL_FRAMEWORK // it's defined only under OSX #include <OpenGL/gl.h> #include <OpenGL/glu.h> #else #include <GL/gl.h> #include <GL/glu.h> #endif and on my system: [EMAIL PROTECTED]:~/workspace/netvideo$ sudo find / | grep "GL\/gl\.h" /usr/local/include/GL/gl.h [EMAIL PROTECTED]:~/workspace/netvideo$ Now, i wrong something... but what? Thanks in advance :) Sandro
------------------------------------------------------------------------- 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
