[PyQt] Compile PyQt4/SIP widget on windows
piotr maliński
riklaunim at gmail.com
Wed Dec 31 19:21:49 GMT 2008
I'm using standard PyQt4 for Windows. Can it be "configured" to use
ming, or I have to compile PyQt4 with ming?
2008/12/31, Phil Thompson <phil at riverbankcomputing.com>:
> On Wed, 31 Dec 2008 17:56:26 +0100, "piotr maliński" <riklaunim at gmail.com>
> wrote:
>
> > I'm trying to compile PyQt4 widget on Windows XP. I have Qt Creator
> > installed (with ming and other goodies). The problem is that make
> > fails:
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > C:\a\qf_macnavbar\selectable>sip -t Qt_4_4_2 -I
> > C:\Python26\Lib\site-packages\PyQt4\sip\PyQt4\ -t WS_WIN -c .
> > qf_selectablewidget.sip
> >
> >
> > C:\a\qf_macnavbar\selectable>mingw32-make
> > cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 -w34100 -w34189 -DUNICODE
> > -DWIN32
> > -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB
> > -I. -IC
> > :\Python26\Lib\site-packages\PyQt4\include -IC:\Python26\include
> > -IC:\Qt\4.4.2\m
> > kspecs\win32-msvc2008 -IC:\Qt\4.4.2\include\QtCore
> > -IC:\Qt\4.4.2\include\QtGui -
> > IC:\Qt\4.4.2\include -Fo @
> > process_begin: CreateProcess(NULL, cl -c -nologo -Zm200 -Zc:wchar_t- -O2
> > -MD -W3
> > -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL
> > -DQT_NO_DEBUG
> > -DQT_CORE_LIB -DQT_GUI_LIB -I.
> > -IC:\Python26\Lib\site-packages\PyQt4\include -I
> > C:\Python26\include -IC:\Qt\4.4.2\mkspecs\win32-msvc2008
> > -IC:\Qt\4.4.2\include\Q
> > tCore -IC:\Qt\4.4.2\include\QtGui -IC:\Qt\4.4.2\include -Fo @, ...)
> failed.
> > make (e=2): Nie mo?na odnale�� okre�lonego pliku.
> > mingw32-make: *** [{.}.cpp{}.obj] Error 2
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > What's missing?
> >
> > Other thing is that it "uses" Qt 4.4.2, where 4.4.3 is installed (I've
> > copyed 4.4.3 folder as 4.4.2). Using sip -t Qt_4_4_3 doesn't want to
> > work ("sip: QFileIconProvider is undefined")
>
>
> Looks like the SIP build system was configured for a Microsoft compiler.
>
>
> Phil
>
More information about the PyQt
mailing list