[PyQt] RE: problem building PyQt 4.4.4 on OS-X

Phil Thompson phil at riverbankcomputing.com
Fri Nov 14 08:53:28 GMT 2008


On Fri, 14 Nov 2008 00:07:56 -0000, "Simon Knowles" <simon at IceraSemi.com>
wrote:
> Phil,
> Abridged log from configure.py --verbose below -- eg. is
cfgtest_QtGui.cpp
> expecting to find qwidget.h locally?  The unpacked tar doesn't have any
> .h's at the level of cfgtest_QtGui.cpp.  There is a qwidget.h in
> /usr/local/Trolltech/Qt-4.4.3/include, mentioned later in the log.
> 
> S.
> 
> --
> 
> unknown-00-23-6c-82-52-d7:PyQt-mac-gpl-4.4.4 simon$ python configure.py
> --verbose
> Determining the layout of your Qt installation...
> /usr/local/Trolltech/Qt-4.4.3/bin/qmake -spec macx-g++ -o qtdirs.mk
> qtdirs.pro
> make -f qtdirs.mk
> g++ -c -pipe -g -Wall -W -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
> -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Trolltech/Qt-4.4.3/mkspecs/macx-g++
> -I. -I../../include/QtCore -I../../include/QtCore -I../../include
> -I../../include -I.moc/debug-shared -I.uic/debug-shared
-F/Users/simon/lib
> -o .obj/debug-shared/qtdirs.o qtdirs.cpp
> g++ -headerpad_max_install_names -o qtdirs.app/Contents/MacOS/qtdirs
> .obj/debug-shared/qtdirs.o   -F/Users/simon/lib -L/Users/simon/lib
> -framework QtCore -L/Users/simon/lib -lz -lm -framework
ApplicationServices
> qtdirs.app/Contents/MacOS/qtdirs
> This is the GPL version of PyQt 4.4.4 (licensed under the GNU General
> Public
> License) for Python 2.5.1 on darwin.
> 
> Type '2' to view the GPL v2 license.
> Type '3' to view the GPL v3 license.
> Type 'yes' to accept the terms of the license.
> Type 'no' to decline the terms of the license.
> 
> Do you accept the terms of the license? yes
> Checking to see if the QtGui module should be built...
> g++ -DQT_NO_DEBUG -DQT_GUI_LIB -I.
> -I/usr/local/Trolltech/Qt-4.4.3/mkspecs/default
> -I/usr/local/Trolltech/Qt-4.4.3/lib/QtGui.framework/Headers

Does qwidget.h appear in the above directory?

> -I/usr/local/Trolltech/Qt-4.4.3/include -pipe -Os -w cfgtest_QtGui.cpp -o
> cfgtest_QtGui -F/usr/local/Trolltech/Qt-4.4.3/lib
> -L/usr/local/Trolltech/Qt-4.4.3/lib -headerpad_max_install_names
-framework
> QtGui -L/usr/local/Trolltech/Qt-4.4.3/lib
> -F/usr/local/Trolltech/Qt-4.4.3/lib -framework Carbon -framework AppKit
> -framework QtCore -L/usr/local/Trolltech/Qt-4.4.3/lib -lz -lm -framework
> ApplicationServices
> cfgtest_QtGui.cpp:1:21: error: qwidget.h: No such file or directory
> cfgtest_QtGui.cpp: In function ‘int main(int, char**)’:
> cfgtest_QtGui.cpp:5: error: expected type-specifier before ‘QWidget’
> cfgtest_QtGui.cpp:5: error: expected `;' before ‘QWidget’

Did you build Qt yourself or use a binary installer?

Phil


More information about the PyQt mailing list