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: [email protected]
[mailto:[email protected]] 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 <[email protected]>
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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to