[PyQt] pyqtdeployed app crashes on launch

Dave Gradwell davegradwell at yahoo.co.uk
Tue Jul 15 20:04:27 BST 2014


Hello again,

I finally pyqtdeployed the example application by removing the import of the application_rc.py file.
I ran macdeployqt on the .app bundle and managed to distribute this to another, clean machine running 10.9.
The self-contained .app launched.

I am now trying to pyqtdeploy my own application.  It uses PyQt4.  So, on my clean 'build' machine, I have:
- Installed PyQt4 (non-statically, for interpreted testing) using:
  - python3.4 ./configure-ng.py --qmake=/Users/admin/Qt5.3.1/5.3/clang_64/bin/qmake --sip=/Users/admin/Desktop/building/built/bin/sip
- Installed PyQt4 (statically) using:
  - python3.4 configure-ng.py --no-designer-plugin --static --qmake=/Users/admin/Qt5.3.1/5.3/clang_64/bin/qmake --sip=/Users/admin/Desktop/building/built/bin/sip

(I had to build against Qt 5 because configure-ng.py failed with the qmake of Qt 4.)

Then I tried to pyqtdeploy my PyQt4 application.  The make step failed.  The output is 15 thousand lines long.  I have pasted some of the more riveting parts below.

If anyone could offer any advice, that would be much appreciated.

Thanks,

Dave.



..........
Freezing /Users/admin/Desktop/building/built/lib/python3.4/warnings.py
Freezing /Users/admin/Desktop/building/built/lib/python3.4/site-packages/PyQt4/__init__.py
Code generation succeeded.
Running qmake...
qmake succeeded.
Running make...
make failed.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../Qt5.3.1/5.3/clang_64/mkspecs/macx-clang -I. -I../../building/built/include/python3.4m -I../../../Qt5.3.1/5.3/clang_64/lib/QtSql.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers
 -F/Users/admin/Qt5.3.1/5.3/clang_64/lib -o main.o main.c
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../Qt5.3.1/5.3/clang_64/mkspecs/macx-clang -I. -I../../building/built/include/python3.4m -I../../../Qt5.3.1/5.3/clang_64/lib/QtSql.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers
 -F/Users/admin/Qt5.3.1/5.3/clang_64/lib -o pyqtdeploy_main.o pyqtdeploy_main.c
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../Qt5.3.1/5.3/clang_64/mkspecs/macx-clang -I. -I../../building/built/include/python3.4m -I../../../Qt5.3.1/5.3/clang_64/lib/QtSql.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers
 -F/Users/admin/Qt5.3.1/5.3/clang_64/lib -o pyqtdeploy_module.o pyqtdeploy_module.cpp
/Users/admin/Qt5.3.1/5.3/clang_64/bin/rcc -name pyqtdeploy resources/pyqtdeploy.qrc -o qrc_pyqtdeploy.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../Qt5.3.1/5.3/clang_64/mkspecs/macx-clang -I. -I../../building/built/include/python3.4m -I../../../Qt5.3.1/5.3/clang_64/lib/QtSql.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers
 -F/Users/admin/Qt5.3.1/5.3/clang_64/lib -o qrc_pyqtdeploy.o qrc_pyqtdeploy.cpp
/Users/admin/Qt5.3.1/5.3/clang_64/bin/rcc -name stdlib resources/stdlib.qrc -o qrc_stdlib.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../Qt5.3.1/5.3/clang_64/mkspecs/macx-clang -I. -I../../building/built/include/python3.4m -I../../../Qt5.3.1/5.3/clang_64/lib/QtSql.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers
 -F/Users/admin/Qt5.3.1/5.3/clang_64/lib -o qrc_stdlib.o qrc_stdlib.cpp
/Users/admin/Qt5.3.1/5.3/clang_64/bin/rcc -name site-packages resources/site-packages.qrc -o qrc_site-packages.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../Qt5.3.1/5.3/clang_64/mkspecs/macx-clang -I. -I../../building/built/include/python3.4m -I../../../Qt5.3.1/5.3/clang_64/lib/QtSql.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../../Qt5.3.1/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers
 -F/Users/admin/Qt5.3.1/5.3/clang_64/lib -o qrc_site-packages.o qrc_site-packages.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -o clientUtility.app/Contents/MacOS/clientUtility main.o pyqtdeploy_main.o pyqtdeploy_module.o qrc_pyqtdeploy.o qrc_stdlib.o qrc_site-packages.o   -F/Users/admin/Qt5.3.1/5.3/clang_64/lib -L/Users/admin/Desktop/building/built/lib/python3.4/site-packages/PyQt4 -L/Users/admin/Desktop/building/built/lib/python3.4/site-packages -lQt_s -lsip -lQtSql_s -lQtGui_s -lQtCore_s -L/Users/admin/Desktop/building/built/lib -lpython3.4m -framework QtSql -framework QtCore -framework QtGui -framework OpenGL -framework AGL 
Undefined symbols for architecture x86_64:
  "qDrawWinPanel(QPainter*, QRect const&, QPalette const&, bool, QBrush const*)", referenced from:
      func_qDrawWinPanel(_object*, _object*, _object*) in libQtGui_s.a(sipQtGuicmodule.o)
  "qDrawWinPanel(QPainter*, int, int, int, int, QPalette const&, bool, QBrush const*)", referenced from:
      func_qDrawWinPanel(_object*, _object*, _object*) in libQtGui_s.a(sipQtGuicmodule.o)
  "qDrawPlainRect(QPainter*, QRect const&, QColor const&, int, QBrush const*)", referenced from:

<.....thousands of lines snipped-out here....>

      slot___rshift__(_object*, _object*) in libQtGui_s.a(sipQtGuicmodule.o)
  "operator>>(QTextStream&, QSplitter&)", referenced from:
      slot___rshift__(_object*, _object*) in libQtGui_s.a(sipQtGuicmodule.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [clientUtility.app/Contents/MacOS/clientUtility] Error 1













More information about the PyQt mailing list