当前位置: 代码迷 >> 综合 >> CMake Error at CMakeLists.txt:239 (message): Modules can only be built against an ITK build tree
  详细解决方案

CMake Error at CMakeLists.txt:239 (message): Modules can only be built against an ITK build tree

热度:57   发布时间:2024-02-27 09:07:44.0

在安装完ITK紧接着安装RTK的时候,如果你这时候遇到了这样的错误

-- Looking for isnan
-- Looking for isnan - found
CMake Error at CMakeLists.txt:239 (message):Modules can only be built against an ITK build tree; they cannot be builtagainst an ITK install tree.-- Configuring incomplete, errors occurred!
See also "/data/home/magician/gate/RTK-Sandbox/RTK-build/CMakeFiles/CMakeOutput.log".

不要慌,根据ITK的githubissue,RTK移到了Modules / External并激活了Module_RTK
在这里插入图片描述

  相关解决方案