Re: [osg-users] Build problems with undefined _gl references in Cygwin
Robert Osfield wrote: This is something you'll probably have to take up with Cywin development community. My own thoughts on things to try yourself would to try a completely clean build, including removing OpenSceneGraph/CMakeCache.txt and then doing a fresh ./configure;make; as there are chance it might locate the new libs better. Robert, I wanted to give you an update - OSG compiles now and the examples seem to work fine. The undefined references were a result of some cross up headers for Opengl and GLUT which they seem to have resolved now. Several of the groups had to work together to clean up some of the headers. In testing the new version my build built osgviewerGLUT which I used as a test for the libglut32.a they had to update. The example with the new library ran fine but osgviewerGLUT would keep on running even though the window closed when I hit escape (which it might be supposed to do). Also when I used the close box on the window I received a segfault. I reported this to them and one of them took a look at osgviewerGLUT and this is what he had to say: OSG completes its build now with the new libglut32.a. Excellent. It builds an example program osgviewerGLUT.exe which opens a window and diplays an image. When I click the close box on that window I get a segmentation fault when the app closes. The app will also close when you simply press the escape key. This leaves the process running in the background as if I had used the hack -DGLUT_DISABLE_ATEXIT_HACK. When I used the escape I had to kill the process manually. Not sure if this is a glut issue or an issue with their example window but thought I would let you know. bk Hi Brian, I took a look at osgviewerGLUT. Did that ever worked well with some previous version of the opengl package? I see a few strange things: void keyboard( unsigned char key, int /*x*/, int /*y*/ ) { switch( key ) { case 27: // clean up the viewer if (viewer.valid()) viewer = 0; glutDestroyWindow(glutGetWindow()); break; //... } } Typing esc only destroys the window without stopping the program, which continue with a dangling viewer pointer; no wonder that you have to kill it manually. Instead of calling glutDestroyWindow(glutGetWindow()); it should call exit(0); , maybe after calling delete viewer; . void display(void) { // update and render the scene graph if (viewer.valid()) viewer-frame(); // Swap Buffers glutSwapBuffers(); glutPostRedisplay(); } glutPostRedisplay(); will have display() called again, so it creates an infinite loop. It should not be there. glutPostRedisplay(); should rather be at the end of mousebutton, mousemove, and keyboard. Closing the window with the (X) icon should result in simply calling exit(0) and destroying the window. As to why it segfaults, you would have to degug it, as I don't have OpenSceneGraph installed. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Build problems with undefined _gl references in Cygwin
I'm having build errors building OSG from svn in Cygwin. New updates were recently released for the Cygwin/X applications and it was a very extensive update of the applications. There have been some GL issues and not sure if this is related - I thought they were getting most of them worked out. One of the other majors changes was that the X apps moved from an install in /usr/X11R6 the now go to just /usr IE /usr/bin /usr/lib etc. I'm also not sure if that affects this either. Now I am getting these errors - any thoughts - this is only a sampling - there's a lot more just like these but other programs. bk CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x1f3 8): undef ined reference to `_glTexImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x1f8 7): undef ined reference to `_glPixelStorei' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x209 a): undef ined reference to `_glPixelStorei' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x224 1): undef ined reference to `_glTexSubImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x241 4): undef ined reference to `_glCopyTexImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x254 b): undef ined reference to `_glCopyTexSubImage2D' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x14ba): undefined r eference to `_glGetError' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x154e): undefined r eference to `_glGetIntegerv' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x1564): undefined r eference to `_glGetString' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x1966): undefined r eference to `_glMatrixMode' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x19a7): undefined r eference to `_glMatrixMode' CMakeFiles/osg.dir/Viewport.o:Viewport.cpp:(.text+0x191): undefined reference to `_glViewport' Creating library file: ../../lib/libosg.dll.a collect2: ld returned 1 exit status make[2]: *** [bin/cygosg-2.7.6.dll] Error 1 make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2 make: *** [all] Error 2 [EMAIL PROTECTED] /usr/develop/obj/osg $ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Build problems with undefined _gl references in Cygwin
Hi Brian, I have not updated Cygwin yet, but you should be able to set the appropriate OpenGL paths with the OPENGL_INCLUDE_DIR, OPENGL_gl_LIBRARY and OPENGL_glu_LIBRARY of CMake. Regards, Alberto El Miércoles 26 Noviembre 2008ES 18:24:20 Brian Keener escribió: I'm having build errors building OSG from svn in Cygwin. New updates were recently released for the Cygwin/X applications and it was a very extensive update of the applications. There have been some GL issues and not sure if this is related - I thought they were getting most of them worked out. One of the other majors changes was that the X apps moved from an install in /usr/X11R6 the now go to just /usr IE /usr/bin /usr/lib etc. I'm also not sure if that affects this either. Now I am getting these errors - any thoughts - this is only a sampling - there's a lot more just like these but other programs. bk CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x1f3 8): undef ined reference to `_glTexImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x1f8 7): undef ined reference to `_glPixelStorei' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x209 a): undef ined reference to `_glPixelStorei' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x224 1): undef ined reference to `_glTexSubImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x241 4): undef ined reference to `_glCopyTexImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x254 b): undef ined reference to `_glCopyTexSubImage2D' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x14ba): undefined r eference to `_glGetError' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x154e): undefined r eference to `_glGetIntegerv' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x1564): undefined r eference to `_glGetString' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x1966): undefined r eference to `_glMatrixMode' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x19a7): undefined r eference to `_glMatrixMode' CMakeFiles/osg.dir/Viewport.o:Viewport.cpp:(.text+0x191): undefined reference to `_glViewport' Creating library file: ../../lib/libosg.dll.a collect2: ld returned 1 exit status make[2]: *** [bin/cygosg-2.7.6.dll] Error 1 make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2 make: *** [all] Error 2 [EMAIL PROTECTED] /usr/develop/obj/osg $ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Build problems with undefined _gl references in Cygwin
Hi Brain, This is something you'll probably have to take up with Cywin development community. My own thoughts on things to try yourself would to try a completely clean build, including removing OpenSceneGraph/CMakeCache.txt and then doing a fresh ./configure;make; as there are chance it might locate the new libs better. Robert. On Wed, Nov 26, 2008 at 5:24 PM, Brian Keener [EMAIL PROTECTED] wrote: I'm having build errors building OSG from svn in Cygwin. New updates were recently released for the Cygwin/X applications and it was a very extensive update of the applications. There have been some GL issues and not sure if this is related - I thought they were getting most of them worked out. One of the other majors changes was that the X apps moved from an install in /usr/X11R6 the now go to just /usr IE /usr/bin /usr/lib etc. I'm also not sure if that affects this either. Now I am getting these errors - any thoughts - this is only a sampling - there's a lot more just like these but other programs. bk CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x1f3 8): undef ined reference to `_glTexImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x1f8 7): undef ined reference to `_glPixelStorei' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x209 a): undef ined reference to `_glPixelStorei' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x224 1): undef ined reference to `_glTexSubImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x241 4): undef ined reference to `_glCopyTexImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x254 b): undef ined reference to `_glCopyTexSubImage2D' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x14ba): undefined r eference to `_glGetError' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x154e): undefined r eference to `_glGetIntegerv' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x1564): undefined r eference to `_glGetString' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x1966): undefined r eference to `_glMatrixMode' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x19a7): undefined r eference to `_glMatrixMode' CMakeFiles/osg.dir/Viewport.o:Viewport.cpp:(.text+0x191): undefined reference to `_glViewport' Creating library file: ../../lib/libosg.dll.a collect2: ld returned 1 exit status make[2]: *** [bin/cygosg-2.7.6.dll] Error 1 make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2 make: *** [all] Error 2 [EMAIL PROTECTED] /usr/develop/obj/osg $ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Build problems with undefined _gl references in Cygwin
Alberto Luaces wrote: I have not updated Cygwin yet, I didn't intend too but a mistype got me. but you should be able to set the appropriate OpenGL paths with the OPENGL_INCLUDE_DIR, OPENGL_gl_LIBRARY and OPENGL_glu_LIBRARY of CMake. Checked those and they appear to be pointing in the write places. A text search for some of the undefined references do show they are referenced in the libs - just not sure to what degree. Robert Osfield wrote: This is something you'll probably have to take up with Cywin development community. My own thoughts on things to try yourself would to try a completely clean build, including removing OpenSceneGraph/CMakeCache.txt and then doing a fresh ./configure;make; as there are chance it might locate the new libs better. I have tried that as well several times. Currently looking into Alberto's suggestion but those appear to be set right but I am still digging. Thanks. bk ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org