Hello Andreas,

thank you for pointing out the package command. I found that calling "make
package" will still trigger similar errors, but with more detailed error
messages. In fact, it reported a few "permission denied" errors on certain
files and I would thus recommend calling:
sudo make package

I still could not run the application successfully, but the (dmg) package
is created and appears to include all plugins/libraries now.
I believe the remaining issue is that my Qt version is linked to "libc++".

It would be great to see full support for OS X 10.9 - I have tried to
compile it using libc++ and seen only minor issues:

(1) std::tr1 is not found (usually used in itk files)
This can be resolved by removing all ::tr1 references for Mac OS - example
files that are affected:
MITK-git/Core/CppMicroServices/usConfig.h.in
MITK-git/Core/CppMicroServices/src/util/usListenerFunctors_p.h
ITK-src/Modules/Core/Common/include/itkImageAlgorithm.h

(2) error: use of undeclared identifier 'mkdtemp' - I found this problem in
MITK-git/Utilities/qtsingleapplication/qthandlenewappinstance.cpp
It can be resolved by including #include <unistd.h>

The good news - with these few adjustments, all ITK and VTK libs actually
linked fine with libc++. In my case, all Frameworks and dynamic libraries
inside the mitkWorkbench are actually linked to libc++ now. The last thing
I struggled with to get it running was the fact that
"liborg_mitk_gui_qt_ext.dylib"
could not be found by "mitkWorkbench". I copied that library from the
internal plugin folder (http://mitkWorkbench.app/Contents/MacOS/plugins)
into the working directory (http://mitkWorkbench.app/Contents/MacOS). Now,
I can actually run the application.

Thanks again for your help - I hope this can guide others, who wish to
build mitk on Mac OS X 10.9 Mavericks.

Best regards,
Chris

On Wed, Jan 29, 2014 at 10:32 AM, Fetzer, Andreas <
[email protected]> wrote:

> Hi Chris,
>
>
>
> welcome to MITK! Please note that Mac OS X 10.9 is not fully supported
> yet. Regarding your questions:
>
>
>
> (1)    Yes this is correct. The distributed binary release just contains
> a small (but well tested) number of plugins
>
> (2)    If you need more modules I am afraid but you will have to go with
> option (A). At the moment we do not support to add/install libraries to a
> existing MITK application
>
> (3)    Great! We recently added the support for building MITK on 10.9
> with a different SDK version. Actually at the moment it is not possible to
> build MITK with the SDK of 10.9 which is also due to our current ITK and
> VTK version. However we are planning to upgrade these toolkits until our
> next release which should solve this issue.
> Anyway the bundle is created during the build and can be found in
> MITK-build/bin/mitkWorkbench.app. If you want to create an installer which
> you can distribute you should build the PACKAGE target. You can do this by
> typing "make package" in the MITK-build directory. This will create a _
> *Cpack*_Packages folder in MITK-build where the installer disk image is
> contained.
>
> (4)    You can start the application from the command line or from the
> MITK-build/bin folder simply with double click. For starting it from the
> command line you can use the following command:
> "open MITK-build/bin/mitkWirkbench.app" or you simply execute the
> executable with
> "MITK-build/bin/mitkWorkbench.app/Contents/MacOS/mitkWorkbench"
> I think this works similar on Linux.
>
>
>
> Hopefully I was able to answer all your questions. If not please don't
> hesitate to ask again!
>
>
>
> Best regards
>
> Andreas
>
>
>
> *From:* Chris [mailto:[email protected]]
> *Sent:* Dienstag, 28. Januar 2014 20:36
> *To:* [email protected]
> *Subject:* [mitk-users] Please confirm how to install additional Modules,
> Plugins and the MITK Mac OS Bundle
>
>
>
> Dear all,
>
>
>
> As I have only recently discovered the potential of MITK, please be
> patient.
>
> First, I did read the FAQ and tried to find answers there, but please help
> me understand, what remains unclear.
>
>
>
> (1) Many modules / plugins (e.g. registration) are not included in the
> distributed binary, correct?
>
>
>
> (2) If I want to use additional modules / plugins, do I always need to (A)
> build MITK from scratch or (B) can only build the module / plugin and
> manually add it to MITK (in form of a shared dll/dylib)?
>
>
>
> (3) I have successfully compiled MITK on Mac OS X (10.9), by setting
> OSX_DEPLOYMENT_TARGET and OSX_SYSROOT to 10.8 respectively. To create the
> OS App Bundle (mitkWorkbench.app), I then switched to the "MITK-build"
> directory and called "make install". Unfortunately, it fails to validate
> the bundle and it immediately crashes on startup (error below). [It appears
> it has some issue with my Qt libraries that I installed using homebrew, but
> I have no idea how to fix this.]
>
>
>
> (4) Is there another way under to start the application (e.g. from the
> command line) without creating this bundle? How does it work under Linux ?
>
>
>
> Thank you!!
>
> Chris
>
>
>
>
>
> -- fixup_bundle: cleaning up...
>
> -- fixup_bundle: verifying...
>
> --
> ===========================================================================
>
> -- Analyzing
> app='/Users/chris/dev/extern/build/MITK-git/MITK-build/install/mitkWorkbench.app'
>
> --
> bundle='/Users/chris/dev/extern/build/MITK-git/MITK-build/install/mitkWorkbench.app'
>
> --
> executable='/Users/chris/dev/extern/build/MITK-git/MITK-build/install/mitkWorkbench.app/Contents/MacOS/mitkWorkbench'
>
> -- valid='1'
>
> -- executable file 1:
> /Users/chris/dev/extern/build/MITK-git/MITK-build/install/mitkWorkbench.app/Contents/MacOS/mitkWorkbench
>
> -- verified='0'
>
> -- info='external prerequisites found:
>
>
> f='/Users/chris/dev/extern/build/MITK-git/MITK-build/install/mitkWorkbench.app/Contents/MacOS/mitkWorkbench'
>
>
> external_prereqs='/usr/local/Cellar/qt/4.8.5/lib/QtCore.framework/Versions/4/QtCore;/usr/local/Cellar/qt/4.8.5/lib/QtGui.framework/Versions/4/QtGui;/usr/local/Cellar/qt/4.8.5/lib/QtNetwork.framework/Versions/4/QtNetwork'
>
> '
>
> --
>
> CMake Error at
> /Users/chris/dev/extern/src/MITK-git/CMake/BundleUtilities.cmake:773
> (message):
>
>   error: verify_app failed
>
> Call Stack (most recent call first):
>
>   /Users/chris/dev/extern/src/MITK-git/CMake/BundleUtilities.cmake:655
> (verify_app)
>
>   Applications/mitkWorkbench/cmake_install.cmake:201 (fixup_bundle)
>
>   Applications/cmake_install.cmake:33 (INCLUDE)
>
>   cmake_install.cmake:99 (INCLUDE)
>
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to