簡體   English   中英

配置itkvtkglue時CMake錯誤

[英]CMake error when configuring itkvtkglue

我的問題類似於埃姆雷的問題 我正在嘗試從wiki構建itkImageToVTKImageFilter示例 我希望將其用於我打算應用於圖像的高斯低通濾波器。 下載itkvtkglue,將其解壓縮到一個文件夾后,然后在Cmake中按configure,我收到以下錯誤消息:

Check for working C compiler using: Visual Studio 9 2008
Check for working C compiler using: Visual Studio 9 2008 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 9 2008
Check for working CXX compiler using: Visual Studio 9 2008 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
CMake Error at F:/ITK/ItkVtkGlue/bin/UseItkVtkGlue.cmake:10 (include):
include could not find load file:

G:/VTK/UseVTK.cmake
Call Stack (most recent call first):
  CMakeLists.txt:13 (include)


Configuring incomplete, errors occurred!

我不確定是什么原因導致該錯誤,但我懷疑這與Windows系統路徑有關。 但是,它似乎也指向正確的文件夾(PATH轉到F:驅動器)。 該錯誤表明Cmake正在出於某些未知原因在G:驅動器中查找。

這是itkImageToVTKImageFilter的CMakeLists.txt:

cmake_minimum_required(VERSION 2.8)

project(DiscreteGaussianImageFilter)

find_package(ITK REQUIRED)
include(${ITK_USE_FILE})
if (ITKVtkGlue_LOADED)
  find_package(VTK REQUIRED)
  include(${VTK_USE_FILE})
else()
  find_package(ItkVtkGlue REQUIRED)
  include(${ItkVtkGlue_USE_FILE})
  set(Glue ItkVtkGlue)
endif()

add_executable(DiscreteGaussianImageFilter MACOSX_BUNDLE DiscreteGaussianImageFilter.cxx)
target_link_libraries(DiscreteGaussianImageFilter
  ${Glue}  ${VTK_LIBRARIES} ${ITK_LIBRARIES})

我讀到這是一個非常普遍的問題,但是我不確定如何糾正它。 任何幫助將不勝感激! 我對Stackoverflow還是很陌生,所以請告訴我是否需要提供更多信息。

現在可以使用。 我需要用ITK_BUILD_ALL_MODULES重建ITK並檢查以前沒有做過的Module_ITKVtkGlue。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM