These lines of output near the beginning:<div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; ">-- warning: *NOT* handled - .app directory case...<br>
-- error: fixup_bundle: not a valid bundle<br></span><br></div><div>...indicate that fixup_bundle is not getting a .app bundle as its input...<br><div class="gmail_quote"><br></div><div class="gmail_quote">The assumption made by fixup_bundle is that there is an executable in the .app/Contents/MacOS folder to begin analyzing. Then, based on what its prerequisites are, various libraries get copied into the bundle as well. This output looks like that initial executable is not there yet.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Looks like your "INSTALL(SCRIPT" snippet occurs before the install rule for the bundle executable. Make sure they both occur in the same CMakeLists.txt file and that the script snippet comes after the install rule for the executable. Then it should work like you expect...</div>
<div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">HTH,</div><div class="gmail_quote">David</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">
On Sat, Sep 5, 2009 at 4:15 PM, Petr Vanek <span dir="ltr"><<a href="mailto:petr@scribus.info">petr@scribus.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hi all,<br>
<br>
I have a Qt4 application with bundle build support taken from cmake wiki example.<br>
<br>
When I run "deploy" phase with make install, the correct structure is created in CMAKE_INSTALL_PREFIX.<br>
<br>
But it looks like cmake's fixup_bundle function from BundleUtilities does its job only partially.<br>
<br>
All Qt frameworks are fixed correctly to use @executable_path, but the main binary still contains links to my development environment.<br>
<br>
What could be the issue?<br>
<br>
thanks,<br>
Petr Vanek<br>
<br>
<br>
code:<br>
<a href="http://tora.svn.sourceforge.net/viewvc/tora/trunk/tora/" target="_blank">http://tora.svn.sourceforge.net/viewvc/tora/trunk/tora/</a><br>
<br>
1st make install run:<br>
<br>
rimmer:build-bundle pvanek$ make install<br>
[ 1%] Built target tora_loki_lib<br>
[100%] Built target tora<br>
Install the project...<br>
-- Install configuration: "RELEASE"<br>
Removing Previous TOra.app bundle at /Users/pvanek/oss/tora/bundle/<br>
Copying TOra.app from the build tree to /Users/pvanek/oss/tora/bundle/<br>
-- fixup_bundle<br>
-- app='/Users/pvanek/oss/tora/bundle/TOra.app'<br>
-- libs=''<br>
-- dirs='Plugins'<br>
-- warning: *NOT* handled - .app directory case...<br>
-- error: fixup_bundle: not a valid bundle<br>
-- fixup_bundle: done<br>
CMake Warning (dev) at cmake_install.cmake:31 (INCLUDE):<br>
Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH<br>
and POP. Run "cmake --help-policy CMP0011" for policy details. Use the<br>
cmake_policy command to set the policy and suppress this warning.<br>
<br>
The included script<br>
<br>
/Users/pvanek/oss/tora/trunk/tora/build-bundle/TOra_OSX_MakeStandAloneBundle.cmake<br>
<br>
affects policy settings. CMake is implying the NO_POLICY_SCOPE option for<br>
compatibility, so the effects are applied to the including context.<br>
This warning is for project developers. Use -Wno-dev to suppress it.<br>
<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app/Contents<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app/Contents/Info.plist<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app/Contents/MacOS<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app/Contents/MacOS/tora<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app/Contents/Resources<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app/Contents/Resources/tora.icns<br>
<br>
2nd make install<br>
rimmer:build-bundle pvanek$ make install<br>
[ 1%] Built target tora_loki_lib<br>
[100%] Built target tora<br>
Install the project...<br>
-- Install configuration: "RELEASE"<br>
Removing Previous TOra.app bundle at /Users/pvanek/oss/tora/bundle/<br>
Copying TOra.app from the build tree to /Users/pvanek/oss/tora/bundle/<br>
-- fixup_bundle<br>
-- app='/Users/pvanek/oss/tora/bundle/TOra.app'<br>
-- libs=''<br>
-- dirs='Plugins'<br>
-- fixup_bundle: preparing...<br>
-- fixup_bundle: copying...<br>
-- 1/28: *NOT* copying '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/MacOS/tora'<br>
-- 2/28: copying '/opt/local/lib/libcrypto.0.9.8.dylib'<br>
-- 3/28: copying '/opt/local/lib/libpng12.0.dylib'<br>
-- 4/28: copying '/opt/local/lib/libssl.0.9.8.dylib'<br>
-- 5/28: copying '/opt/local/lib/libz.1.dylib'<br>
-- 6/28: copying '/opt/local/lib/oracle/libclntsh.dylib.10.1'<br>
-- 7/28: copying '/opt/local/lib/oracle/libocci.dylib.10.1'<br>
-- 8/28: copying '/opt/local/lib/postgresql83/libpq.5.dylib'<br>
-- 9/28: copying '/opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/QtCore'<br>
-- 10/28: copying '/opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/QtGui'<br>
-- 11/28: copying '/opt/local/libexec/qt4-mac/lib/QtNetwork.framework/Versions/4/QtNetwork'<br>
-- 12/28: copying '/opt/local/libexec/qt4-mac/lib/QtSql.framework/Versions/4/QtSql'<br>
-- 13/28: copying '/opt/local/libexec/qt4-mac/lib/QtXml.framework/Versions/4/QtXml'<br>
-- 14/28: copying '/opt/local/libexec/qt4-mac/lib/libqscintilla2.5.dylib'<br>
-- fixup_bundle: fixing...<br>
-- 15/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/MacOS/tora'<br>
-- 16/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/Libraries/libcrypto.0.9.8.dylib'<br>
-- 17/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/Libraries/libpng12.0.dylib'<br>
-- 18/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/Libraries/libssl.0.9.8.dylib'<br>
-- 19/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/Libraries/libz.1.dylib'<br>
-- 20/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/MacOS/libclntsh.dylib.10.1'<br>
-- 21/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/MacOS/libocci.dylib.10.1'<br>
-- 22/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/Libraries/libpq.5.dylib'<br>
-- 23/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore'<br>
-- 24/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui'<br>
-- 25/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork'<br>
-- 26/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/Frameworks/QtSql.framework/Versions/4/QtSql'<br>
-- 27/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/Frameworks/QtXml.framework/Versions/4/QtXml'<br>
-- 28/28: fixing up '/Users/pvanek/oss/tora/bundle/TOra.app/Contents/Libraries/libqscintilla2.5.dylib'<br>
-- fixup_bundle: cleaning up...<br>
-- fixup_bundle: verifying...<br>
-- ===========================================================================<br>
-- Analyzing app='/Users/pvanek/oss/tora/bundle/TOra.app'<br>
-- bundle='/Users/pvanek/oss/tora/bundle/TOra.app'<br>
-- executable='/Users/pvanek/oss/tora/bundle/TOra.app/Contents/MacOS/tora'<br>
-- valid='1'<br>
-- executable file: /Users/pvanek/oss/tora/bundle/TOra.app/Contents/MacOS/tora<br>
-- verified='1'<br>
-- info='Verified 1 executable files in '/Users/pvanek/oss/tora/bundle/TOra.app''<br>
-- <br>
-- verified='1'<br>
-- info=''<br>
-- <br>
-- fixup_bundle: done<br>
CMake Warning (dev) at cmake_install.cmake:31 (INCLUDE):<br>
Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH<br>
and POP. Run "cmake --help-policy CMP0011" for policy details. Use the<br>
cmake_policy command to set the policy and suppress this warning.<br>
<br>
The included script<br>
<br>
/Users/pvanek/oss/tora/trunk/tora/build-bundle/TOra_OSX_MakeStandAloneBundle.cmake<br>
<br>
affects policy settings. CMake is implying the NO_POLICY_SCOPE option for<br>
compatibility, so the effects are applied to the including context.<br>
This warning is for project developers. Use -Wno-dev to suppress it.<br>
<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app/Contents<br>
-- Up-to-date: /Users/pvanek/oss/tora/bundle/tora.app/Contents/Info.plist<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app/Contents/MacOS<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app/Contents/MacOS/tora<br>
-- Installing: /Users/pvanek/oss/tora/bundle/tora.app/Contents/Resources<br>
-- Up-to-date: /Users/pvanek/oss/tora/bundle/tora.app/Contents/Resources/tora.icns<br>
<br>
<br>
<br>
rimmer:build-bundle pvanek$ otool -L ~/oss/tora/bundle/TOra.app/Contents/MacOS/tora<br>
/Users/pvanek/oss/tora/bundle/TOra.app/Contents/MacOS/tora:<br>
/opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.5.0, current version 4.5.1)<br>
/opt/local/lib/libpng12.0.dylib (compatibility version 39.0.0, current version 39.0.0)<br>
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)<br>
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 949.54.0)<br>
/opt/local/libexec/qt4-mac/lib/QtXml.framework/Versions/4/QtXml (compatibility version 4.5.0, current version 4.5.1)<br>
/opt/local/libexec/qt4-mac/lib/QtSql.framework/Versions/4/QtSql (compatibility version 4.5.0, current version 4.5.1)<br>
/opt/local/libexec/qt4-mac/lib/QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.5.0, current version 4.5.1)<br>
/usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7)<br>
/opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.5.0, current version 4.5.1)<br>
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)<br>
/opt/local/lib/oracle/libocci.dylib.10.1 (compatibility version 0.0.0, current version 0.0.0)<br>
/opt/local/lib/oracle/libclntsh.dylib.10.1 (compatibility version 0.0.0, current version 0.0.0)<br>
/opt/local/libexec/qt4-mac/lib/libqscintilla2.5.dylib (compatibility version 5.1.0, current version 5.1.0)<br>
/opt/local/lib/postgresql83/libpq.5.dylib (compatibility version 5.0.0, current version 5.1.0)<br>
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)<br>
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)<br>
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>