[Development] Puzzled by desktop development priorities, Mac OS specifically [Warning: Rant]

Thiago Macieira thiago.macieira at intel.com
Tue Aug 6 17:09:03 CEST 2013


On terça-feira, 6 de agosto de 2013 11:41:41, Rutledge Shawn wrote:
> $ find photosurface.app/
> photosurface.app/
> photosurface.app//Contents
> photosurface.app//Contents/Info.plist
> photosurface.app//Contents/MacOS
> photosurface.app//Contents/MacOS/photosurface
> photosurface.app//Contents/PkgInfo
> photosurface.app//Contents/Resources
> photosurface.app//Contents/Resources/empty.lproj
> photosurface.app//Contents/Resources/photosurface.icns
> 
> OK no libraries, so I guess that's what you need the deployment tool for, as
> Thiago said.  
> 
> $ otool -L photosurface.app/Contents/MacOS/photosurface
> photosurface.app/Contents/MacOS/photosurface:
>         /Users/rutledge/Qt//5.1.0/clang_64/lib/QtQuick.framework/Versions/5/
> QtQuick (compatibility version 5.1.0, current version 5.1.0)
> /Users/rutledge/Qt//5.1.0/clang_64/lib/QtQml.framework/Versions/5/QtQml
> (compatibility version 5.1.0, current version 5.1.0)
> /Users/rutledge/Qt//5.1.0/clang_64/lib/QtNetwork.framework/Versions/5/QtNet
> work (compatibility version 5.1.0, current version 5.1.0)
> /Users/rutledge/Qt//5.1.0/clang_64/lib/QtCore.framework/Versions/5/QtCore
> (compatibility version 5.1.0, current version 5.1.0)
> /Users/rutledge/Qt//5.1.0/clang_64/lib/QtGui.framework/Versions/5/QtGui
> (compatibility version 5.1.0, current version 5.1.0)
> /Users/rutledge/Qt//5.1.0/clang_64/lib/QtWidgets.framework/Versions/5/QtWid
> gets (compatibility version 5.1.0, current version 5.1.0)
> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
> (compatibility version 1.0.0, current version 1.0.0)
> /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility
> version 1.0.0, current version 1.0.0) /usr/lib/libstdc++.6.dylib
> (compatibility version 7.0.0, current version 56.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
> 169.3.0)
> 
> It links to libraries on my system so the .app isn't portable.
> 
> $ macdeployqt photosurface.app
> 
> $ find photosurface.app/
> photosurface.app/
> photosurface.app//Contents
> photosurface.app//Contents/Frameworks
> photosurface.app//Contents/Frameworks/QtCore.framework
> photosurface.app//Contents/Frameworks/QtCore.framework/Resources
> photosurface.app//Contents/Frameworks/QtCore.framework/Versions
> photosurface.app//Contents/Frameworks/QtCore.framework/Versions/5
> photosurface.app//Contents/Frameworks/QtCore.framework/Versions/5/QtCore
> photosurface.app//Contents/Frameworks/QtGui.framework
> photosurface.app//Contents/Frameworks/QtGui.framework/Resources
> photosurface.app//Contents/Frameworks/QtGui.framework/Versions
> photosurface.app//Contents/Frameworks/QtGui.framework/Versions/5
> photosurface.app//Contents/Frameworks/QtGui.framework/Versions/5/QtGui
> photosurface.app//Contents/Frameworks/QtNetwork.framework
> photosurface.app//Contents/Frameworks/QtNetwork.framework/Resources
> photosurface.app//Contents/Frameworks/QtNetwork.framework/Versions
> photosurface.app//Contents/Frameworks/QtNetwork.framework/Versions/5
> photosurface.app//Contents/Frameworks/QtNetwork.framework/Versions/5/QtNetwo
> rk photosurface.app//Contents/Frameworks/QtPrintSupport.framework
> photosurface.app//Contents/Frameworks/QtPrintSupport.framework/Resources
> photosurface.app//Contents/Frameworks/QtPrintSupport.framework/Versions
> photosurface.app//Contents/Frameworks/QtPrintSupport.framework/Versions/5
> photosurface.app//Contents/Frameworks/QtPrintSupport.framework/Versions/5/Qt
> PrintSupport photosurface.app//Contents/Frameworks/QtQml.framework
> photosurface.app//Contents/Frameworks/QtQml.framework/Resources
> photosurface.app//Contents/Frameworks/QtQml.framework/Versions
> photosurface.app//Contents/Frameworks/QtQml.framework/Versions/5
> photosurface.app//Contents/Frameworks/QtQml.framework/Versions/5/QtQml
> photosurface.app//Contents/Frameworks/QtQuick.framework
> photosurface.app//Contents/Frameworks/QtQuick.framework/Resources
> photosurface.app//Contents/Frameworks/QtQuick.framework/Versions
> photosurface.app//Contents/Frameworks/QtQuick.framework/Versions/5
> photosurface.app//Contents/Frameworks/QtQuick.framework/Versions/5/QtQuick
> photosurface.app//Contents/Frameworks/QtV8.framework
> photosurface.app//Contents/Frameworks/QtV8.framework/Resources
> photosurface.app//Contents/Frameworks/QtV8.framework/Versions
> photosurface.app//Contents/Frameworks/QtV8.framework/Versions/5
> photosurface.app//Contents/Frameworks/QtV8.framework/Versions/5/QtV8
> photosurface.app//Contents/Frameworks/QtWidgets.framework
> photosurface.app//Contents/Frameworks/QtWidgets.framework/Resources
> photosurface.app//Contents/Frameworks/QtWidgets.framework/Versions
> photosurface.app//Contents/Frameworks/QtWidgets.framework/Versions/5
> photosurface.app//Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidge
> ts photosurface.app//Contents/Info.plist
> photosurface.app//Contents/MacOS
> photosurface.app//Contents/MacOS/photosurface
> photosurface.app//Contents/PkgInfo
> photosurface.app//Contents/PlugIns
> photosurface.app//Contents/PlugIns/accessible
> photosurface.app//Contents/PlugIns/accessible/libqtaccessiblequick.dylib
> photosurface.app//Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib
> photosurface.app//Contents/PlugIns/imageformats
> photosurface.app//Contents/PlugIns/imageformats/libqgif.dylib
> photosurface.app//Contents/PlugIns/imageformats/libqico.dylib
> photosurface.app//Contents/PlugIns/imageformats/libqjpeg.dylib
> photosurface.app//Contents/PlugIns/imageformats/libqmng.dylib
> photosurface.app//Contents/PlugIns/imageformats/libqtga.dylib
> photosurface.app//Contents/PlugIns/imageformats/libqtiff.dylib
> photosurface.app//Contents/PlugIns/imageformats/libqwbmp.dylib
> photosurface.app//Contents/PlugIns/platforms
> photosurface.app//Contents/PlugIns/platforms/libqcocoa.dylib
> photosurface.app//Contents/PlugIns/printsupport
> photosurface.app//Contents/PlugIns/printsupport/libcocoaprintersupport.dylib
> photosurface.app//Contents/Resources
> photosurface.app//Contents/Resources/empty.lproj
> photosurface.app//Contents/Resources/photosurface.icns
> photosurface.app//Contents/Resources/qt.conf

Note that there is nothing "Plugins/qml" in that bundle.

Copy that photosurface.app to a system with no Qt (or remove/rename your 
original Qt so that the plugins there can't be found) and try again.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130806/8c4a21a6/attachment.sig>


More information about the Development mailing list