[cmake-developers] fix-OSX-bundle-rpaths-and-Qt5 topic

Brad King brad.king at kitware.com
Mon Oct 20 16:42:39 EDT 2014


On 10/10/2014 10:59 AM, Brad King wrote:
> Everything tested cleanly!  Adam, Clinton, thanks for your help
> bringing this topic to maturity.  It was the last non-regression
> topic I'm planning to take for 3.1.  I squashed the fixes and
> revised commit messages slightly.  Then I merged to 'master':
> 
>  Merge topic 'fix-OSX-bundle-rpaths-and-Qt5'
>  http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=26bffa6e

We've been having problems getting the 3.1.0-rc1 release binaries
to work on machines other than those that built them.  Ever since
this topic was merged for testing on 2014-09-30, the nightly
binaries on OS X have not worked:

 $ /Volumes/cmake-3.0.20140929-g5748a-Darwin64-universal/CMake.app/Contents/bin/cmake-gui
 (works)

 $ /Volumes/cmake-3.0.20140930-g37776-Darwin64-universal/CMake.app/Contents/bin/cmake-gui
 Qt internal error: qt_menu.nib could not be loaded. The .nib file should be placed in QtGui.framework/Versions/Current/Resources/  or in the resources directory of your application bundle.

The .nib is present in the right place, but the binary does not see
them.  Comparing the working and broken versions:

$ diff -r /Volumes/cmake-3.0.20140929-g5748a-Darwin64-universal/CMake.app/Contents \
          /Volumes/cmake-3.0.20140930-g37776-Darwin64-universal/CMake.app/Contents |
  diffstat
 cmake-3.0.20140929-g5748a-Darwin64-universal/CMake.app/Contents/Frameworks/QtGui.framework/Resources             |only
 cmake-3.0.20140930-g37776-Darwin64-universal/CMake.app/Contents/Frameworks/QtCore.framework/Versions/4/Resources |only
 cmake-3.0.20140930-g37776-Darwin64-universal/CMake.app/Contents/Frameworks/QtCore.framework/Versions/Current     |only
 cmake-3.0.20140930-g37776-Darwin64-universal/CMake.app/Contents/Frameworks/QtGui.framework/Versions/4/Resources  |only
 cmake-3.0.20140930-g37776-Darwin64-universal/CMake.app/Contents/Frameworks/QtGui.framework/Versions/Current      |only
 ...
 cmake-3.0.20140930-g37776-Darwin64-universal/CMake.app/Contents/share/cmake-3.0/Modules/BundleUtilities.cmake    |  135 ++++++++--
 cmake-3.0.20140930-g37776-Darwin64-universal/CMake.app/Contents/share/cmake-3.0/Modules/GetPrerequisites.cmake   |   29 +-
 16 files changed, 137 insertions(+), 36 deletions(-)

we can see that something in the frameworks is different and that
one of the only other changes is the BundleUtilities module.

Adam, Clinton, please take a look at this.  If it cannot be resolved
in the next couple days I will have to revert this topic and drop it
from the 3.1 release.

Thanks,
-Brad




More information about the cmake-developers mailing list