I can mention this to the CMake guys and see what they think. We just fixed a similar problem with finding libGL on HP-UX where it could be in usr/lib/hpux64 or usr/lib/hpux32.<br><br><div class="gmail_quote">On Tue, Jun 23, 2009 at 6:51 AM, Graham Macpherson <span dir="ltr"><<a href="mailto:g.macpherson@opencfd.co.uk">g.macpherson@opencfd.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
I had an OpenGL related problem building ParaView 3.5 and 3.6. I'm running<br>
OpenSUSE 11.1, 2.6.27.23-0.1, x86_64, with NVIDIA version 185.18.14 drivers<br>
and OpenGL which came from NVIDIA's repository, i.e. here<br>
<br>
<a href="ftp://download.nvidia.com/opensuse/11.1/x86_64/" target="_blank">ftp://download.nvidia.com/opensuse/11.1/x86_64/</a><br>
<br>
When it was linking some executables I got a load of errors of the likes of:<br>
<br>
Linking CXX executable ../../../../bin/ImagingCxxTests<br>
/usr/lib64/libGL.so: undefined reference to `_nv001622gl'<br>
/usr/lib64/libGL.so: undefined reference to `_nv001299gl'<br>
/usr/lib64/libGL.so: undefined reference to `_nv001491gl'<br>
...<br>
etc<br>
<br>
The problem comes from the fact that /usr/lib64/libGL.so doesn't seem to be<br>
the correct location for the proper libGL.so, at least on OpenSUSE 11.1 with<br>
NVIDIA drivers. If I run<br>
<br>
ldd /usr/bin/* | grep libGL.so<br>
<br>
or<br>
<br>
ldd /usr/lib64/* | grep libGL.so<br>
<br>
then every system executable and library calling libGL.so is calling it from<br>
this location:<br>
<br>
libGL.so.1 => /usr/X11R6/lib64/libGL.so.1<br>
<br>
rather than<br>
<br>
/usr/lib64/libGL.so<br>
<br>
where CMake is looking for it. In the past, I think the packages of drivers<br>
were creating a copy of libGL.so in /usr/lib64 (for example I have<br>
/usr/lib64/libGL.so.180.44 from previous drivers, which was soft-linked to<br>
/usr/lib64/libGL.so) so it was OK to link to it, but they seem to have stopped<br>
doing that in the most recent version, as that's apparently not where the OS<br>
is going to look for it.<br>
<br>
The reason I had linking problems is that I had the old version of libGL.so<br>
still lurking in /usr/lib64/, so it was linking against the wrong version. If<br>
I manually create soft-links in /usr/lib64 to point to the correct libraries<br>
in /usr/X11R6/lib64/ then ParaView builds fine.<br>
<br>
I could suggest that the CMake looks in /usr/X11R6/lib64 in preference to<br>
/usr/lib64, but I don't know if this is a portable, general solution.<br>
<br>
Regards,<br>
<br>
Graham<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>