Hi Eric,
Thanks for pointing this out. I changed the order, but am still
getting the same error:
make[2]: *** No rule to make target `/usr/lib/libuuid.so', needed by
`SubsampleVolume'. Stop.
make[1]: *** [CMakeFiles/SubsampleVolume.dir/all] Error 2
make: *** [all] Error 2
The location of libuuid on my machine is: /usr/lib64/libuuid.so
Thanks,
Sara
2011/5/23 Sara Rolfe <smro...@u.washington.edu>:
Hi Eric,
Thanks for your reply. I tried setting the
FIND_LIBRARY_USE_LIB64_PATHS
property, but this did not resolve the problem. I will read
through the bug
report you linked to. Below is my CMakeLists.txt file. Could you
let me
know if you see any issues?
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)
should be set BEFORE any find_package.
However which 64bit lib is not found?
What is the symptom?
Thanks,
Sara
cmake_minimum_required(VERSION 2.6)
PROJECT(Geo)
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
INCLUDE( ${USE_ITK_FILE} )
ENDIF(ITK_FOUND)
FIND_PACKAGE(VTK)
IF(VTK_FOUND)
INCLUDE( ${USE_VTK_FILE} )
ENDIF(VTK_FOUND)
ADD_EXECUTABLE(SubsampleVolume SubsampleVolume.cxx )
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)
TARGET_LINK_LIBRARIES(SubsampleVolume
ITKNumerics ITKIO ITKBasicFilters vtkRendering vtkIO
vtkWidgets
vtkHybrid)
On May 22, 2011, at 12:14 AM, Eric Noulard wrote:
2011/5/22 Sara Rolfe <smro...@u.washington.edu>:
The latest version of CMake, cmake-2.8.4-Linux-i386.tar.gz does
not
looking
in /lib64 paths. Could you let me know which version of CMake
you are
referring to, that checks this path?
2.8.4 should definitely have this is the
FIND_LIBRARY_USE_LIB64_PATHS global property.
$ cmake --help-property FIND_LIBRARY_USE_LIB64_PATHS
FIND_LIBRARY_USE_LIB64_PATHS
Whether FIND_LIBRARY should automatically search lib64
directories.
FIND_LIBRARY_USE_LIB64_PATHS is a boolean specifying whether
the
FIND_LIBRARY command should automatically search the lib64
variant of
directories called lib in the search path when building 64-bit
binaries.
This should be automatically set unless you are on Debian.
However like I said before the multilib/lib64 issue is more
complex than
that
so read the comments of the following bug report:
http://public.kitware.com/Bug/view.php?id=12037
and may be related bugs therein and you should find the needed
informations
including what works what does not.
That said may be you can give us a small precise example
(i.e. a strip down version of your CMakeLists.txt which exhibit
the issue)
of what is not working for you and we may give more precise answer.
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake