[PyQt] problems with configure step on PyQT

Chang, Elizabeth Elizabeth.Chang at noblis.org
Thu Oct 23 20:21:32 BST 2008


I just got this to work by getting the run time error to go away. I
think the problem was that I had QT installed and then I installed PyQT
on top of that. I did try it before but apparently I had remnants of QT
directories and MINGW and I think somehow that interfered.

 

Elizabeth

________________________________

From: pyqt-bounces at riverbankcomputing.com
[mailto:pyqt-bounces at riverbankcomputing.com] On Behalf Of Chang,
Elizabeth
Sent: Thursday, October 23, 2008 12:58 PM
To: pyqt at riverbankcomputing.com
Subject: [PyQt] problems with configure step on PyQT

 

Hi, 

 

I've spent a whole day now trying to install PyQT
(C:\PyQt-win-gpl-4.4.3)

 

I have Windows XP. When I install the binary installer,
PyQt-Py2.5-gpl-4.4.3-1.exe, I cannot open QT Designer. I get a runtime
error that closes the application before it even starts. So, I've been
trying to compile it myself. If I can fix the run time error, I would be
happy with that. Otherwise, could someone help me fix the error I'm
getting in the configure step?

 

Using http://www.diotavelli.net/PyQtWiki/BuildPyQt4Windows,  I got QT
and SIP downloaded and installed. At the configure step of configuring
PyQT, I get stuck.

 

The error message I get is at the very end of this email. By the way, I
don't know where the path c:\DevTools\Python is coming from. My python
is installed in c:\python25. I've checked all of my environment
variables and I don't have anything that starts with c:\DevTools
anywhere. I've also searched the configure.py script and it's not in
there so I don't know where it's coming from.

 

Checking to see if the QtScript module should be built...

g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -I.

-IC:\Qt\4.4.3\mkspecs\default -IC:\Qt\4.4.3\include\QtScript
-IC:\Qt\4.4.3\inclu

de -O2 -w cfgtest_QtScript.cpp -o cfgtest_QtScript.exe -LC:\Qt\4.4.3\lib
-enable

-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
-Wl,-sub

system,console -Wl,-s -lQtScript4 -lQtCore4 -lkernel32 -luser32
-lshell32 -luuid

 -lole32 -ladvapi32 -lws2_32

Checking to see if the QtSql module should be built...

g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_SQL_LIB
-I. -IC

:\Qt\4.4.3\mkspecs\default -IC:\Qt\4.4.3\include\QtSql
-IC:\Qt\4.4.3\include\QtG

ui -IC:\Qt\4.4.3\include -O2 -w cfgtest_QtSql.cpp -o cfgtest_QtSql.exe
-LC:\Qt\4

.4.3\lib -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseud

o-reloc -Wl,-subsystem,console -Wl,-s -lQtSql4 -lQtCore4 -lkernel32
-luser32 -ls

hell32 -luuid -lole32 -ladvapi32 -lws2_32 -lQtGui4 -lQtCore4 -lgdi32
-lcomdlg32

-loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32 -luuid -luser32
-ladvapi3

2 -lkernel32 -lshell32

Checking to see if the QtSvg module should be built...

g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -I.
-IC:\Qt\4.4.3\mk

specs\default -IC:\Qt\4.4.3\include\QtSvg -IC:\Qt\4.4.3\include -O2 -w
cfgtest_Q

tSvg.cpp -o cfgtest_QtSvg.exe -LC:\Qt\4.4.3\lib -enable-stdcall-fixup
-Wl,-enabl

e-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console
-Wl,-s -lQ

tSvg4 -lQtCore4 -lQtGui4 -lQtXml4 -lkernel32 -luser32 -lshell32 -luuid
-lole32 -

ladvapi32 -lws2_32 -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm
-lwinspool

Checking to see if the QtTest module should be built...

g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_TEST_LIB -I. -I

C:\Qt\4.4.3\mkspecs\default -IC:\Qt\4.4.3\include\QtTest
-IC:\Qt\4.4.3\include -

O2 -w cfgtest_QtTest.cpp -o cfgtest_QtTest.exe -LC:\Qt\4.4.3\lib
-enable-stdcall

-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
-Wl,-subsystem,c

onsole -Wl,-s -lQtTest4 -lQtCore4 -lQtGui4 -lkernel32 -luser32 -lshell32
-luuid

-lole32 -ladvapi32 -lws2_32 -lgdi32 -lcomdlg32 -loleaut32 -limm32
-lwinmm -lwins

pool

Checking to see if the QtWebKit module should be built...

g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_WEBKIT_LIB -DQT

_CORE_LIB -I. -IC:\Qt\4.4.3\mkspecs\default
-IC:\Qt\4.4.3\include\QtWebKit -IC:\

Qt\4.4.3\include\QtCore -IC:\Qt\4.4.3\include -O2 -w
cfgtest_QtWebKit.cpp -o cfg

test_QtWebKit.exe -LC:\Qt\4.4.3\lib -enable-stdcall-fixup
-Wl,-enable-auto-impor

t -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -Wl,-s
-lQtWebKit4 -lQ

tGui4 -lQtNetwork4 -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm
-lwinspool -lws

2_32 -lole32 -luuid -luser32 -ladvapi32 -lQtCore4 -lkernel32 -luser32
-lshell32

-luuid -lole32 -ladvapi32 -lws2_32

Checking to see if the QtXml module should be built...

g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_XML_LIB
-I. -IC

:\Qt\4.4.3\mkspecs\default -IC:\Qt\4.4.3\include\QtXml
-IC:\Qt\4.4.3\include -O2

 -w cfgtest_QtXml.cpp -o cfgtest_QtXml.exe -LC:\Qt\4.4.3\lib
-enable-stdcall-fix

up -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
-Wl,-subsystem,conso

le -Wl,-s -lQtXml4 -lQtCore4 -lkernel32 -luser32 -lshell32 -luuid
-lole32 -ladva

pi32 -lws2_32

Checking to see if the QtXmlPatterns module should be built...

g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_XMLPATTERNS_LIB

 -I. -IC:\Qt\4.4.3\mkspecs\default -IC:\Qt\4.4.3\include\QtXmlPatterns
-IC:\Qt\4

.4.3\include -O2 -w cfgtest_QtXmlPatterns.cpp -o
cfgtest_QtXmlPatterns.exe -LC:\

Qt\4.4.3\lib -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-p

seudo-reloc -Wl,-subsystem,console -Wl,-s -lQtXmlPatterns4 -lQtCore4
-lkernel32

-luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32

Checking to see if the phonon module should be built...

g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_PHONON_LIB -I.

-IC:\Qt\4.4.3\mkspecs\default -IC:\Qt\4.4.3\include\phonon
-IC:\Qt\4.4.3\include

 -O2 -w cfgtest_phonon.cpp -o cfgtest_phonon.exe -LC:\Qt\4.4.3\lib
-enable-stdca

ll-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
-Wl,-subsystem

,console -Wl,-s -lphonon4 -lQtCore4 -lQtGui4 -lkernel32 -luser32
-lshell32 -luui

d -lole32 -ladvapi32 -lws2_32 -lgdi32 -lcomdlg32 -loleaut32 -limm32
-lwinmm -lwi

nspool

C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
cannot fin

d -lphonon4

collect2: ld returned 1 exit status

Checking to see if the QtAssistant module should be built...

g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -I.
-IC:\Qt\4.4.3\mk

specs\default -IC:\Qt\4.4.3\include\QtAssistant
-IC:\Qt\4.4.3\include\QtGui -IC:

\Qt\4.4.3\include\QtNetwork -IC:\Qt\4.4.3\include -O2 -w
cfgtest_QtAssistant.cpp

 -o cfgtest_QtAssistant.exe -LC:\Qt\4.4.3\lib -enable-stdcall-fixup
-Wl,-enable-

auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console
-Wl,-s -lQtA

ssistantClient4 -lQtCore4 -lkernel32 -luser32 -lshell32 -luuid -lole32
-ladvapi3

2 -lws2_32 -lQtGui4 -lQtCore4 -lgdi32 -lcomdlg32 -loleaut32 -limm32
-lwinmm -lwi

nspool -lws2_32 -lole32 -luuid -luser32 -ladvapi32 -lkernel32 -lshell32
-lQtNetw

ork4 -lQtCore4 -lws2_32 -lkernel32 -luser32 -lshell32 -luuid -lole32
-ladvapi32

Checking to see if the QtDesigner module should be built...

g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -I.
-IC:\Qt\4.4.3\mk

specs\default -IC:\Qt\4.4.3\include\QtDesigner -IC:\Qt\4.4.3\include -O2
-w cfgt

est_QtDesigner.cpp -o cfgtest_QtDesigner.exe -LC:\Qt\4.4.3\lib
-enable-stdcall-f

ixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
-Wl,-subsystem,con

sole -Wl,-s -lQtDesigner4 -lQtCore4 -lQtGui4 -lkernel32 -luser32
-lshell32 -luui

d -lole32 -ladvapi32 -lws2_32 -lgdi32 -lcomdlg32 -loleaut32 -limm32
-lwinmm -lwi

nspool

Qt v4.4.3 free edition is being used.

SIP 4.7.6 is being used.

The Qt header files are in C:\Qt\4.4.3\include.

The shared Qt libraries are in C:\Qt\4.4.3\lib.

The Qt binaries are in C:\Qt\4.4.3\bin.

The Qt mkspecs directory is in C:\Qt\4.4.3.

These PyQt modules will be built: QtCore QtGui QtHelp QtNetwork QtOpenGL

QtScript QtSql QtSvg QtTest QtWebKit QtXml QtXmlPatterns QtAssistant

QtDesigner.

The PyQt Python package will be installed in

C:\DevTools\Python\Lib\site-packages.

The Designer plugin will be installed in C:\Qt\4.4.3\plugins\designer.

The PyQt .sip files will be installed in C:\DevTools\Python\sip\PyQt4.

pyuic4, pyrcc4 and pylupdate4 will be installed in C:\DevTools\Python.

Generating the C++ source for the QtCore module...

"C:\DevTools\Python\sip" -x VendorID -t WS_WIN -x PyQt_OpenSSL -x
PyQt_NoPrintRa

ngeBug -t Qt_4_4_1 -g -a QtCore.api -c QtCore -b QtCore\QtCore.sbf -I
sip sip/Qt

Core/QtCoremod.sip

The system cannot find the path specified.

Error: Unable to create the C++ code.

 

 

Thanks in advance.

 

Elizabeth

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20081023/145da6ec/attachment-0001.html


More information about the PyQt mailing list