ITK/Configuring and Building/QtCreator: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 19: Line 19:
INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
work.
work.
Right click my computer -> Properties -> Advanced System Settings -> Advanced -> Environment variables

Revision as of 15:27, 14 September 2012

Building ITK with QtCreator on Windows 7:

  • Launch the CMake GUI
  • Next to "Where is the source code:", click "Browse Source..." and navigate to where you cloned the repository with Git.
  • Next to "Where to build the binaries:", select "Browse Build..." and select a place to build the ITK library. I like to use c:\build\ITK. This directory should NOT be inside the directory where you cloned the repository.
  • Click "Configure", and then specify "CodeBlocks" as the generator for this project. (Note: this is not a typo: use the CodeBlocks generator for QtCreator)
  • Choose your build options. I like to UNCHECK BUILD_EXAMPLES and BUILD_TESTING as they speed up the build process significantly.
  • Click "Generate".
  • Open QtCreator
  • File -> Open Project
  • Navigate to the source directory you specified through CMake
  • From the Build menu, choose "Build All"

NMake Generator (Microsoft Visual C++ Compiler 10.0 (x86))


 To use the NMake generator, cmake must be run from a shell that can use the

compiler cl from the command line. This environment does not contain INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to work.

Right click my computer -> Properties -> Advanced System Settings -> Advanced -> Environment variables