Difference between revisions of "ITK/Compilers"

From KitwarePublic
< ITK
Jump to navigationJump to search
Line 7: Line 7:
=== Build systems ===
=== Build systems ===


- Always use CMake with ITK.  CMake has generators for most major build systems.  Attempting to, for example, use Visual Studio directly without CMake will make things much more difficult than they need to be.
* Always use CMake with ITK.  CMake has generators for most major build systems.  Attempting to, for example, use Visual Studio directly without CMake will make things much more difficult than they need to be.


- ITK does not distribute binaries on purpose.  An open source software development system has numerous advantages; one advantage is avoiding problems related building, distributing, and linking binaries.  Have your build system build ITK from source on the the same platform and with the same compiler to also avoid these problems.  Git submodules and the CMake ExternalProject system can help to do this.
* ITK does not distribute binaries on purpose.  An open source software development system has numerous advantages; one advantage is avoiding problems related building, distributing, and linking binaries.  Have your build system build ITK from source on the the same platform and with the same compiler to also avoid these problems.  Git submodules and the CMake ExternalProject system can help to do this.


- For a list of supported compilers, see the [[supported compilers Wiki page]].
* For a list of supported compilers, see the [[ITK_Release_4/Modern_C%2B%2B|supported compilers Wiki page]].  In general, though most accurate and informative supported compiler information is the set of compilers reporting to the [http://public.kitware.com/dashboard.php?name=itk nightly dashboard].  If you would help your favorite compiler to be better supported, consider [[ITK_Policy_and_Procedure_for_Adding_Dashboards|setting up a nightly dashboard submission]].


== Linux ==
== Linux ==

Revision as of 18:13, 11 February 2012

Compilers

This page contains information and tips on using compilers and build systems with ITK.

General Tips

Build systems

  • Always use CMake with ITK. CMake has generators for most major build systems. Attempting to, for example, use Visual Studio directly without CMake will make things much more difficult than they need to be.
  • ITK does not distribute binaries on purpose. An open source software development system has numerous advantages; one advantage is avoiding problems related building, distributing, and linking binaries. Have your build system build ITK from source on the the same platform and with the same compiler to also avoid these problems. Git submodules and the CMake ExternalProject system can help to do this.

Linux

Mac

Windows

Please avoid attempting to use ancient Visual Studio compilers, such as VS6, which has been put to rest.