<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi David,<div><br></div><div>I get: </div><div><br></div><div><div>$ grep -i uuid CMakeCache.txt</div><div>LIBVAR:FILEPATH=/usr/lib64/libuuid.so</div><div><br></div><div>Sorry for the double email, I dropped the mailing list in the last one.</div><div><br></div><div>Thanks, Sara</div><div><br></div><div><div>On May 24, 2011, at 10:21 AM, David Cole wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote">On Tue, May 24, 2011 at 12:54 PM, Sara Rolfe <span dir="ltr"><<a href="mailto:smrolfe@u.washington.edu">smrolfe@u.washington.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Update: I've attempted to add /usr/lib64/libuuid.so as an external library, but am still getting the same error. When I run ccmake it appears to find the location of the library. Below is my CMakeLists.txt in case I have made any errors here:<div class="im"> <br> <br> cmake_minimum_required(VERSION 2.6)<br> <br> PROJECT(Geo)<br> <br></div><div class="im"> set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)<br> <br></div> FIND_LIBRARY(LIBVAR NAMES libuuid.so PATHS /usr/lib64)<div class="im"><br> <br> FIND_PACKAGE(ITK)<br> IF(ITK_FOUND)<br> INCLUDE( ${USE_ITK_FILE} )<br> ENDIF(ITK_FOUND)<br> <br> FIND_PACKAGE(VTK)<br> IF(VTK_FOUND)<br> INCLUDE( ${USE_VTK_FILE} )<br> ENDIF(VTK_FOUND)<br> <br> <br> ADD_EXECUTABLE(SubsampleVolume SubsampleVolume.cxx )<br> <br></div> TARGET_LINK_LIBRARIES(SubsampleVolume<br> ITKNumerics ITKIO ITKBasicFilters vtkRendering vtkIO vtkWidgets vtkHybrid ${LIBVAR})<div><div></div><div class="h5"><br> <br> On May 24, 2011, at 9:24 AM, Sara Rolfe wrote:<br> <br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Is there some other way that I can force CMake to find /usr/lib/libuuid.so? Like if I included it as an external library?<br> <br> Thanks,<br> Sara<br> <br> <br> On May 23, 2011, at 2:29 PM, Sara Rolfe wrote:<br> <br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Hi Eric,<br> <br> Yes, I believe it is a dependancy from ITK. I saw that wiki page and at the time did not have that library, so I installed it. I have used CMake to successfully create applications using both VTK and ITK on a 32-bit machine. This problem arose when I moved to a 64-bit machine.<br> <br> I've also posted to the ITK mailing list, but so far no one there has had any ideas.<br> <br> Thanks,<br> Sara<br> <br> On May 23, 2011, at 2:11 PM, Eric Noulard wrote:<br> <br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> 2011/5/23 Sara Rolfe <<a href="mailto:smrolfe@u.washington.edu" target="_blank">smrolfe@u.washington.edu</a>>:<br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Hi Eric,<br> <br> Thanks for pointing this out. I changed the order, but am still getting the<br> same error:<br> <br> make[2]: *** No rule to make target `/usr/lib/libuuid.so', needed by<br> `SubsampleVolume'. Stop.<br> make[1]: *** [CMakeFiles/SubsampleVolume.dir/all] Error 2<br> make: *** [all] Error 2<br> <br> The location of libuuid on my machine is: /usr/lib64/libuuid.so<br> </blockquote> <br> libuuid does not appear as a direct dependency of<br> your SubsampleVolume target,<br> you wrote:<br> TARGET_LINK_LIBRARIES(SubsampleVolume<br> ITKNumerics ITKIO ITKBasicFilters vtkRendering vtkIO vtkWidgets<br> vtkHybrid)<br> <br> So my guess is that this dependency is indirect and comes from either<br> ITK or VTK,<br> which seems confirmed by<br> <a href="http://www.vtk.org/Wiki/ITK_Configuring_and_Building_for_Ubuntu_Linux#uuid_.28dependency.29" target="_blank">http://www.vtk.org/Wiki/ITK_Configuring_and_Building_for_Ubuntu_Linux#uuid_.28dependency.29</a><br> <br> Did you manage to create a VTK application with CMake before?<br> <br> May be you should ask on VTK mailing list<br> <a href="http://www.vtk.org/VTK/help/mailing.html" target="_blank">http://www.vtk.org/VTK/help/mailing.html</a><br> about your link trouble.<br> <br> PS: beware not to drop the mailling list address<br> -- <br> Erk<br> Membre de l'April - « promouvoir et défendre le logiciel libre » -<br> <a href="http://www.april.org" target="_blank">http://www.april.org</a><br> </blockquote> <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 CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br> <br> Follow this link to subscribe/unsubscribe:<br> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br> </blockquote> <br> </blockquote> <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 CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br> <br> Follow this link to subscribe/unsubscribe:<br> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br> </div></div></blockquote></div><br><br>What does "grep -i uuid CMakeCache.txt" yield?<br><br>If you use the same variable name as the sub-project that's finding it for you, you should be able to "preset" that variable before finding the package that includes it. (Assuming they're using a variable to do this, and not simply adding "uuid" as a targeted link library...)<br> <br><br>HTH,<br>David<br><br></blockquote></div><br></div></body></html>