Editing
Software Development Platforms
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====from source==== First make sure we have packages that are likely to be required for building ITK: sudo apt-get build-dep libinsighttoolkit3-dev Download the current version from itk.org (InsightToolkit-3.18.0.tar.gz) and untar in your development directory. cd InsightToolkit-3.18.0 mkdir build cd build ccmake .. Now select the cmake options in the usual way, and generate. Here are the cmake options that I typically set: {| border="1" cellpadding="2" cellspacing="0" |- ! option ! Setting |- valign="top" | CMAKE_INSTALL_PREFIX || /opt/itk-3.18.0 |- valign="top" | CMAKE_CXX_FLAGS (Advanced setting) || -fPIC |- valign="top" | CMAKE_C_FLAGS (Advanced setting) || -fPIC |} Note that the -fPIC flags are not necessary if you build a shared library, but the default for BUILD_SHARED_LIBS was NO, and I just left it at that. ITK itself will build regardless of the -fPIC flags, but you may get linker errors trying to link statically to it without them. When happy with your cmake options, built it like this make sudo make install ITK does not install the VTK to ITK filters, and there seems to be no cmake option to request this, although the necessary files are in the source code tree. Fortunately, they are just 4 header and template files, so you can just copy them into place afterwards. Something like this: cp InsightToolkit-3.16.0/Wrapping/WrapITK/ExternalProjects/ItkVtkGlue/src/*.h /opt/itk-3.18.0/include/InsightToolkit cp InsightToolkit-3.16.0/Wrapping/WrapITK/ExternalProjects/ItkVtkGlue/src/*.txx /opt/itk-3.18.0/include/InsightToolkit
Summary:
Please note that all contributions to bone.wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BoneWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
associated-pages
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Documents
Recent changes
Help
Tools
What links here
Related changes
Page information