[Insight-developers] CMake Errors: FindOpenCV.cmake and FindVXL.cmake
John Galeotti
jgaleotti at cmu.edu
Fri Nov 18 14:43:54 EST 2011
Hi Xiaoxiao,
After some more experimentation, I now see the source of my problem. Enabling ITKGroup_Video FORCES all of its submodules to be built (including the both of the video bridges), because CMake does not provide the option for unchecking the modules of a group. To get my desired behavior in a modular build of ITK, I need to uncheck ITKGroup_Video so that I can separately enable both ITKVideoCore and ITKVideoIO under the Module menu without enabling the video bridge stuff.
*** However, shouldn't we allow users to quickly pick a large group, and the selectively UNselect certain modules normally contained within that group?
I think many users may elect to build ITK w/ video modularly, and they will probably try first to enable ITKGroup_Video, only to find that it requires them to have both OpenCV and VXL installed. Unfortunately, most of them will NOT want to install VXL, but may be unsure about how to build the rest of ITKGroup_Video without it.
Thanks,
John Galeotti
On Nov 17, 2011, at 5:30 PM, Xiaoxiao Liu wrote:
> Sorry if I am a little confused.
> You are right that we should not require general ITK users to have opencv and vxl system installed.
>
> If users don't turn on those two modules (by default, ITK_BUILD_ALL_MODULES is ON), the ITK will build fine without those cmake errors.
> Users should only get those errors when they manually turn those two modules (ITKBridgeOpenCV and ITKBridgeVXL) ON by turn on the
> corresponding "Module_*** " cmake variables.
>
> Are you testing on origin master? or your local topic branch?
>
>
>
> On Thu, Nov 17, 2011 at 5:16 PM, John Galeotti <jgaleotti at cmu.edu> wrote:
> Yes, but what if you don't have OpenCV and VXL? In that case, there is no valid entry for these directories. Many ITK Video developers won't have one or both of these.
>
> -John
>
> On Nov 17, 2011, at 5:11 PM, Xiaoxiao Liu wrote:
>
>> Hi John,
>> I think you need to manually feed the paths for OpenCV and VXL in your cmake gui.
>> *OpenCV_DIR
>> *VXL_DIR
>>
>> Try that and let me know.
>>
>> On Thu, Nov 17, 2011 at 5:04 PM, John Galeotti <jgaleotti at cmu.edu> wrote:
>> Hello Xiaoxiao,
>>
>> Using CMake 2.8.6 on a system without OpenCV and VXL installed, I get CMake errors (see below) about missing FindOpenCV.cmake and FindVXL.cmake, even when building only the groups ITKGroup_Core, ITKGroup_IO, and ITKGroup_Video. These CMake "Find" files either need to become a standard part of CMake, or we should probably handle their absence gracefully. Most ITK Video developers probably will not have both of these installed.
>>
>> -John Galeotti
>>
>>
>> CMake Error at Modules/Video/BridgeOpenCV/itk-module-init.cmake:4 (find_package):
>> Could not find module FindOpenCV.cmake or a configuration file for package
>> OpenCV.
>> Adjust CMAKE_MODULE_PATH to find FindOpenCV.cmake or set OpenCV_DIR to the
>> directory containing a CMake configuration file for OpenCV. The file will
>> have one of the following names:
>> OpenCVConfig.cmake
>> opencv-config.cmake
>> Call Stack (most recent call first):
>> CMakeLists.txt:529 (include)
>> CMake Error at Modules/Video/BridgeVXL/itk-module-init.cmake:1 (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
>> Call Stack (most recent call first):
>> CMakeLists.txt:529 (include)
>> CMake Error at Modules/Video/BridgeVXL/src/CMakeLists.txt:6 (include):
>> include could not find load file:
>> /UseVXL.cmake
>> CMake Error at Modules/Video/BridgeVXL/test/CMakeLists.txt:8 (include):
>> include could not find load file:
>> /UseVXL.cmake
>> Configuring incomplete, errors occurred!
>>
>>
>>
>> --
>>
>>
>> ---------------------------------------------
>> Xiaoxiao Liu, Ph.D.
>> R & D Engineer
>> Kitware Inc.
>> Clifton Park, NY
>> Phone: (518) 881-4924 or (518) 371-3971 x124
>>
>>
>
>
>
>
> --
>
>
> ---------------------------------------------
> Xiaoxiao Liu, Ph.D.
> R & D Engineer
> Kitware Inc.
> Clifton Park, NY
> Phone: (518) 881-4924 or (518) 371-3971 x124
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20111118/501bf2f9/attachment.htm>
More information about the Insight-developers
mailing list