Hi,
On 10/27/2011 12:31 PM, Clarkson, Matt wrote:
Hi Sascha,
Im making progress.
I added:
<stuff>/MITK/CMake/PackageDepends/MITK_Boost_Config.cmake
and magically boost seemed to be installed in the right places, and
the fixup_bundle stuff verifies the app.
I am not quite sure what you mean with "added". The file exists in this
location for some time now (recently I made some modifications to
support binary boost libraries). This file is automatically read by the
MITK module macros if you declare a dependeny to "Boost" in your
MITK_CREATE_MODULE() macro call.
However, while I understand that for normal MITK cases on a Mac you
would run "make package", and then CPack would create a DragNDrop
installer, I have been running make install, then I have my own
script, which bundles up the whole installation folder. The reason is
because of problems with /usr/bin/hdiutil as the package is too big
for the default arguments. So my script calculates the size of the
required disk image, and adds branding images and a few other things.
I just tried running "make package", and I got:
Is that something for which we could add a bug report for the
BundleUtilities.cmake script?
CPack Error: Error executing: /usr/bin/hdiutil create -ov -srcfolder
"/Users/mattclarkson/build/UCLToolkit-SuperBuildRelease/UCLToolkit-build/_CPack_Packages/Darwin-i386/DragNDrop/ALL_IN_ONE"
-volname "ucltk-2.5.0" -format UDRW
"/Users/mattclarkson/build/UCLToolkit-SuperBuildRelease/UCLToolkit-build/_CPack_Packages/Darwin-i386/DragNDrop/temp.dmg"
CPack Error: Error generating temporary disk image.
CPack Error: Problem compressing the directory
which I expected.
So, my script seems OK, except for the fact that when installed on a
completely separate Mac, the help files are not registered, which I
assume is due to the lack of QtAssistant on the target machine.
That is very likely the reason.
QtAssistant is also not created within the CPack directory structure
(that gets created before it's all zipped up), so I assume it would be
missing even if "make package" was working.
So, next Question: Where and How does QtAssistant get installed on a Mac?
Usually, you have a line like
https://github.com/MITK/MITK-ProjectTemplate/blob/master/CMakeLists.txt#L361
in your projects CMakeLists.txt. Then
https://github.com/MITK/MITK/blob/master/CMake/mitkInstallRules.cmake#L17
takes care of installing QtAssistant. The QT_ASSISTANT_EXECUTABLE CMake
variable is set in
https://github.com/MITK/MITK/blob/master/BlueBerry/CMakeLists.txt#L64
so my guess is that you either have no QtAssistant executable, or it is
named differently on MacOS.
Best,
Sascha
Thanks
Matt
On 27 Oct 2011, at 07:57, Sascha Zelzer wrote:
Hi Matt,
I updated http://www.mitk.org/wiki/Deployment with Mac specific
information. Does that help you?
- Sascha
On 10/26/2011 08:19 PM, Clarkson, Matt wrote:
Hi there,
hopefully, this one is not too difficult, I am working on a Mac and
have:
1. a library libcommon.dylib that compiles and links successfully to
boost libraries, independently of my MITK project.
2. In my MITK project, for 3 plugins I have told the plugin that it
must link to my library using this:
TARGET_LINK_LIBRARIES(${PROJECT_NAME}
common
)
3. This compiles and links successfully, and i can run the app from
the build area.
4. However, when running make install or make package, the
fixup_bundle tries to resolve the boost library, and even though the
list of folders supplied to fixup_bundle contains the Boost
installation folder, the boost library itself never gets copied to
the bundle, so the app fails to verify.
How can I trigger a library to be copied into the bundle
<APP>/Contents/MacOS folder?
Thanks
Matt
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users