[PyQt] pyqtdeploy - make step fails with 'ld: library not found for -lQtGui'

Phil Thompson phil at riverbankcomputing.com
Sun Jul 6 22:16:56 BST 2014


On 06/07/2014 7:25 pm, Dave Gradwell wrote:
> I am trying to use pyqtdeploy.
> I have created a 'clean' machine for this.  It's Mac OS 10.9, Python
> 3.4.1 (statically compiled), SIP 4.16.1, PyQt5.3.
> Before working on my own application, I am trying to get pyqtdeploy to
> work on one of the examples.  I'm using mainwindows/application/
> The build step works; the qmake step works; the make step fails with
> the following error:
> 
> /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
> application.app/Contents/MacOS/application main.o pyqtdeploy_main.o
> pyqtdeploy_module.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/PyQt5
> -L/Users/admin/Desktop/building/built/lib/python3.4/site-packages
> -lQtGui -lQtWidgets -lsip -lQtCore
> -L/Users/admin/Desktop/building/built/lib -lpython3.4m -framework
> QtWidgets -framework QtGui -framework QtCore -framework OpenGL
> -framework AGL
> ld: library not found for -lQtGui
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> make: *** [application.app/Contents/MacOS/application] Error 1
> 
> For ease of reading, I reformat it like this:
> 
> /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 application.app/Contents/MacOS/application main.o pyqtdeploy_main.o
> pyqtdeploy_module.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/PyQt5
> -L/Users/admin/Desktop/building/built/lib/python3.4/site-packages
> -lQtGui
> -lQtWidgets
> -lQt
> -lsip
> -lQtCore
> -L/Users/admin/Desktop/building/built/lib
> -lpython3.4m
> -framework QtWidgets
> -framework QtGui
> -framework QtCore
> -framework OpenGL
> -framework AGL
> ld: library not found for -lQtGui
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> make: *** [application.app/Contents/MacOS/application] Error 1
> 
> 
> This directory:
> /Users/admin/Desktop/building/built/lib/python3.4/site-packages/PyQt5
> ... contains things like QtGui.so
> 
> 
> I wonder if anyone can offer any advice?

Build static versions of sip and PyQt.

Phil


More information about the PyQt mailing list