Philip Lowman wrote:
> On Tue, Mar 31, 2009 at 5:07 PM, Lucasw < ()> wrote:
> 
> >  
> > 
> > > From your build tree type "make edit_cache", this is the same as running 
> > > "ccmake /path/to/source/tree".
> > > 
> > > Check the contents of the OPENGL_gl_LIBRARY and OPENGL_glu_LIBRARY 
> > > variables.  They should be pointed to the libraries you want to use for 
> > > GL and GLU.  They are under the Advanced section of the cache.
> > > 
> > > 
> > 
> > 
> > 
> > 
> > 
> > Okay, after running make edit_cache 't' has to be pressed to get the 
> > advanced mode where the OPENGL variables are, and then I added 
> > /usr/lib/libGL.dll.a and /usr/lib/libGLU.dll.a to those variables 
> > (separated from the /usr/lib/w32api libs by semicolons).  Then 'c' for 
> > configure and 'g' for generate, and then it exits and everything builds 
> > fine.
>  
> Strange.  On my Cygwin install with CMake 2.6.2 (on Cygwin) I get:
> 
>  OPENGL_INCLUDE_DIR              /usr/include/w32api
>  OPENGL_gl_LIBRARY               /usr/lib/w32api/libopengl32.a
>  OPENGL_glu_LIBRARY              /usr/lib/w32api/libglu32.a
>  
> What is the difference between /usr/lib/libGL.dll.a and 
> /usr/lib/w32api/libopengl32.a?  What version of CMake are you using?
> 
> 
> 
> -- 
> Philip Lowman
> 
>  ------------------
> Post generated by Mail2Forum



I have cmake version 2.6-patch 2

That's what the default settings were, but when I tried to build with them I 
get a bunch of errors like:


CMakeFiles/osg.dir/AlphaFunc.o:AlphaFunc.cpp:(.text+0x14): undefined reference 
to `_glAlphaFunc'
CMakeFiles/osg.dir/BlendColor.o:BlendColor.cpp:(.text+0x159): undefined 
reference to `_glGetString'
CMakeFiles/osg.dir/BlendColor.o:BlendColor.cpp:


So I looked for those functions in the libs on my system and found them in 
libGL and libGLU, so I added those to cmake with the instructions above. So it 
built fine, but now when I attempt to run an example I get:


Error: OpenGL version test failed, requires valid graphics context.
Error: glCreateShader not supported by OpenGL driver
Error: glShaderSource not supported by OpenGL driver
Error: glCompileShader not supported by OpenGL driver
Error: glGetShaderiv not supported by OpenGL driver
VERTEX glCompileShader "" FAILED



So that may have not been the right thing to do.  Does yours link okay without 
libGL and libGLU?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=9549#9549





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to