Discussion:
[ITK-users] ITK Build Problem
arwtyxouymz
2017-09-23 02:22:54 UTC
Permalink
Hi,

I have a problem building ITK.
I try to configure, this error message occur.

```
CMake Warning (dev) at
/usr/local/Cellar/qt/5.9.1/lib/cmake/Qt5/Qt5ModuleLocation.cmake:4 (set):
Policy CMP0053 is not set: Simplify variable reference and escape
sequence
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use
the
cmake_policy command to set the policy and suppress this warning.

For input:

'${_qt5_install_prefix}/***@module@/***@module@Config.cmake'

the old evaluation rules produce:

'/usr/local/Cellar/qt/5.9.1/lib/cmake/Qt5/Qt5Config.cmake'

but the new evaluation rules produce:


'/usr/local/Cellar/qt/5.9.1/lib/cmake/***@module@/***@module@Config.cmake'

Using the old result for compatibility since the policy is not set.
Call Stack (most recent call first):
/usr/local/Cellar/qt/5.9.1/lib/cmake/Qt5/Qt5Config.cmake:25 (include)
/usr/local/lib/cmake/vtk-8.0/Modules/vtkGUISupportQtOpenGL.cmake:14
(find_package)
/usr/local/lib/cmake/vtk-8.0/vtkModuleAPI.cmake:45 (include)
/usr/local/lib/cmake/vtk-8.0/vtkModuleAPI.cmake:15 (vtk_module_load)
/usr/local/lib/cmake/vtk-8.0/vtkModuleAPI.cmake:132
(_vtk_module_config_recurse)
/usr/local/lib/cmake/vtk-8.0/VTKConfig.cmake:135 (vtk_module_config)
Modules/Bridge/VtkGlue/itk-module-init.cmake:9 (find_package)
CMake/ITKModuleEnablement.cmake:316 (include)
CMakeLists.txt:337 (include)
This warning is for project developers. Use -Wno-dev to suppress it.


CMake Warning (dev) at
/usr/local/Cellar/qt/5.9.1/lib/cmake/Qt5/Qt5ModuleLocation.cmake:4 (set):
Policy CMP0053 is not set: Simplify variable reference and escape
sequence
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use
the
cmake_policy command to set the policy and suppress this warning.

For input:

'${_qt5_install_prefix}/***@module@/***@module@Config.cmake'
```

My OS is Mac OS X 10.12.6 and QT version is 5.9.1
Why does this problem occur and how should i recover this problem?

Please help me!




--
Sent from: http://itk-users.7.n7.nabble.com/
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
Francois Budin
2017-09-25 13:36:31 UTC
Permalink
Hello,

Thank you for reporting this. It is just a warning message. ITK
configuration and compilation should run correctly despite this message.
You are seeing this message because you are building Module_ITKVtkGlue, and
VTK was built with Qt.It seems that it is actually Qt that is producing
this message.
If you do not need VTK support in ITK, you can disable Module_ITKVtkGlue .
Otherwise it should still work even with the warning message.

Hope this helps,
Francois
Post by arwtyxouymz
Hi,
I have a problem building ITK.
I try to configure, this error message occur.
```
CMake Warning (dev) at
Policy CMP0053 is not set: Simplify variable reference and escape
sequence
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use
the
cmake_policy command to set the policy and suppress this warning.
'/usr/local/Cellar/qt/5.9.1/lib/cmake/Qt5/Qt5Config.cmake'
Using the old result for compatibility since the policy is not set.
/usr/local/Cellar/qt/5.9.1/lib/cmake/Qt5/Qt5Config.cmake:25 (include)
/usr/local/lib/cmake/vtk-8.0/Modules/vtkGUISupportQtOpenGL.cmake:14
(find_package)
/usr/local/lib/cmake/vtk-8.0/vtkModuleAPI.cmake:45 (include)
/usr/local/lib/cmake/vtk-8.0/vtkModuleAPI.cmake:15 (vtk_module_load)
/usr/local/lib/cmake/vtk-8.0/vtkModuleAPI.cmake:132
(_vtk_module_config_recurse)
/usr/local/lib/cmake/vtk-8.0/VTKConfig.cmake:135 (vtk_module_config)
Modules/Bridge/VtkGlue/itk-module-init.cmake:9 (find_package)
CMake/ITKModuleEnablement.cmake:316 (include)
CMakeLists.txt:337 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at
Policy CMP0053 is not set: Simplify variable reference and escape
sequence
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use
the
cmake_policy command to set the policy and suppress this warning.
```
My OS is Mac OS X 10.12.6 and QT version is 5.9.1
Why does this problem occur and how should i recover this problem?
Please help me!
--
Sent from: http://itk-users.7.n7.nabble.com/
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
Loading...