[CMake] xlC / HAVE_GETHOSTBYNAME_R_6 (Was Re: CMake 2.8.0 RC 1 ready for testing!)

Brad King brad.king at kitware.com
Thu Oct 1 11:36:54 EDT 2009


Mathieu Malaterre wrote:
>> Are they linking to the right
>> one in the first place?
> 
> I do not understand the question... :(

My bad.  For some reason I was thinking it was linking but failing
to locate the library it linked at runtime.  In fact it is just
picking the wrong library and cannot link to it.

> My question was simply is cmake able to pick the 64bits libs even for
> Qt ? Or should I set something else in my nightly cmake dashboard ?

The FindQt3.cmake module is finding

   /usr/lib/qt3/lib/libqt-mt.so

instead of

   /usr/lib/qt3/lib64/libqt-mt.so

It looks like those paths are hard-coded in the "lib" then "lib64" order.
They were added by the commit below (relevant hunk shown).

Alex, do you remember where you got this patch?
I don't see it in our bug tracker or on the cmake or kde build lists.

Mathieu, what distro is this?  Does the FIND_LIBRARY_USE_LIB64_PATHS
global property get enabled in CMake projects on it?

-Brad


Author: Alexander Neundorf <neundorf at kde.org>
Date:   Wed Aug 30 17:51:22 2006 +0000

     ENH: automatically find Qt3 on SUSE, patch from Dirk Mueller and Stephan
     Kulow

diff --git a/Modules/FindQt3.cmake b/Modules/FindQt3.cmake
index 1e5ae0c..ba0a7c0 100755
--- a/Modules/FindQt3.cmake
+++ b/Modules/FindQt3.cmake
@@ -68,6 +69,8 @@ IF (QT_MT_REQUIRED)
      ${GLOB_PATHS_LIB}
      /usr/local/qt/lib
      /usr/lib/qt/lib
+    /usr/lib/qt3/lib
+    /usr/lib/qt3/lib64
      /usr/share/qt3/lib
      C:/Progra~1/qt/lib
      /usr/X11R6/lib


More information about the CMake mailing list