# \#cmake

**URL:** https://discourse.itk.org/tag/cmake/18.md?match_all_tags=true&page=2&tags%5B%5D=cmake

[Latest](https://discourse.itk.org/latest.md) · [Categories](https://discourse.itk.org/categories.md) · [Tags](https://discourse.itk.org/tags.md)

**Page:** 3

---

## [Setup ITK](https://discourse.itk.org/t/setup-itk/3007)

<div class="topic-metadata">

**Author:** [@c.spanakis83](https://discourse.itk.org/u/c.spanakis83)\
**Replies:** 7\
**Last updated:** [April 28, 2020, 5:05pm UTC](https://discourse.itk.org/t/setup-itk/3007 "2020-04-28T17:05:50Z")

</div>

Hello, i want to setup ITK using cmake and Visual studio 2019 Community edition. I want to install ITK so that I can create code that can be compiled and create exe that contain all the needed libraries and be able to ex…

---

## [Hi I'm new to ITK & RTK, I have some questions.](https://discourse.itk.org/t/hi-im-new-to-itk-rtk-i-have-some-questions/2974)

<div class="topic-metadata">

**Author:** [@Yolkandwhite](https://discourse.itk.org/u/Yolkandwhite)\
**Replies:** 4\
**Last updated:** [April 21, 2020, 2:52am UTC](https://discourse.itk.org/t/hi-im-new-to-itk-rtk-i-have-some-questions/2974 "2020-04-21T02:52:07Z")

</div>

Hi I’m trying to use ITK and RTK with python. however I do not know anything about cmake. Is the cmake necessary to use ITK & RTK in python? and It is hard to find an python examples for RTK… most of them were written…

---

## [Compiling SimpleITK](https://discourse.itk.org/t/compiling-simpleitk/2930)

<div class="topic-metadata">

**Author:** [@nppatt](https://discourse.itk.org/u/nppatt)\
**Replies:** 3\
**Last updated:** [April 12, 2020, 10:06am UTC](https://discourse.itk.org/t/compiling-simpleitk/2930 "2020-04-12T10:06:14Z")

</div>

Hi, I have been trying to compile SimpleITK, the source code pulled from the Git repository. The build stops at about 58% with the following:- In file included from /opt/SimpleITK/Code/Common/src/sitkTransform.cxx:20: …

---

## [how to use cmake map\_imported\_config\_\<config\> with ITK](https://discourse.itk.org/t/how-to-use-cmake-map-imported-config-config-with-itk/2734)

<div class="topic-metadata">

**Author:** [@sghosh](https://discourse.itk.org/u/sghosh)\
**Replies:** 3\
**Last updated:** [February 24, 2020, 1:25pm UTC](https://discourse.itk.org/t/how-to-use-cmake-map-imported-config-config-with-itk/2734 "2020-02-24T13:25:53Z")

</div>

Hello, I am using ITK -3.20.1 version in my own project with visual studio. I would like to create a custom configuration derived from release in this manner: foreach(\_itklib ${ITK\_LIBRARIES}) set\_target\_properties($…

---

## [Remote Module Grading/Ranking System Needed](https://discourse.itk.org/t/remote-module-grading-ranking-system-needed/2750)

<div class="topic-metadata">

**Author:** [@hjmjohnson](https://discourse.itk.org/u/hjmjohnson)\
**Replies:** 5\
**Last updated:** [February 21, 2020, 8:09pm UTC](https://discourse.itk.org/t/remote-module-grading-ranking-system-needed/2750 "2020-02-21T20:09:50Z")

</div>

Background One of the primary goals of creating remote modules was to ease the burden of core developers in maintaining the core ITK code base. There are currently 44 remote modules distributed with ITK, but there is n…

---

## [static compiled example exits with segfault](https://discourse.itk.org/t/static-compiled-example-exits-with-segfault/2744)

<div class="topic-metadata">

**Author:** [@Vincent](https://discourse.itk.org/u/Vincent)\
**Replies:** 3\
**Last updated:** [February 20, 2020, 11:41am UTC](https://discourse.itk.org/t/static-compiled-example-exits-with-segfault/2744 "2020-02-20T11:41:06Z")

</div>

Dear members, as I am quite new to ITK, I hope someone can help me out with this static runtime crash. I am trying to statically compile an example from ITK to the statix ITK libraries. make build dir mkdir itk-stati…

---

## [Find all available modules from GroupIO](https://discourse.itk.org/t/find-all-available-modules-from-groupio/351)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 16\
**Last updated:** [November 20, 2019, 6:45am UTC](https://discourse.itk.org/t/find-all-available-modules-from-groupio/351 "2019-11-20T06:45:09Z")

</div>

Is it possible to use any installed/available modules from Group IO without specifying particular Modules: IOTIFF, etc? Something like: find\_package(ITK COMPONENTS ITKExternalModule ITKGroupIO ...) Right now I am using…

---

## [PyInstaller with ITK Python wrapping built from source](https://discourse.itk.org/t/pyinstaller-with-itk-python-wrapping-built-from-source/2411)

<div class="topic-metadata">

**Author:** [@Aisec](https://discourse.itk.org/u/Aisec)\
**Replies:** 1\
**Last updated:** [November 15, 2019, 12:29pm UTC](https://discourse.itk.org/t/pyinstaller-with-itk-python-wrapping-built-from-source/2411 "2019-11-15T12:29:24Z")

</div>

Hello, I need to create windows 7 binaries of Python application that uses ITK, both 64 and 32 bit versions. I successfully created 64 bit version with itk installed using pip and using this hook file, which i found som…

---

## [\[SOLVED\] Undefined reference to QuickView even with ITKVtkGlue added in target\_link\_libraries](https://discourse.itk.org/t/solved-undefined-reference-to-quickview-even-with-itkvtkglue-added-in-target-link-libraries/1100)

<div class="topic-metadata">

**Author:** [@federico](https://discourse.itk.org/u/federico)\
**Replies:** 8\
**Last updated:** [November 7, 2019, 3:58am UTC](https://discourse.itk.org/t/solved-undefined-reference-to-quickview-even-with-itkvtkglue-added-in-target-link-libraries/1100 "2019-11-07T03:58:31Z")

</div>

Hi, I am trying to open and display an image with QuickView, however the linker is unable to find QuickView::AddImage. CMakeFiles/viewer.dir/viewer.cc.o: In function \`main': viewer.cc:(.text+0x12d): undefined reference…

---

## [Precompiled headers (PCH) in ITK](https://discourse.itk.org/t/precompiled-headers-pch-in-itk/2318)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Replies:** 2\
**Last updated:** [October 16, 2019, 9:33pm UTC](https://discourse.itk.org/t/precompiled-headers-pch-in-itk/2318 "2019-10-16T21:33:14Z")

</div>

CMake 3.16.0 adds support for creating targets with precompiled headers. I wasn’t familiar with this term, but we have had discussions about instantiating templates to reduce the compile time of the library. It seems p…

---

## [CentOS: ITKConfig.cmake not found](https://discourse.itk.org/t/centos-itkconfig-cmake-not-found/2275)

<div class="topic-metadata">

**Author:** [@OtagoHarbour](https://discourse.itk.org/u/OtagoHarbour)\
**Replies:** 4\
**Last updated:** [October 2, 2019, 1:11pm UTC](https://discourse.itk.org/t/centos-itkconfig-cmake-not-found/2275 "2019-10-02T13:11:25Z")

</div>

I am using CentOS 7.6.1810 and have just installed itk and vtk using sudo yum localinstall InsightToolkit-4.9.1-1.sdl6.i686.rpm and sudo yum localinstall vtk-6.1.0-5.sdl7.x86\_64.rpm respectively. Both ran to complet…

---

## [cross compile problem (ITK\_bld\_internal\_H5make\_libsettings)](https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162)

<div class="topic-metadata">

**Author:** [@eninyo](https://discourse.itk.org/u/eninyo)\
**Replies:** 5\
**Last updated:** [August 19, 2019, 9:12pm UTC](https://discourse.itk.org/t/cross-compile-problem-itk-bld-internal-h5make-libsettings/2162 "2019-08-19T21:12:30Z")

</div>

hello, i’m using ITK version 4.13.2. i manage to compile it for Windows (using VS2017), but when i try to compile to cross compilation i get problems: First, I had a problem with this: CMAKE\_CURRENT\_BINARY\_DIR It sa…

---

## [How to include help files (HTMLDefines.h, MyApp.hhc, MyApp.hhk, MyApp.hhp) in the binary directory to get MyApp.chm help file in VS2013?](https://discourse.itk.org/t/how-to-include-help-files-htmldefines-h-myapp-hhc-myapp-hhk-myapp-hhp-in-the-binary-directory-to-get-myapp-chm-help-file-in-vs2013/2128)

<div class="topic-metadata">

**Author:** [@Armando](https://discourse.itk.org/u/Armando)\
**Replies:** 5\
**Last updated:** [August 7, 2019, 9:28pm UTC](https://discourse.itk.org/t/how-to-include-help-files-htmldefines-h-myapp-hhc-myapp-hhk-myapp-hhp-in-the-binary-directory-to-get-myapp-chm-help-file-in-vs2013/2128 "2019-08-07T21:28:24Z")

</div>

Hi. I have a project in VS2013 and I want to include ITK and VTK libraries using CMake. I configured my CMakeList.txt to include the files of source code of my application. But, I do not know how to make compile the hel…

---

## [SITK::Error - The file has unsupported 3 dimensions](https://discourse.itk.org/t/sitk-error-the-file-has-unsupported-3-dimensions/2045)

<div class="topic-metadata">

**Author:** [@SELVA\_MUTHU\_KUMARAN](https://discourse.itk.org/u/SELVA_MUTHU_KUMARAN)\
**Replies:** 12\
**Last updated:** [July 15, 2019, 5:10pm UTC](https://discourse.itk.org/t/sitk-error-the-file-has-unsupported-3-dimensions/2045 "2019-07-15T17:10:15Z")

</div>

Hello Everyone, Can you please help me with the below error? I have a DICOM file which is attached. When we try to convert this into a.mhd file, we get an error as “Teh file in the series has unsupported 3D dimensions”…

---

## [Using cmake to build SimpleITK](https://discourse.itk.org/t/using-cmake-to-build-simpleitk/373)

<div class="topic-metadata">

**Author:** [@Pythonsegmenter](https://discourse.itk.org/u/Pythonsegmenter)\
**Replies:** 21\
**Last updated:** [July 2, 2019, 12:21pm UTC](https://discourse.itk.org/t/using-cmake-to-build-simpleitk/373 "2019-07-02T12:21:29Z")

</div>

Hi guys, So i followed the tutorial I found here: http://simpleitk.readthedocs.io/en/master/Documentation/docs/source/building.html#recipes-formulas-short-cuts to build the latest unreleased SimpleITK version. I downlo…

---

## [How to write CMakeLists.txt on my own?](https://discourse.itk.org/t/how-to-write-cmakelists-txt-on-my-own/1691)

<div class="topic-metadata">

**Author:** [@EE18D504\_SINDHURA\_C](https://discourse.itk.org/u/EE18D504_SINDHURA_C)\
**Replies:** 2\
**Last updated:** [March 21, 2019, 1:01pm UTC](https://discourse.itk.org/t/how-to-write-cmakelists-txt-on-my-own/1691 "2019-03-21T13:01:51Z")

</div>

How to write CMakeLists.txt on my own? What are the rules and commands to be used? I am getting a few errors when I do it on my own.

---

## [Visual Studio RTTI configuration error](https://discourse.itk.org/t/visual-studio-rtti-configuration-error/1620)

<div class="topic-metadata">

**Author:** [@Pooja\_Virkar](https://discourse.itk.org/u/Pooja_Virkar)\
**Replies:** 9\
**Last updated:** [February 26, 2019, 5:48pm UTC](https://discourse.itk.org/t/visual-studio-rtti-configuration-error/1620 "2019-02-26T17:48:21Z")

</div>

---

## [Remote ITKModule build on top of another](https://discourse.itk.org/t/remote-itkmodule-build-on-top-of-another/1547)

<div class="topic-metadata">

**Author:** [@T4mmi](https://discourse.itk.org/u/T4mmi)\
**Replies:** 16\
**Last updated:** [February 6, 2019, 3:05pm UTC](https://discourse.itk.org/t/remote-itkmodule-build-on-top-of-another/1547 "2019-02-06T15:05:30Z")

</div>

Hi again, I did not found any tool for 3D object thickness measurement in ITK… So I used a composition of ITKBinaryThinning3D and EuclideanDistance to compute the distance from medial axis to the outside as the object …

---

## [New warnings from master CMake](https://discourse.itk.org/t/new-warnings-from-master-cmake/1575)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Replies:** 1\
**Last updated:** [February 5, 2019, 10:31pm UTC](https://discourse.itk.org/t/new-warnings-from-master-cmake/1575 "2019-02-05T22:31:25Z")

</div>

Using the master branch of CMake, and VS2019 Preview2 as the generator, these warnings appear: ... Filter ZLIB is ON CMake Warning (dev) at Modules/ThirdParty/HDF5/src/itkhdf5/CMakeLists.txt:733 (set): implicitly conve…

---

## [Build Error MITK 2016.11: ITK targets not defined](https://discourse.itk.org/t/build-error-mitk-2016-11-itk-targets-not-defined/626)

<div class="topic-metadata">

**Author:** [@norb](https://discourse.itk.org/u/norb)\
**Replies:** 3\
**Last updated:** [November 27, 2018, 7:08pm UTC](https://discourse.itk.org/t/build-error-mitk-2016-11-itk-targets-not-defined/626 "2018-11-27T19:08:43Z")

</div>

Hello, as Dzenan suggests in the mailing list, i write my question here to possibly get more attention or answers :slight\_smile: Original post on mailing list: Hello, I tried to build MITK (v2016.11) from source wit…

---

## [Python library CMake variable names](https://discourse.itk.org/t/python-library-cmake-variable-names/1424)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)\
**Replies:** 5\
**Last updated:** [November 22, 2018, 1:13am UTC](https://discourse.itk.org/t/python-library-cmake-variable-names/1424 "2018-11-22T01:13:58Z")

</div>

Folks, my CMake is showing the variables names PYTHON\_DEBUG\_LIBRARY and PYTHON\_LIBRARY\_DEBUG, which I find meaning pretty much the same thing or confusing at least. As far as I understand, the former is used by the VNL …

---

## [Build all Header files of ITK into python.](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228)

<div class="topic-metadata">

**Author:** [@Tirupathi\_Rao\_N](https://discourse.itk.org/u/Tirupathi_Rao_N)\
**Replies:** 6\
**Last updated:** [November 18, 2018, 12:37am UTC](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228 "2018-11-18T00:37:03Z")

</div>

Hello Everyone, I want to use ITK,VTK(ITKVTKGLUE) in my python code, but there is no such filter in ITK and VTK python. So I started building up all header files of ITK and VTK into python, while building it I’m having…

---

## [install issues](https://discourse.itk.org/t/install-issues/1416)

<div class="topic-metadata">

**Author:** [@hongliang-zu](https://discourse.itk.org/u/hongliang-zu)\
**Replies:** 3\
**Last updated:** [November 16, 2018, 6:39am UTC](https://discourse.itk.org/t/install-issues/1416 "2018-11-16T06:39:48Z")

</div>

I installed itk on a new computer ,and system is win10. question: CMake Error at CMakeLists. TXT :28 (project): Failed to run MSBuild command: C: / Program Files (x86)/MSBuild / 14.0 / bin/MSBuild. Exe To get the va…

---

## [error building an external module: cannot open input file 'ITKCommon.lib'](https://discourse.itk.org/t/error-building-an-external-module-cannot-open-input-file-itkcommon-lib/1346)

<div class="topic-metadata">

**Author:** [@ebennink](https://discourse.itk.org/u/ebennink)\
**Replies:** 12\
**Last updated:** [October 15, 2018, 1:39pm UTC](https://discourse.itk.org/t/error-building-an-external-module-cannot-open-input-file-itkcommon-lib/1346 "2018-10-15T13:39:21Z")

</div>

Dear all, I am trying to build an external ITK module, but linking the new module to the ITK libraries fails. It appears that CMake added the dependent ITK libraries as ITKCommon.lib and ITKSpatialObjects.lib to the lin…

---

## [Expected nightly exotic having too old CMake](https://discourse.itk.org/t/expected-nightly-exotic-having-too-old-cmake/1308)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)\
**Replies:** 4\
**Last updated:** [October 11, 2018, 9:29pm UTC](https://discourse.itk.org/t/expected-nightly-exotic-having-too-old-cmake/1308 "2018-10-11T21:29:41Z")

</div>

Folks, the dashmacmini5.kitware expected nightly exotic sites MacOSX10.7-clang build has an old CMake verison (3.2.1) that is preventing it from building. Anyone out there knowing claiming the machine/being able to upd…

---

## [Compilers that do not support bool are not supported](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237)

<div class="topic-metadata">

**Author:** [@Tom\_Hampshire](https://discourse.itk.org/u/Tom_Hampshire)\
**Replies:** 33\
**Last updated:** [September 20, 2018, 1:49pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237 "2018-09-20T13:49:41Z")

</div>

I am really struggling to compile ITK v4.12.x or v4.13.x on Windows. I have had no issues with Linux. I have tried using the releases v4.12.2 v4.12.3 v4.13.0 and v4.13.1, along with the latest version of the Visual S…

---

## [How to specify CMake cache variable CMAKE INSTALL PREFIX in CMakeLists.txt](https://discourse.itk.org/t/how-to-specify-cmake-cache-variable-cmake-install-prefix-in-cmakelists-txt/1135)

<div class="topic-metadata">

**Author:** [@Neerajan\_S](https://discourse.itk.org/u/Neerajan_S)\
**Replies:** 1\
**Last updated:** [July 20, 2018, 2:12pm UTC](https://discourse.itk.org/t/how-to-specify-cmake-cache-variable-cmake-install-prefix-in-cmakelists-txt/1135 "2018-07-20T14:12:38Z")

</div>

How to specify CMake cache variable CMAKE INSTALL PREFIX so that I dont have to specify the ITK build directory whenever I am building a new ITK source directory

---

## [Compile landmark based registration](https://discourse.itk.org/t/compile-landmark-based-registration/995)

<div class="topic-metadata">

**Author:** [@Lianli\_Liu](https://discourse.itk.org/u/Lianli_Liu)\
**Replies:** 1\
**Last updated:** [June 13, 2018, 11:21am UTC](https://discourse.itk.org/t/compile-landmark-based-registration/995 "2018-06-13T11:21:52Z")

</div>

I am trying to compile this WiKi example https://itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer, but got several errors such as error: variable or field ‘CreateFixedImage’ declared void void …

---

## [Build errors : ITK Module Python Wrapping](https://discourse.itk.org/t/build-errors-itk-module-python-wrapping/853)

<div class="topic-metadata">

**Author:** [@T4mmi](https://discourse.itk.org/u/T4mmi)\
**Replies:** 26\
**Last updated:** [June 8, 2018, 1:54pm UTC](https://discourse.itk.org/t/build-errors-itk-module-python-wrapping/853 "2018-06-08T13:54:26Z")

</div>

Hi everyone, Image processing scientist, I’m pretty used to ITK pipelines. However, I’m new to ITK development… Recently converted to Python (really nice for scripting/prototyping) I’m trying to wrap some Insight Journ…

---

## [ITKv4Compatibility](https://discourse.itk.org/t/itkv4compatibility/848)

<div class="topic-metadata">

**Author:** [@zhuangming.shen](https://discourse.itk.org/u/zhuangming.shen)\
**Replies:** 1\
**Last updated:** [April 19, 2018, 1:55pm UTC](https://discourse.itk.org/t/itkv4compatibility/848 "2018-04-19T13:55:23Z")

</div>

Hi all, When I configured ITK v5.0 using CMake 3.9.5, I enabled ITKV4\_COMPATIBILITY, but an error happened. Could anyone tell me what’s the problem? Thanks. \[image\] Regards, Zhuangming Shen

[Previous page](https://discourse.itk.org/tag/cmake/18.md?match_all_tags=true&page=1&tags%5B%5D=cmake)

[Next page](https://discourse.itk.org/tag/cmake/18.md?match_all_tags=true&page=3&tags%5B%5D=cmake)
