Re: [osg-users] CDash errors/warnings
On Mon, Feb 2, 2009 at 10:25 PM, Shue, John A john.s...@mantech.com wrote: Robert, This latest CMakeLists.txt file works on my machine. Horahh!!! :-) Let's just hope it works under CMake 2.4.8 as well. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] CDash errors/warnings
Hi John, I've just checked the dashboard and spotted that your FreeBSD 6 build has generated many warnings, all of the type warning: format not a string literal, argument types not checked, and all of which stem from locale_facets.h, which is part of gcc's std library support. This looks to be an issue with gcc rather than OSG, as the OSG files that instigate the error are just of the form ostream double, which is perfectly valid C++. Since this looks very much to be a false positive, resolving it may have to be bumping down the aggressive warning level, or explictly disabling this warning. Thoughts? Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] CDash errors/warnings
Hi John, Ar this is slow progress... fix one, break the other... So the resolution of this problem now looks to be telling CMake about the directory that the lib is in, I don't know off hand what the CMake scheme for this is, but should be able to hunt it down. Robert. On Mon, Feb 2, 2009 at 5:24 PM, Shue, John A john.s...@mantech.com wrote: Robert, I haven't read all the messages on the other thread with Cedric, but I tried this new CMakeLists.txt and it fails like the original one: Linking CXX shared library ../../lib/libosgViewer.so cd /home/jshue/working-OSG/OpenSceneGraph/src/osgViewer /usr/local/bin/cmake -E cmake_link_script CMakeFiles/osgViewer.dir/link.txt --verbose=1 /usr/bin/c++ -fPIC -Wall -Wparentheses -Wformat=2 -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -fpermissive -O3 -DNDEBUG -shared -Wl,-soname,libosgViewer.so.54 -o ../../lib/libosgViewer.so.2.7.9 CMakeFiles/osgViewer.dir/CompositeViewer.o CMakeFiles/osgViewer.dir/HelpHandler.o CMakeFiles/osgViewer.dir/Renderer.o CMakeFiles/osgViewer.dir/Scene.o CMakeFiles/osgViewer.dir/ScreenCaptureHandler.o CMakeFiles/osgViewer.dir/StatsHandler.o CMakeFiles/osgViewer.dir/Version.o CMakeFiles/osgViewer.dir/View.o CMakeFiles/osgViewer.dir/Viewer.o CMakeFiles/osgViewer.dir/ViewerBase.o CMakeFiles/osgViewer.dir/ViewerEventHandlers.o CMakeFiles/osgViewer.dir/GraphicsWindowX11.o CMakeFiles/osgViewer.dir/PixelBufferX11.o ../../lib/libosgGA.so.2.7.9 ../../lib/libosgText.so.2.7.9 ../../lib/libosgDB.so.2.7.9 ../../lib/libosgUtil.so.2.7.9 ../../lib/libosg.so.2.7.9 ../../lib/libOpenThreads.so.2.3.1 -lXrandr -lm /usr/X11R6/lib/libGLU.so /usr/X11R6/lib/libGL.so /usr/local/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/local/lib/libXext.so -lpthread -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/us r/X11R6/lib /usr/bin/ld: cannot find -lXrandr gmake[2]: *** [lib/libosgViewer.so.2.7.9] Error 1 My libXrandr.so is in /usr/local/lib. I don't see a -L option for /usr/local/lib in the commandline above. Also the end of that commandline doesn't look right to me, namely -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/u sr/X11R6/lib. If I add -L/usr/local/lib to the end of the above commandline, it links. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, February 02, 2009 7:06 AM To: OpenSceneGraph Users Subject: Re: [osg-users] CDash errors/warnings Hi John, On Sat, Jan 31, 2009 at 10:34 PM, Shue, John A john.s...@mantech.com wrote: That did the trick. Compiled all the way to the end of the build without errors. Turns out that this fix that works for you and me using CMake 2.6.x, breaks the build with Cmake 2.4.8 so we'll need to try out another iteration, instead of using the X11_xrand_LIB we'll need to try XRANDR_LIBRARIES var. Could you try the attached CMakeLists.txt. Thanks, Robert. This communication, along with any attachments, is covered by federal and state law governing electronic communications and may contain company proprietary and legally privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, use or copying of this message is strictly prohibited. If you have received this in error, please reply immediately to the sender and delete this message. Thank you. ___ 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] CDash errors/warnings
Robert, The INCLUDE_DIRECTORIES() line didn't fix the error. It added -I/usr/local/lib to the command lines used to compile the cpp files, but didn't add the requried -L/usr/local/lib. Looking at the output of grep Xrandr CMakeCache.txt, I see the following: XRANDR_LDFLAGS:INTERNAL=-L/usr/local/lib;-lXrandr which has both the -L and -l options we need to pass to the linker. Question is, how does this get added to the linker commandline? Looking through osgViewer's CmakeLists.txt file, I don't see any obvious place. I got it to link with the following change: #SET(LIB_EXTRA_LIBS ${XRANDR_LIBRARIES} ${LIB_EXTRA_LIBS}) SET(LIB_EXTRA_LIBS ${XRANDR_LDFLAGS} ${LIB_EXTRA_LIBS}) I have no idea if this is correct usage. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, February 02, 2009 12:47 PM To: OpenSceneGraph Users Subject: Re: [osg-users] CDash errors/warnings Hi John, Could you try the attached src/osgViewer/CMakeLists.txt. This adds a : INCLUDE_DIRECTORIES(${XRANDR_LIBDIR}) Robert. On Mon, Feb 2, 2009 at 5:24 PM, Shue, John A john.s...@mantech.com wrote: Robert, I haven't read all the messages on the other thread with Cedric, but I tried this new CMakeLists.txt and it fails like the original one: Linking CXX shared library ../../lib/libosgViewer.so cd /home/jshue/working-OSG/OpenSceneGraph/src/osgViewer /usr/local/bin/cmake -E cmake_link_script CMakeFiles/osgViewer.dir/link.txt --verbose=1 /usr/bin/c++ -fPIC -Wall -Wparentheses -Wformat=2 -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -fpermissive -O3 -DNDEBUG -shared -Wl,-soname,libosgViewer.so.54 -o ../../lib/libosgViewer.so.2.7.9 CMakeFiles/osgViewer.dir/CompositeViewer.o CMakeFiles/osgViewer.dir/HelpHandler.o CMakeFiles/osgViewer.dir/Renderer.o CMakeFiles/osgViewer.dir/Scene.o CMakeFiles/osgViewer.dir/ScreenCaptureHandler.o CMakeFiles/osgViewer.dir/StatsHandler.o CMakeFiles/osgViewer.dir/Version.o CMakeFiles/osgViewer.dir/View.o CMakeFiles/osgViewer.dir/Viewer.o CMakeFiles/osgViewer.dir/ViewerBase.o CMakeFiles/osgViewer.dir/ViewerEventHandlers.o CMakeFiles/osgViewer.dir/GraphicsWindowX11.o CMakeFiles/osgViewer.dir/PixelBufferX11.o ../../lib/libosgGA.so.2.7.9 ../../lib/libosgText.so.2.7.9 ../../lib/libosgDB.so.2.7.9 ../../lib/libosgUtil.so.2.7.9 ../../lib/libosg.so.2.7.9 ../../lib/libOpenThreads.so.2.3.1 -lXrandr -lm /usr/X11R6/lib/libGLU.so /usr/X11R6/lib/libGL.so /usr/local/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/local/lib/libXext.so -lpthread -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/us r/X11R6/lib /usr/bin/ld: cannot find -lXrandr gmake[2]: *** [lib/libosgViewer.so.2.7.9] Error 1 My libXrandr.so is in /usr/local/lib. I don't see a -L option for /usr/local/lib in the commandline above. Also the end of that commandline doesn't look right to me, namely -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/u sr/X11R6/lib. If I add -L/usr/local/lib to the end of the above commandline, it links. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, February 02, 2009 7:06 AM To: OpenSceneGraph Users Subject: Re: [osg-users] CDash errors/warnings Hi John, On Sat, Jan 31, 2009 at 10:34 PM, Shue, John A john.s...@mantech.com wrote: That did the trick. Compiled all the way to the end of the build without errors. Turns out that this fix that works for you and me using CMake 2.6.x, breaks the build with Cmake 2.4.8 so we'll need to try out another iteration, instead of using the X11_xrand_LIB we'll need to try XRANDR_LIBRARIES var. Could you try the attached CMakeLists.txt. Thanks, Robert. This communication, along with any attachments, is covered by federal and state law governing electronic communications and may contain company proprietary and legally privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, use or copying of this message is strictly prohibited. If you have received this in error, please reply immediately to the sender and delete this message. Thank you. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g This communication, along with any attachments, is covered by federal and state law governing electronic communications and may contain company proprietary and legally privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, use
Re: [osg-users] CDash errors/warnings
Hi John, I'm a bit surpised it didn't work, similar code elsewhere in the OSG works for other libs, so I can only guess the that directory env var for XRANDR isn't being set. To try a fix it I've changed the code to be: IF (X11_Xrandr_LIB) SET(LIB_EXTRA_LIBS ${X11_Xrandr_LIB} ${LIB_EXTRA_LIBS}) ELSE(X11_Xrandr_LIB) SET(LIB_EXTRA_LIBS ${XRANDR_LIBRARIES} ${LIB_EXTRA_LIBS}) ENDIF(X11_Xrandr_LIB) The first branch is what was compiling on your machine before I applied my patch to fix CMake 2.4.8 build, the second branch should now be picked up for 2.4.8 support. Could you let me know if this works. Cheers, Robert. On Mon, Feb 2, 2009 at 7:49 PM, Shue, John A john.s...@mantech.com wrote: Robert, The INCLUDE_DIRECTORIES() line didn't fix the error. It added -I/usr/local/lib to the command lines used to compile the cpp files, but didn't add the requried -L/usr/local/lib. Looking at the output of grep Xrandr CMakeCache.txt, I see the following: XRANDR_LDFLAGS:INTERNAL=-L/usr/local/lib;-lXrandr which has both the -L and -l options we need to pass to the linker. Question is, how does this get added to the linker commandline? Looking through osgViewer's CmakeLists.txt file, I don't see any obvious place. I got it to link with the following change: #SET(LIB_EXTRA_LIBS ${XRANDR_LIBRARIES} ${LIB_EXTRA_LIBS}) SET(LIB_EXTRA_LIBS ${XRANDR_LDFLAGS} ${LIB_EXTRA_LIBS}) I have no idea if this is correct usage. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, February 02, 2009 12:47 PM To: OpenSceneGraph Users Subject: Re: [osg-users] CDash errors/warnings Hi John, Could you try the attached src/osgViewer/CMakeLists.txt. This adds a : INCLUDE_DIRECTORIES(${XRANDR_LIBDIR}) Robert. On Mon, Feb 2, 2009 at 5:24 PM, Shue, John A john.s...@mantech.com wrote: Robert, I haven't read all the messages on the other thread with Cedric, but I tried this new CMakeLists.txt and it fails like the original one: Linking CXX shared library ../../lib/libosgViewer.so cd /home/jshue/working-OSG/OpenSceneGraph/src/osgViewer /usr/local/bin/cmake -E cmake_link_script CMakeFiles/osgViewer.dir/link.txt --verbose=1 /usr/bin/c++ -fPIC -Wall -Wparentheses -Wformat=2 -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -fpermissive -O3 -DNDEBUG -shared -Wl,-soname,libosgViewer.so.54 -o ../../lib/libosgViewer.so.2.7.9 CMakeFiles/osgViewer.dir/CompositeViewer.o CMakeFiles/osgViewer.dir/HelpHandler.o CMakeFiles/osgViewer.dir/Renderer.o CMakeFiles/osgViewer.dir/Scene.o CMakeFiles/osgViewer.dir/ScreenCaptureHandler.o CMakeFiles/osgViewer.dir/StatsHandler.o CMakeFiles/osgViewer.dir/Version.o CMakeFiles/osgViewer.dir/View.o CMakeFiles/osgViewer.dir/Viewer.o CMakeFiles/osgViewer.dir/ViewerBase.o CMakeFiles/osgViewer.dir/ViewerEventHandlers.o CMakeFiles/osgViewer.dir/GraphicsWindowX11.o CMakeFiles/osgViewer.dir/PixelBufferX11.o ../../lib/libosgGA.so.2.7.9 ../../lib/libosgText.so.2.7.9 ../../lib/libosgDB.so.2.7.9 ../../lib/libosgUtil.so.2.7.9 ../../lib/libosg.so.2.7.9 ../../lib/libOpenThreads.so.2.3.1 -lXrandr -lm /usr/X11R6/lib/libGLU.so /usr/X11R6/lib/libGL.so /usr/local/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/local/lib/libXext.so -lpthread -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/us r/X11R6/lib /usr/bin/ld: cannot find -lXrandr gmake[2]: *** [lib/libosgViewer.so.2.7.9] Error 1 My libXrandr.so is in /usr/local/lib. I don't see a -L option for /usr/local/lib in the commandline above. Also the end of that commandline doesn't look right to me, namely -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/u sr/X11R6/lib. If I add -L/usr/local/lib to the end of the above commandline, it links. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, February 02, 2009 7:06 AM To: OpenSceneGraph Users Subject: Re: [osg-users] CDash errors/warnings Hi John, On Sat, Jan 31, 2009 at 10:34 PM, Shue, John A john.s...@mantech.com wrote: That did the trick. Compiled all the way to the end of the build without errors. Turns out that this fix that works for you and me using CMake 2.6.x, breaks the build with Cmake 2.4.8 so we'll need to try out another iteration, instead of using the X11_xrand_LIB we'll need to try XRANDR_LIBRARIES var. Could you try the attached CMakeLists.txt. Thanks, Robert. This communication, along with any attachments, is covered by federal and state law governing electronic communications and may contain company proprietary and legally privileged information
Re: [osg-users] CDash errors/warnings
Robert, This latest CMakeLists.txt file works on my machine. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, February 02, 2009 3:01 PM To: OpenSceneGraph Users Subject: Re: [osg-users] CDash errors/warnings Hi John, I'm a bit surpised it didn't work, similar code elsewhere in the OSG works for other libs, so I can only guess the that directory env var for XRANDR isn't being set. To try a fix it I've changed the code to be: IF (X11_Xrandr_LIB) SET(LIB_EXTRA_LIBS ${X11_Xrandr_LIB} ${LIB_EXTRA_LIBS}) ELSE(X11_Xrandr_LIB) SET(LIB_EXTRA_LIBS ${XRANDR_LIBRARIES} ${LIB_EXTRA_LIBS}) ENDIF(X11_Xrandr_LIB) The first branch is what was compiling on your machine before I applied my patch to fix CMake 2.4.8 build, the second branch should now be picked up for 2.4.8 support. Could you let me know if this works. Cheers, Robert. On Mon, Feb 2, 2009 at 7:49 PM, Shue, John A john.s...@mantech.com wrote: Robert, The INCLUDE_DIRECTORIES() line didn't fix the error. It added -I/usr/local/lib to the command lines used to compile the cpp files, but didn't add the requried -L/usr/local/lib. Looking at the output of grep Xrandr CMakeCache.txt, I see the following: XRANDR_LDFLAGS:INTERNAL=-L/usr/local/lib;-lXrandr which has both the -L and -l options we need to pass to the linker. Question is, how does this get added to the linker commandline? Looking through osgViewer's CmakeLists.txt file, I don't see any obvious place. I got it to link with the following change: #SET(LIB_EXTRA_LIBS ${XRANDR_LIBRARIES} ${LIB_EXTRA_LIBS}) SET(LIB_EXTRA_LIBS ${XRANDR_LDFLAGS} ${LIB_EXTRA_LIBS}) I have no idea if this is correct usage. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, February 02, 2009 12:47 PM To: OpenSceneGraph Users Subject: Re: [osg-users] CDash errors/warnings Hi John, Could you try the attached src/osgViewer/CMakeLists.txt. This adds a : INCLUDE_DIRECTORIES(${XRANDR_LIBDIR}) Robert. On Mon, Feb 2, 2009 at 5:24 PM, Shue, John A john.s...@mantech.com wrote: Robert, I haven't read all the messages on the other thread with Cedric, but I tried this new CMakeLists.txt and it fails like the original one: Linking CXX shared library ../../lib/libosgViewer.so cd /home/jshue/working-OSG/OpenSceneGraph/src/osgViewer /usr/local/bin/cmake -E cmake_link_script CMakeFiles/osgViewer.dir/link.txt --verbose=1 /usr/bin/c++ -fPIC -Wall -Wparentheses -Wformat=2 -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -fpermissive -O3 -DNDEBUG -shared -Wl,-soname,libosgViewer.so.54 -o ../../lib/libosgViewer.so.2.7.9 CMakeFiles/osgViewer.dir/CompositeViewer.o CMakeFiles/osgViewer.dir/HelpHandler.o CMakeFiles/osgViewer.dir/Renderer.o CMakeFiles/osgViewer.dir/Scene.o CMakeFiles/osgViewer.dir/ScreenCaptureHandler.o CMakeFiles/osgViewer.dir/StatsHandler.o CMakeFiles/osgViewer.dir/Version.o CMakeFiles/osgViewer.dir/View.o CMakeFiles/osgViewer.dir/Viewer.o CMakeFiles/osgViewer.dir/ViewerBase.o CMakeFiles/osgViewer.dir/ViewerEventHandlers.o CMakeFiles/osgViewer.dir/GraphicsWindowX11.o CMakeFiles/osgViewer.dir/PixelBufferX11.o ../../lib/libosgGA.so.2.7.9 ../../lib/libosgText.so.2.7.9 ../../lib/libosgDB.so.2.7.9 ../../lib/libosgUtil.so.2.7.9 ../../lib/libosg.so.2.7.9 ../../lib/libOpenThreads.so.2.3.1 -lXrandr -lm /usr/X11R6/lib/libGLU.so /usr/X11R6/lib/libGL.so /usr/local/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/local/lib/libXext.so -lpthread -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/us r/X11R6/lib /usr/bin/ld: cannot find -lXrandr gmake[2]: *** [lib/libosgViewer.so.2.7.9] Error 1 My libXrandr.so is in /usr/local/lib. I don't see a -L option for /usr/local/lib in the commandline above. Also the end of that commandline doesn't look right to me, namely -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/u sr/X11R6/lib. If I add -L/usr/local/lib to the end of the above commandline, it links. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, February 02, 2009 7:06 AM To: OpenSceneGraph Users Subject: Re: [osg-users] CDash errors/warnings Hi John, On Sat, Jan 31, 2009 at 10:34 PM, Shue, John A john.s...@mantech.com wrote: That did the trick. Compiled all the way to the end of the build without errors. Turns out that this fix that works for you and me using CMake 2.6.x, breaks the build with Cmake 2.4.8 so we'll need to try out another iteration
Re: [osg-users] CDash errors/warnings
Robert, I haven't read all the messages on the other thread with Cedric, but I tried this new CMakeLists.txt and it fails like the original one: Linking CXX shared library ../../lib/libosgViewer.so cd /home/jshue/working-OSG/OpenSceneGraph/src/osgViewer /usr/local/bin/cmake -E cmake_link_script CMakeFiles/osgViewer.dir/link.txt --verbose=1 /usr/bin/c++ -fPIC -Wall -Wparentheses -Wformat=2 -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -fpermissive -O3 -DNDEBUG -shared -Wl,-soname,libosgViewer.so.54 -o ../../lib/libosgViewer.so.2.7.9 CMakeFiles/osgViewer.dir/CompositeViewer.o CMakeFiles/osgViewer.dir/HelpHandler.o CMakeFiles/osgViewer.dir/Renderer.o CMakeFiles/osgViewer.dir/Scene.o CMakeFiles/osgViewer.dir/ScreenCaptureHandler.o CMakeFiles/osgViewer.dir/StatsHandler.o CMakeFiles/osgViewer.dir/Version.o CMakeFiles/osgViewer.dir/View.o CMakeFiles/osgViewer.dir/Viewer.o CMakeFiles/osgViewer.dir/ViewerBase.o CMakeFiles/osgViewer.dir/ViewerEventHandlers.o CMakeFiles/osgViewer.dir/GraphicsWindowX11.o CMakeFiles/osgViewer.dir/PixelBufferX11.o ../../lib/libosgGA.so.2.7.9 ../../lib/libosgText.so.2.7.9 ../../lib/libosgDB.so.2.7.9 ../../lib/libosgUtil.so.2.7.9 ../../lib/libosg.so.2.7.9 ../../lib/libOpenThreads.so.2.3.1 -lXrandr -lm /usr/X11R6/lib/libGLU.so /usr/X11R6/lib/libGL.so /usr/local/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/local/lib/libXext.so -lpthread -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/us r/X11R6/lib /usr/bin/ld: cannot find -lXrandr gmake[2]: *** [lib/libosgViewer.so.2.7.9] Error 1 My libXrandr.so is in /usr/local/lib. I don't see a -L option for /usr/local/lib in the commandline above. Also the end of that commandline doesn't look right to me, namely -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/u sr/X11R6/lib. If I add -L/usr/local/lib to the end of the above commandline, it links. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, February 02, 2009 7:06 AM To: OpenSceneGraph Users Subject: Re: [osg-users] CDash errors/warnings Hi John, On Sat, Jan 31, 2009 at 10:34 PM, Shue, John A john.s...@mantech.com wrote: That did the trick. Compiled all the way to the end of the build without errors. Turns out that this fix that works for you and me using CMake 2.6.x, breaks the build with Cmake 2.4.8 so we'll need to try out another iteration, instead of using the X11_xrand_LIB we'll need to try XRANDR_LIBRARIES var. Could you try the attached CMakeLists.txt. Thanks, Robert. This communication, along with any attachments, is covered by federal and state law governing electronic communications and may contain company proprietary and legally privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, use or copying of this message is strictly prohibited. If you have received this in error, please reply immediately to the sender and delete this message. Thank you. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] CDash errors/warnings
Hi John, Could you try the attached src/osgViewer/CMakeLists.txt. This adds a : INCLUDE_DIRECTORIES(${XRANDR_LIBDIR}) Robert. On Mon, Feb 2, 2009 at 5:24 PM, Shue, John A john.s...@mantech.com wrote: Robert, I haven't read all the messages on the other thread with Cedric, but I tried this new CMakeLists.txt and it fails like the original one: Linking CXX shared library ../../lib/libosgViewer.so cd /home/jshue/working-OSG/OpenSceneGraph/src/osgViewer /usr/local/bin/cmake -E cmake_link_script CMakeFiles/osgViewer.dir/link.txt --verbose=1 /usr/bin/c++ -fPIC -Wall -Wparentheses -Wformat=2 -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -fpermissive -O3 -DNDEBUG -shared -Wl,-soname,libosgViewer.so.54 -o ../../lib/libosgViewer.so.2.7.9 CMakeFiles/osgViewer.dir/CompositeViewer.o CMakeFiles/osgViewer.dir/HelpHandler.o CMakeFiles/osgViewer.dir/Renderer.o CMakeFiles/osgViewer.dir/Scene.o CMakeFiles/osgViewer.dir/ScreenCaptureHandler.o CMakeFiles/osgViewer.dir/StatsHandler.o CMakeFiles/osgViewer.dir/Version.o CMakeFiles/osgViewer.dir/View.o CMakeFiles/osgViewer.dir/Viewer.o CMakeFiles/osgViewer.dir/ViewerBase.o CMakeFiles/osgViewer.dir/ViewerEventHandlers.o CMakeFiles/osgViewer.dir/GraphicsWindowX11.o CMakeFiles/osgViewer.dir/PixelBufferX11.o ../../lib/libosgGA.so.2.7.9 ../../lib/libosgText.so.2.7.9 ../../lib/libosgDB.so.2.7.9 ../../lib/libosgUtil.so.2.7.9 ../../lib/libosg.so.2.7.9 ../../lib/libOpenThreads.so.2.3.1 -lXrandr -lm /usr/X11R6/lib/libGLU.so /usr/X11R6/lib/libGL.so /usr/local/lib/libSM.so /usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/local/lib/libXext.so -lpthread -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/us r/X11R6/lib /usr/bin/ld: cannot find -lXrandr gmake[2]: *** [lib/libosgViewer.so.2.7.9] Error 1 My libXrandr.so is in /usr/local/lib. I don't see a -L option for /usr/local/lib in the commandline above. Also the end of that commandline doesn't look right to me, namely -Wl,-rpath,/home/jshue/working-OSG/OpenSceneGraph/lib:/usr/local/lib:/u sr/X11R6/lib. If I add -L/usr/local/lib to the end of the above commandline, it links. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Monday, February 02, 2009 7:06 AM To: OpenSceneGraph Users Subject: Re: [osg-users] CDash errors/warnings Hi John, On Sat, Jan 31, 2009 at 10:34 PM, Shue, John A john.s...@mantech.com wrote: That did the trick. Compiled all the way to the end of the build without errors. Turns out that this fix that works for you and me using CMake 2.6.x, breaks the build with Cmake 2.4.8 so we'll need to try out another iteration, instead of using the X11_xrand_LIB we'll need to try XRANDR_LIBRARIES var. Could you try the attached CMakeLists.txt. Thanks, Robert. This communication, along with any attachments, is covered by federal and state law governing electronic communications and may contain company proprietary and legally privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, use or copying of this message is strictly prohibited. If you have received this in error, please reply immediately to the sender and delete this message. Thank you. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org # FIXME: For OS X, need flag for Framework or dylib IF (DYNAMIC_OPENSCENEGRAPH) ADD_DEFINITIONS(-DOSGVIEWER_LIBRARY) ELSE (DYNAMIC_OPENSCENEGRAPH) ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC) ENDIF(DYNAMIC_OPENSCENEGRAPH) SET(LIB_NAME osgViewer) SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME}) SET(LIB_PUBLIC_HEADERS ${HEADER_PATH}/CompositeViewer ${HEADER_PATH}/Export ${HEADER_PATH}/GraphicsWindow ${HEADER_PATH}/Renderer ${HEADER_PATH}/Scene ${HEADER_PATH}/Version ${HEADER_PATH}/View ${HEADER_PATH}/Viewer ${HEADER_PATH}/ViewerBase ${HEADER_PATH}/ViewerEventHandlers ) SET(LIB_COMMON_FILES CompositeViewer.cpp HelpHandler.cpp Renderer.cpp Scene.cpp ScreenCaptureHandler.cpp StatsHandler.cpp Version.cpp View.cpp Viewer.cpp ViewerBase.cpp ViewerEventHandlers.cpp ) SET(LIB_EXTRA_LIBS) IF(WIN32) # # Enable workaround for OpenGL driver issues when used in multithreaded/multiscreen with NVidia drivers on Windows XP # For example: osgviewer dumptruck.osg was showing total garbage (screen looked like shattered, splashed hedgehog) # There were also serious issues with render to texture cameras. # Workaround repeats makeCurrentContext call as it was found that this causes the problems to dissapear. # OPTION
Re: [osg-users] CDash errors/warnings
Hi John, On Sat, Jan 31, 2009 at 10:34 PM, Shue, John A john.s...@mantech.com wrote: That did the trick. Compiled all the way to the end of the build without errors. Turns out that this fix that works for you and me using CMake 2.6.x, breaks the build with Cmake 2.4.8 so we'll need to try out another iteration, instead of using the X11_xrand_LIB we'll need to try XRANDR_LIBRARIES var. Could you try the attached CMakeLists.txt. Thanks, Robert. # FIXME: For OS X, need flag for Framework or dylib IF (DYNAMIC_OPENSCENEGRAPH) ADD_DEFINITIONS(-DOSGVIEWER_LIBRARY) ELSE (DYNAMIC_OPENSCENEGRAPH) ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC) ENDIF(DYNAMIC_OPENSCENEGRAPH) SET(LIB_NAME osgViewer) SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME}) SET(LIB_PUBLIC_HEADERS ${HEADER_PATH}/CompositeViewer ${HEADER_PATH}/Export ${HEADER_PATH}/GraphicsWindow ${HEADER_PATH}/Renderer ${HEADER_PATH}/Scene ${HEADER_PATH}/Version ${HEADER_PATH}/View ${HEADER_PATH}/Viewer ${HEADER_PATH}/ViewerBase ${HEADER_PATH}/ViewerEventHandlers ) SET(LIB_COMMON_FILES CompositeViewer.cpp HelpHandler.cpp Renderer.cpp Scene.cpp ScreenCaptureHandler.cpp StatsHandler.cpp Version.cpp View.cpp Viewer.cpp ViewerBase.cpp ViewerEventHandlers.cpp ) SET(LIB_EXTRA_LIBS) IF(WIN32) # # Enable workaround for OpenGL driver issues when used in multithreaded/multiscreen with NVidia drivers on Windows XP # For example: osgviewer dumptruck.osg was showing total garbage (screen looked like shattered, splashed hedgehog) # There were also serious issues with render to texture cameras. # Workaround repeats makeCurrentContext call as it was found that this causes the problems to dissapear. # OPTION(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND Set to ON if you have NVidia board and drivers earlier than 177.92 ver OFF) MARK_AS_ADVANCED(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND) IF(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND) ADD_DEFINITIONS(-DOSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND) ENDIF(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND) SET(LIB_PUBLIC_HEADERS ${LIB_PUBLIC_HEADERS} ${HEADER_PATH}/api/Win32/GraphicsWindowWin32 ${HEADER_PATH}/api/Win32/PixelBufferWin32 ) SET(LIB_COMMON_FILES ${LIB_COMMON_FILES} GraphicsWindowWin32.cpp PixelBufferWin32.cpp ) ELSE(WIN32) IF(APPLE) SET(OSG_WINDOWING_SYSTEM Carbon CACHE STRING Windowing system type for graphics window creation, options Carbon or X11.) ELSE(APPLE) SET(OSG_WINDOWING_SYSTEM X11 CACHE STRING Windowing system type for graphics window creation. options only X11) ENDIF(APPLE) IF(${OSG_WINDOWING_SYSTEM} STREQUAL Carbon) # FIXME: OS X needs selection mechanism for Cocoa, Carbon, X11 SET(LIB_PUBLIC_HEADERS ${LIB_PUBLIC_HEADERS} ${HEADER_PATH}/api/Carbon/GraphicsWindowCarbon ${HEADER_PATH}/api/Carbon/PixelBufferCarbon ) SET(LIB_COMMON_FILES ${LIB_COMMON_FILES} GraphicsWindowCarbon.cpp PixelBufferCarbon.cpp ) ELSE(${OSG_WINDOWING_SYSTEM} STREQUAL Carbon) # X11 for everybody else INCLUDE(FindPkgConfig OPTIONAL) IF (PKG_CONFIG_FOUND) PKG_CHECK_MODULES(XRANDR xrandr) IF (XRANDR_FOUND) OPTION(OSGVIEWER_USE_XRANDR Set to ON to enable Xrandr support for GraphicsWindowX11. ON) ELSE(XRANDR_FOUND) SET(OSGVIEWER_USE_XRANDR OFF) ENDIF (XRANDR_FOUND) ELSE(PKG_CONFIG_FOUND) SET(OSGVIEWER_USE_XRANDR OFF) ENDIF(PKG_CONFIG_FOUND) SET(LIB_PUBLIC_HEADERS ${LIB_PUBLIC_HEADERS} ${HEADER_PATH}/api/X11/GraphicsWindowX11 ${HEADER_PATH}/api/X11/PixelBufferX11 ) SET(LIB_COMMON_FILES ${LIB_COMMON_FILES} GraphicsWindowX11.cpp PixelBufferX11.cpp ) IF(OSGVIEWER_USE_XRANDR) ADD_DEFINITIONS(-DOSGVIEWER_USE_XRANDR) SET(LIB_PRIVATE_HEADERS ${LIB_PRIVATE_HEADERS} ${XRANDR_INCLUDE_DIRS} ) #SET(LIB_EXTRA_LIBS ${X11_Xrandr_LIB} ${LIB_EXTRA_LIBS}) SET(LIB_EXTRA_LIBS ${XRANDR_LIBRARIES} ${LIB_EXTRA_LIBS}) ENDIF(OSGVIEWER_USE_XRANDR) # X11 on Apple requires X11 library plus OpenGL linking hack on Leopard IF(APPLE) # Find GL/glx.h IF(EXISTS ${CMAKE_OSX_SYSROOT}/usr/X11/include/GL/glx.h) SET(OPENGL_INCLUDE_DIR /usr/X11/include) SET(OPENGL_LIBRARIES /usr/X11/lib/libGL.dylib) ELSEIF(EXISTS ${CMAKE_OSX_SYSROOT}/usr/X11R6/include/GL/glx.h) SET(OPENGL_INCLUDE_DIR /usr/X11R6/include) SET(OPENGL_LIBRARIES /usr/X11R6/lib/libGL.dylib)
Re: [osg-users] CDash errors/warnings
On Sat, Jan 31, 2009 at 10:34 PM, Shue, John A john.s...@mantech.com wrote: Robert, That did the trick. Compiled all the way to the end of the build without errors. Great, another step closer to OSG 2.8 :-) ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] CDash errors/warnings
Hi John, I did some work to address this issue last week, it's checked into svn/trunk and the last dev release. Could you try either of these out. Cheers, Robert. On Fri, Jan 30, 2009 at 9:50 PM, Shue, John A john.s...@mantech.com wrote: Hi Robert, I submitted my broken nightly build after you wrote this email: http://www.cdash.org/CDashPublic/viewBuildError.php?buildid=8157 I'm on a FreeBSD 6.2-STABLE system running gcc 3.4.6 and cmake 2.6-patch 1. The problem is with linking libosgViewer.so against libXrandr library. I have libXrandr-1.2.2_1 installed on my system and it was correctly found by Cmake: OSGVIEWER_USE_XRANDR ON X11_Xrandr_INCLUDE_PATH /usr/local/include X11_Xrandr_LIB /usr/local/lib/libXrandr.so I'm not a cmake expert, but does anyone have a clue why libXrandr isn't found by the linker? BTW, if I set OSGVIEWER_USE_XRANDR to OFF, everything builds properly. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Friday, January 30, 2009 10:17 AM To: OpenSceneGraph Users Subject: [osg-users] CDash errors/warnings Hi All, Reviewing the CDash pages of the OSG ( http://www.cdash.org/CDashPublic/index.php?project=OpenSceneGraph) I see that two of the builds are failing, neither are problems in the OSG source code itself, one looks to be a Cmake/dependency issue, and the other is problems in gl headers/libs. I would like to get these errors resolved, but as I don't have the systems in front of me I can't do much directly, so here's me call to coordinate with those who've fired off this problems builds with getting them fixed. If you are responsible for this build please raise you hand so I know how to coordinate the fixes with. Cheers Robert. First up we have: -- Problem 1, mingw svg error: http://www.cdash.org/CDashPublic/viewBuildError.php?buildid=8132 Site:mingw-cross.office.jester Build Name:Win32-make Build Time:2009-01-30T01:13:04 EST Found 2 Errors Warnings are here. Build Log line 511 [ 99%] Built target osgdb_zip make[6]: Entering directory `/data/.../build/osg-mingw' Scanning dependencies of target osgdb_svg make[6]: Leaving directory `/data/.../build/osg-mingw' make[6]: Entering directory `/data/.../build/osg-mingw' Linking CXX shared module ../../../bin/osgPlugins-2.7.9/mingw_osgdb_svg.dll /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bi n/ld: cannot find -lrsvg-2 -- Problem 2, redhat libGL.so errors: http://www.cdash.org/CDashPublic/viewBuildError.php?buildid=8092 Site:thira.inria.fr Build Name:Linux-2.6.27.12-170.2.5.fc10.x86_64-x86_64-c++ Build Time:2009-01-29T20:49:42 EST Found 10 Errors Warnings are here. Build Log line 1172 gmake[6]: Entering directory `/.../OpenSceneGraph/NightlyBuild' Scanning dependencies of target application_osgviewer gmake[6]: Leaving directory `/.../OpenSceneGraph/NightlyBuild' gmake[6]: Entering directory `/.../OpenSceneGraph/NightlyBuild' [ 99%] Building CXX object applications/osgviewer/CMakeFiles/application_osgviewer.dir/osgviewer.o Linking CXX executable ../../bin/osgviewer /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../lib64/libGL.so: undefined reference to `_nv001458gl' ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g This communication, along with any attachments, is covered by federal and state law governing electronic communications and may contain company proprietary and legally privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, use or copying of this message is strictly prohibited. If you have received this in error, please reply immediately to the sender and delete this message. Thank you. ___ 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] CDash errors/warnings
On Sat, Jan 31, 2009 at 9:56 AM, Robert Osfield robert.osfi...@gmail.com wrote: I did some work to address this issue last week, it's checked into svn/trunk and the last dev release. Could you try either of these out. Oops, I read the CMake version you mentioned and thought that was the OSG version you tried... On review I now see that you were testing 2.7.9. Could you try the attached OpenSceneGraph/src/osgViewer/CMakeLists.txt (also checked into svn/trunk) as I've restructured the link line. SET(LIB_EXTRA_LIBS ${X11_Xrandr_LIB} ${LIB_EXTRA_LIBS}) Running with make VERBOSE=1 shows -lXrandr on the link line so it does appear to be working. But then... it was originally for me as well... The ordering and use of the ${X11_Xrandr_LIB} might make the difference for you. Cheers, Robert. # FIXME: For OS X, need flag for Framework or dylib IF (DYNAMIC_OPENSCENEGRAPH) ADD_DEFINITIONS(-DOSGVIEWER_LIBRARY) ELSE (DYNAMIC_OPENSCENEGRAPH) ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC) ENDIF(DYNAMIC_OPENSCENEGRAPH) SET(LIB_NAME osgViewer) SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME}) SET(LIB_PUBLIC_HEADERS ${HEADER_PATH}/CompositeViewer ${HEADER_PATH}/Export ${HEADER_PATH}/GraphicsWindow ${HEADER_PATH}/Renderer ${HEADER_PATH}/Scene ${HEADER_PATH}/Version ${HEADER_PATH}/View ${HEADER_PATH}/Viewer ${HEADER_PATH}/ViewerBase ${HEADER_PATH}/ViewerEventHandlers ) SET(LIB_COMMON_FILES CompositeViewer.cpp HelpHandler.cpp Renderer.cpp Scene.cpp ScreenCaptureHandler.cpp StatsHandler.cpp Version.cpp View.cpp Viewer.cpp ViewerBase.cpp ViewerEventHandlers.cpp ) SET(LIB_EXTRA_LIBS) IF(WIN32) # # Enable workaround for OpenGL driver issues when used in multithreaded/multiscreen with NVidia drivers on Windows XP # For example: osgviewer dumptruck.osg was showing total garbage (screen looked like shattered, splashed hedgehog) # There were also serious issues with render to texture cameras. # Workaround repeats makeCurrentContext call as it was found that this causes the problems to dissapear. # OPTION(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND Set to ON if you have NVidia board and drivers earlier than 177.92 ver OFF) MARK_AS_ADVANCED(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND) IF(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND) ADD_DEFINITIONS(-DOSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND) ENDIF(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND) SET(LIB_PUBLIC_HEADERS ${LIB_PUBLIC_HEADERS} ${HEADER_PATH}/api/Win32/GraphicsWindowWin32 ${HEADER_PATH}/api/Win32/PixelBufferWin32 ) SET(LIB_COMMON_FILES ${LIB_COMMON_FILES} GraphicsWindowWin32.cpp PixelBufferWin32.cpp ) ELSE(WIN32) IF(APPLE) SET(OSG_WINDOWING_SYSTEM Carbon CACHE STRING Windowing system type for graphics window creation, options Carbon or X11.) ELSE(APPLE) SET(OSG_WINDOWING_SYSTEM X11 CACHE STRING Windowing system type for graphics window creation. options only X11) ENDIF(APPLE) IF(${OSG_WINDOWING_SYSTEM} STREQUAL Carbon) # FIXME: OS X needs selection mechanism for Cocoa, Carbon, X11 SET(LIB_PUBLIC_HEADERS ${LIB_PUBLIC_HEADERS} ${HEADER_PATH}/api/Carbon/GraphicsWindowCarbon ${HEADER_PATH}/api/Carbon/PixelBufferCarbon ) SET(LIB_COMMON_FILES ${LIB_COMMON_FILES} GraphicsWindowCarbon.cpp PixelBufferCarbon.cpp ) ELSE(${OSG_WINDOWING_SYSTEM} STREQUAL Carbon) # X11 for everybody else INCLUDE(FindPkgConfig OPTIONAL) IF (PKG_CONFIG_FOUND) PKG_CHECK_MODULES(XRANDR xrandr) IF (XRANDR_FOUND) OPTION(OSGVIEWER_USE_XRANDR Set to ON to enable Xrandr support for GraphicsWindowX11. ON) ELSE(XRANDR_FOUND) SET(OSGVIEWER_USE_XRANDR OFF) ENDIF (XRANDR_FOUND) ELSE(PKG_CONFIG_FOUND) SET(OSGVIEWER_USE_XRANDR OFF) ENDIF(PKG_CONFIG_FOUND) SET(LIB_PUBLIC_HEADERS ${LIB_PUBLIC_HEADERS} ${HEADER_PATH}/api/X11/GraphicsWindowX11 ${HEADER_PATH}/api/X11/PixelBufferX11 ) SET(LIB_COMMON_FILES ${LIB_COMMON_FILES} GraphicsWindowX11.cpp PixelBufferX11.cpp ) IF(OSGVIEWER_USE_XRANDR) ADD_DEFINITIONS(-DOSGVIEWER_USE_XRANDR) SET(LIB_PRIVATE_HEADERS ${LIB_PRIVATE_HEADERS} ${XRANDR_INCLUDE_DIRS} ) SET(LIB_EXTRA_LIBS ${X11_Xrandr_LIB} ${LIB_EXTRA_LIBS}) ENDIF(OSGVIEWER_USE_XRANDR) # X11 on Apple requires X11 library plus OpenGL linking hack on Leopard IF(APPLE) # Find GL/glx.h IF(EXISTS ${CMAKE_OSX_SYSROOT}/usr/X11/include/GL/glx.h) SET(OPENGL_INCLUDE_DIR
Re: [osg-users] CDash errors/warnings
Robert, That did the trick. Compiled all the way to the end of the build without errors. -john -- Sent from my BlackBerry Wireless Device - Original Message - From: osg-users-boun...@lists.openscenegraph.org osg-users-boun...@lists.openscenegraph.org To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Sent: Sat Jan 31 05:21:52 2009 Subject: Re: [osg-users] CDash errors/warnings On Sat, Jan 31, 2009 at 9:56 AM, Robert Osfield robert.osfi...@gmail.com wrote: I did some work to address this issue last week, it's checked into svn/trunk and the last dev release. Could you try either of these out. Oops, I read the CMake version you mentioned and thought that was the OSG version you tried... On review I now see that you were testing 2.7.9. Could you try the attached OpenSceneGraph/src/osgViewer/CMakeLists.txt (also checked into svn/trunk) as I've restructured the link line. SET(LIB_EXTRA_LIBS ${X11_Xrandr_LIB} ${LIB_EXTRA_LIBS}) Running with make VERBOSE=1 shows -lXrandr on the link line so it does appear to be working. But then... it was originally for me as well... The ordering and use of the ${X11_Xrandr_LIB} might make the difference for you. Cheers, Robert. This communication, along with any attachments, is covered by federal and state law governing electronic communications and may contain company proprietary and legally privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, use or copying of this message is strictly prohibited. If you have received this in error, please reply immediately to the sender and delete this message. Thank you. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] CDash errors/warnings
Hi All, Reviewing the CDash pages of the OSG ( http://www.cdash.org/CDashPublic/index.php?project=OpenSceneGraph) I see that two of the builds are failing, neither are problems in the OSG source code itself, one looks to be a Cmake/dependency issue, and the other is problems in gl headers/libs. I would like to get these errors resolved, but as I don't have the systems in front of me I can't do much directly, so here's me call to coordinate with those who've fired off this problems builds with getting them fixed. If you are responsible for this build please raise you hand so I know how to coordinate the fixes with. Cheers Robert. First up we have: -- Problem 1, mingw svg error: http://www.cdash.org/CDashPublic/viewBuildError.php?buildid=8132 Site:mingw-cross.office.jester Build Name:Win32-make Build Time:2009-01-30T01:13:04 EST Found 2 Errors Warnings are here. Build Log line 511 [ 99%] Built target osgdb_zip make[6]: Entering directory `/data/.../build/osg-mingw' Scanning dependencies of target osgdb_svg make[6]: Leaving directory `/data/.../build/osg-mingw' make[6]: Entering directory `/data/.../build/osg-mingw' Linking CXX shared module ../../../bin/osgPlugins-2.7.9/mingw_osgdb_svg.dll /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -lrsvg-2 -- Problem 2, redhat libGL.so errors: http://www.cdash.org/CDashPublic/viewBuildError.php?buildid=8092 Site:thira.inria.fr Build Name:Linux-2.6.27.12-170.2.5.fc10.x86_64-x86_64-c++ Build Time:2009-01-29T20:49:42 EST Found 10 Errors Warnings are here. Build Log line 1172 gmake[6]: Entering directory `/.../OpenSceneGraph/NightlyBuild' Scanning dependencies of target application_osgviewer gmake[6]: Leaving directory `/.../OpenSceneGraph/NightlyBuild' gmake[6]: Entering directory `/.../OpenSceneGraph/NightlyBuild' [ 99%] Building CXX object applications/osgviewer/CMakeFiles/application_osgviewer.dir/osgviewer.o Linking CXX executable ../../bin/osgviewer /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../lib64/libGL.so: undefined reference to `_nv001458gl' ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] CDash errors/warnings
Hi Robert, I submitted my broken nightly build after you wrote this email: http://www.cdash.org/CDashPublic/viewBuildError.php?buildid=8157 I'm on a FreeBSD 6.2-STABLE system running gcc 3.4.6 and cmake 2.6-patch 1. The problem is with linking libosgViewer.so against libXrandr library. I have libXrandr-1.2.2_1 installed on my system and it was correctly found by Cmake: OSGVIEWER_USE_XRANDR ON X11_Xrandr_INCLUDE_PATH /usr/local/include X11_Xrandr_LIB /usr/local/lib/libXrandr.so I'm not a cmake expert, but does anyone have a clue why libXrandr isn't found by the linker? BTW, if I set OSGVIEWER_USE_XRANDR to OFF, everything builds properly. -john -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Friday, January 30, 2009 10:17 AM To: OpenSceneGraph Users Subject: [osg-users] CDash errors/warnings Hi All, Reviewing the CDash pages of the OSG ( http://www.cdash.org/CDashPublic/index.php?project=OpenSceneGraph) I see that two of the builds are failing, neither are problems in the OSG source code itself, one looks to be a Cmake/dependency issue, and the other is problems in gl headers/libs. I would like to get these errors resolved, but as I don't have the systems in front of me I can't do much directly, so here's me call to coordinate with those who've fired off this problems builds with getting them fixed. If you are responsible for this build please raise you hand so I know how to coordinate the fixes with. Cheers Robert. First up we have: -- Problem 1, mingw svg error: http://www.cdash.org/CDashPublic/viewBuildError.php?buildid=8132 Site:mingw-cross.office.jester Build Name:Win32-make Build Time:2009-01-30T01:13:04 EST Found 2 Errors Warnings are here. Build Log line 511 [ 99%] Built target osgdb_zip make[6]: Entering directory `/data/.../build/osg-mingw' Scanning dependencies of target osgdb_svg make[6]: Leaving directory `/data/.../build/osg-mingw' make[6]: Entering directory `/data/.../build/osg-mingw' Linking CXX shared module ../../../bin/osgPlugins-2.7.9/mingw_osgdb_svg.dll /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bi n/ld: cannot find -lrsvg-2 -- Problem 2, redhat libGL.so errors: http://www.cdash.org/CDashPublic/viewBuildError.php?buildid=8092 Site:thira.inria.fr Build Name:Linux-2.6.27.12-170.2.5.fc10.x86_64-x86_64-c++ Build Time:2009-01-29T20:49:42 EST Found 10 Errors Warnings are here. Build Log line 1172 gmake[6]: Entering directory `/.../OpenSceneGraph/NightlyBuild' Scanning dependencies of target application_osgviewer gmake[6]: Leaving directory `/.../OpenSceneGraph/NightlyBuild' gmake[6]: Entering directory `/.../OpenSceneGraph/NightlyBuild' [ 99%] Building CXX object applications/osgviewer/CMakeFiles/application_osgviewer.dir/osgviewer.o Linking CXX executable ../../bin/osgviewer /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../lib64/libGL.so: undefined reference to `_nv001458gl' ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g This communication, along with any attachments, is covered by federal and state law governing electronic communications and may contain company proprietary and legally privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, use or copying of this message is strictly prohibited. If you have received this in error, please reply immediately to the sender and delete this message. Thank you. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org