From: Lianqing Y. <lq...@nl...> - 2009-11-15 13:00:12
|
Hi all, I am writing some "CMakeLists.txt" files for my project that use VXL libraries. According to the Appendix B of VXL book (http://public.kitware.com/vxl/doc/release/books/core/book_14.html#SEC148), I insert following lines to my CMakeLists.txt file: FIND_PACKAGE(VXL) IF(VXL_FOUND) SET(VXL_PROVIDE_OLD_CACHE_NAMES 1) SET(VXL_PROVIDE_STANDARD_OPTIONS 1) INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake) ELSE(VXL_FOUND) MESSAGE("VXL_DIR should be set to the VXL build directory.") ENDIF(VXL_FOUND) My "CMakeLists.txt" files work fine under Windows Vista (Visual C++ 2008, CMake 2.6.0) in that VXL_DIR is automatically set to the right location. But they do not work under Linux CentOS 5.3 (GCC 4.1.2, CMake 2.6.4), with the error message below: CMake Warning at CMakeLists.txt:8 (FIND_PACKAGE): Could not find module FindVXL.cmake or a configuration file for package VXL. Adjust CMAKE_MODULE_PATH to find FindVXL.cmake or set VXL_DIR to the directory containing a CMake configuration file for VXL. The file will have one of the following names: VXLConfig.cmake vxl-config.cmake VXL_DIR should be set to the VXL build directory. After some research, I could not find FindVXL.cmake on either Windows or Linux. Could someone explain why VXL package is found under Windows, but not under Linux. Thanks. Lianqing Yu 2009-11-15 |
From: Wheeler, F. W (G. Research) <wh...@ge...> - 2009-11-16 15:43:22
|
Lianqing, There is no FindVXL.cmake, but the configuration file VXLConfig.cmake will be created in the top level directory of the VXL build tree (not the source tree, the build tree) after you run CMake for VXL. VXL_DIR should be set to that top level directory when you configure your project. Perhaps you ran cmake for the windows build, but not the linux build? Fred Wheeler ________________________________ From: Lianqing Yu [mailto:lq...@nl...] Sent: Sunday, November 15, 2009 7:46 AM To: vxl...@li... Subject: [Vxl-users] CMakeLists.txt: Could not find VXL package in Linux Hi all, I am writing some "CMakeLists.txt" files for my project that use VXL libraries. According to the Appendix B of VXL book (http://public.kitware.com/vxl/doc/release/books/core/book_14.html#SEC14 8), I insert following lines to my CMakeLists.txt file: FIND_PACKAGE(VXL) IF(VXL_FOUND) SET(VXL_PROVIDE_OLD_CACHE_NAMES 1) SET(VXL_PROVIDE_STANDARD_OPTIONS 1) INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake) ELSE(VXL_FOUND) MESSAGE("VXL_DIR should be set to the VXL build directory.") ENDIF(VXL_FOUND) My "CMakeLists.txt" files work fine under Windows Vista (Visual C++ 2008, CMake 2.6.0) in that VXL_DIR is automatically set to the right location. But they do not work under Linux CentOS 5.3 (GCC 4.1.2, CMake 2.6.4), with the error message below: CMake Warning at CMakeLists.txt:8 (FIND_PACKAGE): Could not find module FindVXL.cmake or a configuration file for package VXL. Adjust CMAKE_MODULE_PATH to find FindVXL.cmake or set VXL_DIR to the directory containing a CMake configuration file for VXL. The file will have one of the following names: VXLConfig.cmake vxl-config.cmake VXL_DIR should be set to the VXL build directory. After some research, I could not find FindVXL.cmake on either Windows or Linux. Could someone explain why VXL package is found under Windows, but not under Linux. Thanks. Lianqing Yu 2009-11-15 |
From: Lianqing Y. <lq...@nl...> - 2009-11-17 16:28:08
|
Hi Wheeler, Thanks for your help. I ran pre-built cmake under Windows, and built cmake from source code under Linux. Lianqing Yu ----- Original Message ----- From: Wheeler, Frederick W (GE, Research) To: vxl...@li... Cc: Lianqing Yu Sent: Monday, November 16, 2009 11:43 PM Subject: RE: [Vxl-users] CMakeLists.txt: Could not find VXL package in Linux Lianqing, There is no FindVXL.cmake, but the configuration file VXLConfig.cmake will be created in the top level directory of the VXL build tree (not the source tree, the build tree) after you run CMake for VXL. VXL_DIR should be set to that top level directory when you configure your project. Perhaps you ran cmake for the windows build, but not the linux build? Fred Wheeler ---------------------------------------------------------------------------- From: Lianqing Yu [mailto:lq...@nl...] Sent: Sunday, November 15, 2009 7:46 AM To: vxl...@li... Subject: [Vxl-users] CMakeLists.txt: Could not find VXL package in Linux Hi all, I am writing some "CMakeLists.txt" files for my project that use VXL libraries. According to the Appendix B of VXL book (http://public.kitware.com/vxl/doc/release/books/core/book_14.html#SEC148), I insert following lines to my CMakeLists.txt file: FIND_PACKAGE(VXL) IF(VXL_FOUND) SET(VXL_PROVIDE_OLD_CACHE_NAMES 1) SET(VXL_PROVIDE_STANDARD_OPTIONS 1) INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake) ELSE(VXL_FOUND) MESSAGE("VXL_DIR should be set to the VXL build directory.") ENDIF(VXL_FOUND) My "CMakeLists.txt" files work fine under Windows Vista (Visual C++ 2008, CMake 2.6.0) in that VXL_DIR is automatically set to the right location. But they do not work under Linux CentOS 5.3 (GCC 4.1.2, CMake 2.6.4), with the error message below: CMake Warning at CMakeLists.txt:8 (FIND_PACKAGE): Could not find module FindVXL.cmake or a configuration file for package VXL. Adjust CMAKE_MODULE_PATH to find FindVXL.cmake or set VXL_DIR to the directory containing a CMake configuration file for VXL. The file will have one of the following names: VXLConfig.cmake vxl-config.cmake VXL_DIR should be set to the VXL build directory. After some research, I could not find FindVXL.cmake on either Windows or Linux. Could someone explain why VXL package is found under Windows, but not under Linux. Thanks. Lianqing Yu 2009-11-15 |
From: Gehua Y. <yan...@gm...> - 2009-11-16 22:41:20
|
Hi Lianqing, You may have known this piece of information, but I would like to point it out just in case: CMake does not (always) find VXL binary folder for you. In the cases when it does not, You have to specify the folder location in a cache setting "VXL_DIR:PATH" in CMakeCache.txt that is located in your project binary folder. "FIND_PACKAGE(VXL)" uses this cache setting to locate the VXL package should it be installed in a not-commonly-known location. More specifically in your case, CMake failed to find your VXL binary folder (or installation folder) in Linux. As the result, VXL_DIR was set to NOT-FOUND and an error message was issued. In order to change the value of VXL_DIR, you can either manually modify CMakeCache.txt file located in your project binary folder, or use a GUI program, such as ccmake (text-based) or cmake-gui (graphic-based). Just remember to re-run CMake once the change is made. Good luck. Regards, Gehua Yang From: Lianqing Yu [mailto:lq...@nl...] Sent: Sunday, November 15, 2009 7:46 AM To: vxl...@li... Subject: [Vxl-users] CMakeLists.txt: Could not find VXL package in Linux Hi all, I am writing some "CMakeLists.txt" files for my project that use VXL libraries. According to the Appendix B of VXL book (http://public.kitware.com/vxl/doc/release/books/core/book_14.html#SEC148), I insert following lines to my CMakeLists.txt file: FIND_PACKAGE(VXL) IF(VXL_FOUND) SET(VXL_PROVIDE_OLD_CACHE_NAMES 1) SET(VXL_PROVIDE_STANDARD_OPTIONS 1) INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake) ELSE(VXL_FOUND) MESSAGE("VXL_DIR should be set to the VXL build directory.") ENDIF(VXL_FOUND) My "CMakeLists.txt" files work fine under Windows Vista (Visual C++ 2008, CMake 2.6.0) in that VXL_DIR is automatically set to the right location. But they do not work under Linux CentOS 5.3 (GCC 4.1.2, CMake 2.6.4), with the error message below: CMake Warning at CMakeLists.txt:8 (FIND_PACKAGE): Could not find module FindVXL.cmake or a configuration file for package VXL. Adjust CMAKE_MODULE_PATH to find FindVXL.cmake or set VXL_DIR to the directory containing a CMake configuration file for VXL. The file will have one of the following names: VXLConfig.cmake vxl-config.cmake VXL_DIR should be set to the VXL build directory. After some research, I could not find FindVXL.cmake on either Windows or Linux. Could someone explain why VXL package is found under Windows, but not under Linux. Thanks. Lianqing Yu 2009-11-15 |
From: Lianqing Y. <lq...@nl...> - 2009-11-17 16:41:54
|
Hi Gehua, Thank you for your help. I manually set VXL_DIR to VXL build directory and it works. But I still wonder why cmake-gui.exe can find VXL binary under Windows, but ccmake cannot in Linux. According to Wheeler's reply, I tried binary distribution of CMake for Linux but to no avail. Lianqing Yu ----- Original Message ----- From: "Gehua Yang" <yan...@gm...> To: "'Lianqing Yu'" <lq...@nl...>; <vxl...@li...> Sent: Tuesday, November 17, 2009 6:40 AM Subject: RE: [Vxl-users] CMakeLists.txt: Could not find VXL package in Linux Hi Lianqing, You may have known this piece of information, but I would like to point it out just in case: CMake does not (always) find VXL binary folder for you. In the cases when it does not, You have to specify the folder location in a cache setting "VXL_DIR:PATH" in CMakeCache.txt that is located in your project binary folder. "FIND_PACKAGE(VXL)" uses this cache setting to locate the VXL package should it be installed in a not-commonly-known location. More specifically in your case, CMake failed to find your VXL binary folder (or installation folder) in Linux. As the result, VXL_DIR was set to NOT-FOUND and an error message was issued. In order to change the value of VXL_DIR, you can either manually modify CMakeCache.txt file located in your project binary folder, or use a GUI program, such as ccmake (text-based) or cmake-gui (graphic-based). Just remember to re-run CMake once the change is made. Good luck. Regards, Gehua Yang From: Lianqing Yu [mailto:lq...@nl...] Sent: Sunday, November 15, 2009 7:46 AM To: vxl...@li... Subject: [Vxl-users] CMakeLists.txt: Could not find VXL package in Linux Hi all, I am writing some "CMakeLists.txt" files for my project that use VXL libraries. According to the Appendix B of VXL book (http://public.kitware.com/vxl/doc/release/books/core/book_14.html#SEC148), I insert following lines to my CMakeLists.txt file: FIND_PACKAGE(VXL) IF(VXL_FOUND) SET(VXL_PROVIDE_OLD_CACHE_NAMES 1) SET(VXL_PROVIDE_STANDARD_OPTIONS 1) INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake) ELSE(VXL_FOUND) MESSAGE("VXL_DIR should be set to the VXL build directory.") ENDIF(VXL_FOUND) My "CMakeLists.txt" files work fine under Windows Vista (Visual C++ 2008, CMake 2.6.0) in that VXL_DIR is automatically set to the right location. But they do not work under Linux CentOS 5.3 (GCC 4.1.2, CMake 2.6.4), with the error message below: CMake Warning at CMakeLists.txt:8 (FIND_PACKAGE): Could not find module FindVXL.cmake or a configuration file for package VXL. Adjust CMAKE_MODULE_PATH to find FindVXL.cmake or set VXL_DIR to the directory containing a CMake configuration file for VXL. The file will have one of the following names: VXLConfig.cmake vxl-config.cmake VXL_DIR should be set to the VXL build directory. After some research, I could not find FindVXL.cmake on either Windows or Linux. Could someone explain why VXL package is found under Windows, but not under Linux. Thanks. Lianqing Yu 2009-11-15 |
From: Ian S. <ian...@st...> - 2009-11-17 17:23:51
|
Lianqing Yu wrote: > Hi Gehua, > > Thank you for your help. I manually set VXL_DIR to VXL build directory and > it works. > But I still wonder why cmake-gui.exe can find VXL binary under Windows, but > ccmake cannot in Linux. If you really want to answer this question, you will (at the very least) need to work out where you installed VXL on Windows and Linux, and compare that with where CMake searches for these things. You could probably check the CMake source code to find out where FIND_PACKAGE looks for VXL in the absence of a FindVXL.cmake file. For your description, it appears to have guessed correctly under Windows, but not Linux. You certainly shouldn't expect CMake to search your entire file system looking for the VXL binary tree. Managing to find VXL at all was the unexpected behaviour, not the failure under Linux. Either way, I don't see it as being very interesting or important - it is trivial to set the VXL_DIR CMake variable. > According to Wheeler's reply, I tried binary distribution of CMake for Linux > but to no avail. I'm not sure how this follows from Fred's email. Ian. > ----- Original Message ----- > From: "Gehua Yang" <yan...@gm...> > To: "'Lianqing Yu'" <lq...@nl...>; <vxl...@li...> > Sent: Tuesday, November 17, 2009 6:40 AM > Subject: RE: [Vxl-users] CMakeLists.txt: Could not find VXL package in Linux > > > Hi Lianqing, > > You may have known this piece of information, but I would like to point it > out just in case: > > CMake does not (always) find VXL binary folder for you. In the cases when it > does not, You have to specify the folder location in a cache setting > "VXL_DIR:PATH" in CMakeCache.txt that is located in your project binary > folder. "FIND_PACKAGE(VXL)" uses this cache setting to locate the VXL > package should it be installed in a not-commonly-known location. > > More specifically in your case, CMake failed to find your VXL binary folder > (or installation folder) in Linux. As the result, VXL_DIR was set to > NOT-FOUND and an error message was issued. > > In order to change the value of VXL_DIR, you can either manually modify > CMakeCache.txt file located in your project binary folder, or use a GUI > program, such as ccmake (text-based) or cmake-gui (graphic-based). Just > remember to re-run CMake once the change is made. > > Good luck. > > Regards, > Gehua Yang > > > > From: Lianqing Yu [mailto:lq...@nl...] > Sent: Sunday, November 15, 2009 7:46 AM > To: vxl...@li... > Subject: [Vxl-users] CMakeLists.txt: Could not find VXL package in Linux > > Hi all, > > I am writing some "CMakeLists.txt" files for my project that use VXL > libraries. According to > the Appendix B of VXL book > (http://public.kitware.com/vxl/doc/release/books/core/book_14.html#SEC148), > I insert following lines to my CMakeLists.txt file: > > FIND_PACKAGE(VXL) > IF(VXL_FOUND) > SET(VXL_PROVIDE_OLD_CACHE_NAMES 1) > SET(VXL_PROVIDE_STANDARD_OPTIONS 1) > INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake) > ELSE(VXL_FOUND) > MESSAGE("VXL_DIR should be set to the VXL build directory.") > ENDIF(VXL_FOUND) > > My "CMakeLists.txt" files work fine under Windows Vista (Visual C++ 2008, > CMake 2.6.0) > in that VXL_DIR is automatically set to the right location. But they do not > work under Linux > CentOS 5.3 (GCC 4.1.2, CMake 2.6.4), with the error message below: > > CMake Warning at CMakeLists.txt:8 (FIND_PACKAGE): > Could not find module FindVXL.cmake or a configuration file for package > VXL. > > Adjust CMAKE_MODULE_PATH to find FindVXL.cmake or set VXL_DIR to the > directory containing a CMake configuration file for VXL. The file will > have one of the following names: > > VXLConfig.cmake > vxl-config.cmake > > VXL_DIR should be set to the VXL build directory. > > > After some research, I could not find FindVXL.cmake on either Windows or > Linux. > Could someone explain why VXL package is found under Windows, but not under > Linux. Thanks. > > Lianqing Yu > 2009-11-15 > > > > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users |
From: Lianqing Y. <lq...@nl...> - 2009-11-18 12:41:05
|
Thanks Ian and Gehua, My issue is solved with your help. Lianqing Yu ----- Original Message ----- From: "Ian Scott" <ian...@st...> To: "Lianqing Yu" <lq...@nl...> Cc: "Vxl-Users" <vxl...@li...> Sent: Wednesday, November 18, 2009 12:59 AM Subject: Re: [Vxl-users] CMakeLists.txt: Could not find VXL package in Linux > Lianqing Yu wrote: >> Hi Gehua, >> >> Thank you for your help. I manually set VXL_DIR to VXL build directory >> and it works. >> But I still wonder why cmake-gui.exe can find VXL binary under Windows, >> but ccmake cannot in Linux. > > If you really want to answer this question, you will (at the very least) > need to work out where you installed VXL on Windows and Linux, and compare > that with where CMake searches for these things. > > You could probably check the CMake source code to find out where > FIND_PACKAGE looks for VXL in the absence of a FindVXL.cmake file. For > your description, it appears to have guessed correctly under Windows, but > not Linux. You certainly shouldn't expect CMake to search your entire file > system looking for the VXL binary tree. > > Managing to find VXL at all was the unexpected behaviour, not the failure > under Linux. Either way, I don't see it as being very interesting or > important - it is trivial to set the VXL_DIR CMake variable. > > > >> According to Wheeler's reply, I tried binary distribution of CMake for >> Linux but to no avail. > I'm not sure how this follows from Fred's email. > > Ian. > >> ----- Original Message ----- >> From: "Gehua Yang" <yan...@gm...> >> To: "'Lianqing Yu'" <lq...@nl...>; >> <vxl...@li...> >> Sent: Tuesday, November 17, 2009 6:40 AM >> Subject: RE: [Vxl-users] CMakeLists.txt: Could not find VXL package in >> Linux >> >> >> Hi Lianqing, >> >> You may have known this piece of information, but I would like to point >> it >> out just in case: >> >> CMake does not (always) find VXL binary folder for you. In the cases when >> it >> does not, You have to specify the folder location in a cache setting >> "VXL_DIR:PATH" in CMakeCache.txt that is located in your project binary >> folder. "FIND_PACKAGE(VXL)" uses this cache setting to locate the VXL >> package should it be installed in a not-commonly-known location. >> >> More specifically in your case, CMake failed to find your VXL binary >> folder >> (or installation folder) in Linux. As the result, VXL_DIR was set to >> NOT-FOUND and an error message was issued. >> >> In order to change the value of VXL_DIR, you can either manually modify >> CMakeCache.txt file located in your project binary folder, or use a GUI >> program, such as ccmake (text-based) or cmake-gui (graphic-based). Just >> remember to re-run CMake once the change is made. >> >> Good luck. >> >> Regards, >> Gehua Yang >> >> >> >> From: Lianqing Yu [mailto:lq...@nl...] >> Sent: Sunday, November 15, 2009 7:46 AM >> To: vxl...@li... >> Subject: [Vxl-users] CMakeLists.txt: Could not find VXL package in Linux >> >> Hi all, >> >> I am writing some "CMakeLists.txt" files for my project that use VXL >> libraries. According to >> the Appendix B of VXL book >> (http://public.kitware.com/vxl/doc/release/books/core/book_14.html#SEC148), >> I insert following lines to my CMakeLists.txt file: >> >> FIND_PACKAGE(VXL) >> IF(VXL_FOUND) >> SET(VXL_PROVIDE_OLD_CACHE_NAMES 1) >> SET(VXL_PROVIDE_STANDARD_OPTIONS 1) >> INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake) >> ELSE(VXL_FOUND) >> MESSAGE("VXL_DIR should be set to the VXL build directory.") >> ENDIF(VXL_FOUND) >> >> My "CMakeLists.txt" files work fine under Windows Vista (Visual C++ 2008, >> CMake 2.6.0) >> in that VXL_DIR is automatically set to the right location. But they do >> not >> work under Linux >> CentOS 5.3 (GCC 4.1.2, CMake 2.6.4), with the error message below: >> >> CMake Warning at CMakeLists.txt:8 (FIND_PACKAGE): >> Could not find module FindVXL.cmake or a configuration file for package >> VXL. >> >> Adjust CMAKE_MODULE_PATH to find FindVXL.cmake or set VXL_DIR to the >> directory containing a CMake configuration file for VXL. The file will >> have one of the following names: >> >> VXLConfig.cmake >> vxl-config.cmake >> >> VXL_DIR should be set to the VXL build directory. >> >> >> After some research, I could not find FindVXL.cmake on either Windows or >> Linux. >> Could someone explain why VXL package is found under Windows, but not >> under >> Linux. Thanks. >> >> Lianqing Yu >> 2009-11-15 >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day trial. Simplify your report design, integration and deployment - >> and focus on what you do best, core application coding. Discover what's >> new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Vxl-users mailing list >> Vxl...@li... >> https://lists.sourceforge.net/lists/listinfo/vxl-users > > > |