Difference between revisions of "MacOSX"
m (2 revisions) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | |||
− | |||
− | |||
== MITK on MacOS == | == MITK on MacOS == | ||
MacOS support for MITK is rather new. This page summarizes how to build a MacOS version and some known issues. If you have already used MITK it all boils down to: ''use the right Qt version''. | MacOS support for MITK is rather new. This page summarizes how to build a MacOS version and some known issues. If you have already used MITK it all boils down to: ''use the right Qt version''. | ||
+ | |||
== Building the required toolkits == | == Building the required toolkits == | ||
Line 12: | Line 10: | ||
− | <pre><nowiki> | + | <pre><nowiki> |
− | Use Qt | + | Use Qt 4.6.2 or newer. |
− | Use the | + | Use the Cocoa version. |
</nowiki></pre> | </nowiki></pre> | ||
Line 21: | Line 19: | ||
Make sure to use the Carbon version of Qt 4.6.2 or newer. The Carbon version and Qt version prior to 4.6.2 produced some unwanted effects e.g. in the display of render windows. | Make sure to use the Carbon version of Qt 4.6.2 or newer. The Carbon version and Qt version prior to 4.6.2 produced some unwanted effects e.g. in the display of render windows. | ||
− | You can select the right version | + | You can select the right version [http://qt.nokia.com/downloads/mac-os-cpp here]: |
− | http://qt.nokia.com/downloads/mac-os-cpp | + | |
Note that you might also want to install the debug-libs package (in addition to the normal library!). | Note that you might also want to install the debug-libs package (in addition to the normal library!). | ||
+ | |||
=== Building VTK === | === Building VTK === | ||
Line 30: | Line 29: | ||
(These notes apply to VTK 5.4.2) | (These notes apply to VTK 5.4.2) | ||
− | Some notes about MacOS, Cocoa and VTK from Kitware can be found | + | Some notes about MacOS, Cocoa and VTK from Kitware can be found [http://www.vtk.org/Wiki/Cocoa_VTK here]: |
[http://www.vtk.org/VTK/resources/software.html#latest Download VTK] and configure it using CMake. Use these options: | [http://www.vtk.org/VTK/resources/software.html#latest Download VTK] and configure it using CMake. Use these options: | ||
− | + | <syntaxhighlight lang="cmake"> | |
− | < | ||
BUILD_SHARED_LIBS = ON | BUILD_SHARED_LIBS = ON | ||
VTK_USE_PARALLEL = ON | VTK_USE_PARALLEL = ON | ||
VTK_USE_GUISUPPORT = ON (advanced option) | VTK_USE_GUISUPPORT = ON (advanced option) | ||
− | </ | + | </syntaxhighlight> |
− | |||
(configure) | (configure) | ||
− | + | <syntaxhighlight lang="cmake"> | |
− | < | ||
VTK_USE_QVTK = ON | VTK_USE_QVTK = ON | ||
− | </ | + | </syntaxhighlight> |
− | |||
(configure) | (configure) | ||
− | + | <syntaxhighlight lang="cmake"> | |
− | < | ||
DESIRED_QT_VERSION = 4 | DESIRED_QT_VERSION = 4 | ||
− | </ | + | </syntaxhighlight> |
− | |||
− | |||
− | < | + | <syntaxhighlight lang="cmake"> |
(configure) | (configure) | ||
(configure) | (configure) | ||
(generate) | (generate) | ||
− | </ | + | </syntaxhighlight> |
− | |||
Build... | Build... | ||
− | < | + | <syntaxhighlight lang="bash"> |
make | make | ||
− | </ | + | </syntaxhighlight> |
− | |||
Then optionally install (recommended). | Then optionally install (recommended). | ||
− | < | + | <syntaxhighlight lang="bash"> |
make install | make install | ||
− | </ | + | </syntaxhighlight> |
Line 84: | Line 74: | ||
ITK builds without problems. Download it [http://itk.org/ITK/resources/software.html www.itk.org], configure using CMake, then build and install. The only important CMake option is: | ITK builds without problems. Download it [http://itk.org/ITK/resources/software.html www.itk.org], configure using CMake, then build and install. The only important CMake option is: | ||
− | + | <syntaxhighlight lang="cmake"> | |
− | < | ||
BUILD_SHARED_LIBS = ON | BUILD_SHARED_LIBS = ON | ||
− | </ | + | </syntaxhighlight> |
− | |||
Build and install as usual... | Build and install as usual... | ||
− | < | + | <syntaxhighlight lang="bash"> |
make | make | ||
make install | make install | ||
− | </ | + | </syntaxhighlight> |
Line 101: | Line 89: | ||
Nothing different from Linux or Windows, read the | Nothing different from Linux or Windows, read the | ||
− | [http://docs.mitk.org/nightly | + | [http://docs.mitk.org/nightly/BuildInstructionsPage.html Build Instructions] |
There is a minor issue in starting/running MITK: you have to manually set the search path of the dynamic linker to the directory containing the VTK libraries. A bash script similar to this one should start MITK successfully: | There is a minor issue in starting/running MITK: you have to manually set the search path of the dynamic linker to the directory containing the VTK libraries. A bash script similar to this one should start MITK successfully: | ||
− | + | <syntaxhighlight lang="bash"> | |
− | < | ||
export DYLD_LIBRARY_PATH=/home/user/mitk/toolkits/vtk-5.4.2-Release/lib/vtk-5.4/:$DYLD_LIBRARY_PATH | export DYLD_LIBRARY_PATH=/home/user/mitk/toolkits/vtk-5.4.2-Release/lib/vtk-5.4/:$DYLD_LIBRARY_PATH | ||
− | /home/user/mitk/bin/ | + | /home/user/mitk/bin/MitkWorkbench |
− | </ | + | </syntaxhighlight> |
+ | You should end up with something like this: | ||
− | |||
[[File:MacOSX$mac.png]] | [[File:MacOSX$mac.png]] | ||
+ | |||
== Known issues == | == Known issues == | ||
All known explicit MacOS issues: [http://bugs.mitk.org/buglist.cgi?op_sys=Mac%20OS%20X&query_format=advanced&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=MITK&product=MITK%203M3 Bugzilla list] | All known explicit MacOS issues: [http://bugs.mitk.org/buglist.cgi?op_sys=Mac%20OS%20X&query_format=advanced&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=MITK&product=MITK%203M3 Bugzilla list] |
Latest revision as of 15:49, 1 June 2016
MITK on MacOS
MacOS support for MITK is rather new. This page summarizes how to build a MacOS version and some known issues. If you have already used MITK it all boils down to: use the right Qt version.
Building the required toolkits
Use Qt with Cocoa support
Use Qt 4.6.2 or newer. Use the Cocoa version.
Make sure to use the Carbon version of Qt 4.6.2 or newer. The Carbon version and Qt version prior to 4.6.2 produced some unwanted effects e.g. in the display of render windows.
You can select the right version here:
Note that you might also want to install the debug-libs package (in addition to the normal library!).
Building VTK
(These notes apply to VTK 5.4.2)
Some notes about MacOS, Cocoa and VTK from Kitware can be found here:
Download VTK and configure it using CMake. Use these options:
<syntaxhighlight lang="cmake"> BUILD_SHARED_LIBS = ON VTK_USE_PARALLEL = ON VTK_USE_GUISUPPORT = ON (advanced option) </syntaxhighlight>
(configure)
<syntaxhighlight lang="cmake"> VTK_USE_QVTK = ON </syntaxhighlight>
(configure)
<syntaxhighlight lang="cmake"> DESIRED_QT_VERSION = 4 </syntaxhighlight>
<syntaxhighlight lang="cmake"> (configure) (configure) (generate) </syntaxhighlight>
Build...
<syntaxhighlight lang="bash"> make </syntaxhighlight>
Then optionally install (recommended).
<syntaxhighlight lang="bash"> make install </syntaxhighlight>
Building ITK
ITK builds without problems. Download it www.itk.org, configure using CMake, then build and install. The only important CMake option is:
<syntaxhighlight lang="cmake"> BUILD_SHARED_LIBS = ON </syntaxhighlight>
Build and install as usual...
<syntaxhighlight lang="bash"> make make install </syntaxhighlight>
Building and running MITK
Nothing different from Linux or Windows, read the Build Instructions
There is a minor issue in starting/running MITK: you have to manually set the search path of the dynamic linker to the directory containing the VTK libraries. A bash script similar to this one should start MITK successfully:
<syntaxhighlight lang="bash"> export DYLD_LIBRARY_PATH=/home/user/mitk/toolkits/vtk-5.4.2-Release/lib/vtk-5.4/:$DYLD_LIBRARY_PATH /home/user/mitk/bin/MitkWorkbench </syntaxhighlight>
You should end up with something like this:
Known issues
All known explicit MacOS issues: Bugzilla list