View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014365CMakeQtDialogpublic2013-08-17 02:332016-06-10 14:31
Reporternatrium1970 
Assigned ToKitware Robot 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionmoved 
PlatformMac OS XOSOS XOS Version10.8.4
Product VersionCMake 2.8.11.2 
Target VersionFixed in Version 
Summary0014365: CMake With Qt5 QtDialog Installs Broken App Bundle
DescriptionWhen CMake is built on Mac OS X with QtDialog enabled, an app bundle is created. When "make install" is run, the build system copies some Qt libraries (frameworks) into the bundle and then uses install_name_tool so that the resulting bundle does not depend on a systemwide installation of Qt. This fix-up process is not completely correct for Qt 5.x, however, because in addition to the Qt libraries, Qt also depends on a platform plugin libqcocoa.dylib. This plugin also needs to be copied into the app bundle and the Qt libraries need to be made aware that they should look inside the app bundle for libqcocoa.dylib instead of searching for the systemwide version.

The result of this installation issues is that CMake.app crashes on startup due to the following sequence of events:
1. The CMake executable loads.
2. Since the executable now depends on the Qt frameworks inside the application bundle, those frameworks are loaded.
3. The Qt frameworks inside the application bundle attempts to load the libqcocoa.dylib from the systemwide installation of Qt (since libqcocoa.dylib has not been properly copied and set up).
4. The libqcocoa.dylib plugin has a dependency on the systemwide copies of the Qt frameworks, so these frameworks are loaded.
5. There are now two copies of the Qt frameworks loaded.
6. Crash.
Steps To Reproduce1. Build CMake with QtWidgets enabled with Qt 5.x.
2. Run "make install".
3. Attempt to launch the newly installed CMake app.
Additional InformationTo see the sequence of libraries loaded export DYLD_PRINT_LIBRARIES=1.

I am included the output of launching the application with the dyld print enabled.
TagsNo tags attached.
Attached Filestxt file icon cmake-load.txt [^] (50,749 bytes) 2013-08-17 02:33 [Show Content]

 Relationships

  Notes
(0042352)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2013-08-17 02:33 natrium1970 New Issue
2013-08-17 02:33 natrium1970 File Added: cmake-load.txt
2016-06-10 14:29 Kitware Robot Note Added: 0042352
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team