Macdeployqt woes 4.8 beta
-
Just when I thought I had it nailed down (everything was working v4.7.3). Now when I use macdeployqt against my binary a few things happen that I was not expecting.
The first is a bunch more Qt libraries get copied in than what I was expecting.
Here is the otool output to show what my binary is looking for:
@otool -L im360.packager
im360.packager:
@executable_path/../Frameworks/libim360.1.dylib (compatibility version 1.0.0, current version 1.0.0)
@executable_path/../Frameworks/QtOpenGL.framework/Versions/4/QtOpenGL (compatibility version 4.8.0, current version 4.8.0)
@executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.0)
@executable_path/../Frameworks/QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.8.0, current version 4.8.0)
@executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.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 7.9.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 832.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)
@Yet after macdeployqt these were all copied into my package: QtCore, QtDeclarative, QtGui, QtNetwork, QtOpenGL, QtScript, QtSql, QtSvg, QtXmlPatterns and now a whole lot of files in plugins/ (which was not there before). Granted I have been making changes to my program and maybe these are needed now but I dont think so. The only lib I have added since upgrading to 4.8 is QtNetwork. Here is the line from my .pro file: QT += core gui opengl network
Ok, I wouldnt mind so much having those files if my program didn't crash after running macdeployqt. If I run it without using macdeployqt then the program runs fine. Here is the crash log.. I couldnt find anything useful in it ... which is why I am here. :)
log pasted in follow up post (not enough room).
Thanks!
-
@
OS Version: Mac OS X 10.6.8 (10K540)Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-threadThread 0 Crashed: Dispatch queue: com.apple.main-thread
0 QtGui 0x0000000101acf720 QApplication::setActiveWindow(QWidget*) + 384
1 QtGui 0x0000000101a5be0c onApplicationWindowChangedActivation(QWidget*, bool) + 92
2 QtGui 0x0000000101a79e81 -[QCocoaWindowDelegate windowDidBecomeKey:] + 65
3 com.apple.Foundation 0x00007fff81246bc5 _nsnote_callback + 167
4 com.apple.CoreFoundation 0x00007fff83128000 __CFXNotificationPost + 1008
5 com.apple.CoreFoundation 0x00007fff83114578 _CFXNotificationPostNotification + 200
6 com.apple.Foundation 0x00007fff8123db26 -[NSNotificationCenter postNotificationName:object:userInfo:] + 101
7 com.apple.AppKit 0x00007fff89c4ff14 -[NSWindow becomeKeyWindow] + 1218
8 com.apple.AppKit 0x00007fff89c4f547 -[NSWindow _changeKeyAndMainLimitedOK:] + 718
9 com.apple.AppKit 0x00007fff89c4f1d8 -[NSWindow _makeKeyRegardlessOfVisibility] + 111
10 com.apple.AppKit 0x00007fff89c4f13e -[NSWindow makeKeyAndOrderFront:] + 24
11 QtGui 0x000000010086fe93 QWidgetPrivate::show_sys() + 1123
12 QtGui 0x000000010092a018 QWidgetPrivate::show_helper() + 408
13 QtGui 0x000000010092a34f QWidget::setVisible(bool) + 511
14 com.yourcompany.im360.packager 0x0000000100003d35 main + 165
15 com.yourcompany.im360.packager 0x0000000100003c64 start + 52Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x00007fff865e4c0a kevent + 10
1 libSystem.B.dylib 0x00007fff865e6add _dispatch_mgr_invoke + 154
2 libSystem.B.dylib 0x00007fff865e67b4 _dispatch_queue_invoke + 185
3 libSystem.B.dylib 0x00007fff865e62de _dispatch_worker_thread2 + 252
4 libSystem.B.dylib 0x00007fff865e5c08 _pthread_wqthread + 353
5 libSystem.B.dylib 0x00007fff865e5aa5 start_wqthread + 13Thread 2:
0 libSystem.B.dylib 0x00007fff865e5a2a __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff865e5e3c _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff865e5aa5 start_wqthread + 13Thread 3:
Thread 0 crashed with X86 Thread State (64-bit):
.. cut ..Binary Images:
0x100000000 - 0x100058ff7 +com.yourcompany.im360.packager ??? (???) <B153993B-E160-332D-B729-AC5673729034> /Users/bsiroshton/work/Immersive.Media/dev/trunk/im360.packager/projects/im360.packager/im360-build-desktop/im360.packager.app/Contents/MacOS/im360.packager
0x10006d000 - 0x1005c1fef +libim360.1.dylib ??? (???) <1F3E299E-A64D-3C94-B490-64F3931A772B> /Users/bsiroshton/work/Immersive.Media/dev/trunk/im360.packager/projects/im360.packager/im360-build-desktop/im360.packager.app/Contents/Frameworks/libim360.1.dylib
0x10073a000 - 0x10081bfef +QtOpenGL 4.8.0 (compatibility 4.8.0) <4478205B-4E6F-1691-6F63-FFDC5C7DB69D> /Users/bsiroshton/work/Immersive.Media/dev/trunk/im360.packager/projects/im360.packager/im360-build-desktop/im360.packager.app/Contents/Frameworks/QtOpenGL.framework/Versions/4/QtOpenGL
0x10084b000 - 0x101256fe7 +QtGui 4.8.0 (compatibility 4.8.0) <D5588EC0-CB69-31E3-B1AA-4772B88EAD96> /Users/bsiroshton/work/Immersive.Media/dev/trunk/im360.packager/projects/im360.packager/im360-build-desktop/im360.packager.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
0x101433000 - 0x10156efe7 +QtNetwork 4.8.0 (compatibility 4.8.0) <16F00A59-5B2D-DB8C-FA1D-8FF297F18F8E> /Users/bsiroshton/work/Immersive.Media/dev/trunk/im360.packager/projects/im360.packager/im360-build-desktop/im360.packager.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork
0x1015a6000 - 0x10186cfff +QtCore 4.8.0 (compatibility 4.8.0) <DD60E890-9E9A-2BCA-F9AE-215F2F94FAC5> /Users/bsiroshton/work/Immersive.Media/dev/trunk/im360.packager/projects/im360.packager/im360-build-desktop/im360.packager.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore
0x1018d7000 - 0x1018ddff7 com.apple.agl 3.0.12 (AGL-3.0.12) <1AB34F57-2E8D-42FB-A484-5CCB928CA456> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
0x1018e4000 - 0x10190cfff com.apple.audio.OpenAL 1.4 (1.4) <B38DE645-AEF4-D6DC-A1AB-E3D0D98591E3> /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL
0x10191a000 - 0x1019fbfef +QtOpenGL 4.8.0 (compatibility 4.8.0) <4478205B-4E6F-1691-6F63-FFDC5C7DB69D> /Users/bsiroshton/dev/QtSDK/Desktop/Qt/4.8.0/gcc/lib/QtOpenGL.framework/Versions/4/QtOpenGL
0x101a45000 - 0x102450fe7 +QtGui 4.8.0 (compatibility 4.8.0) <D5588EC0-CB69-31E3-B1AA-4772B88EAD96> /Users/bsiroshton/dev/QtSDK/Desktop/Qt/4.8.0/gcc/lib/QtGui.framework/Versions/4/QtGui
0x102712000 - 0x1029d8fff +QtCore 4.8.0 (compatibility 4.8.0) <DD60E890-9E9A-2BCA-F9AE-215F2F94FAC5>.. cut to reduce size ..
Model: MacBookPro6,1, BootROM MBP61.0057.B0C, 2 processors, Intel Core i7, 2.66 GHz, 4 GB, SMC 1.57f17
@ -
I have this too here
-
No with the release, but I not sure it's that's, it repported by the user, I can't test it my self, to try:
http://files.first-world.info/ultracopier/0.3.0.3/ultracopier-mac-os-x-0.3.0.3.dmg
Packaged with:
/usr/bin/macdeployqt ultracopier.app/ -dmg