[PyQt] Problem Installing SIP-4.14.3

Richard Lang r1lang at yahoo.com
Fri Mar 1 05:51:06 GMT 2013


Many thanks for answer.
I did not install Mingw as I thought my existing windows7  win32-msvc2010 would work. Obviously it's opengl,  no good without C++.
I installed Mingw, reconfigure SIP to win32-g++ and compile with GnuWin32 make.
All's good. My SIP.exe  and ...all other compiles are copied into their respective directories.
Thanks again, and now my fun starts. I move on to PyQt4
Thank You, Thank you, Thank you.


________________________________
 From: Phil Thompson <phil at riverbankcomputing.com>
To: Richard Lang <r1lang at yahoo.com> 
Cc: PyQt at riverbankcomputing.com 
Sent: Thursday, 28 February 2013 7:06 PM
Subject: Re: [PyQt] Problem Installing SIP-4.14.3
 
On Wed, 27 Feb 2013 20:48:33 -0800 (PST), Richard Lang <r1lang at yahoo.com>
wrote:
> Help! 
> 
> I'm trying to create GUI applications using Python v3.3.0,
> PyQt4 v4.9.6 on my windows 7 SP1 64bit OS laptop using SIP v4.14.3 and
> GnuWin32
> Make v3.81 for compiling bindings. 
> I am not sure if they are 32bit compatible and what else to
> download in-order to build the development environment?

Why not use one of the binary installers?

You don't say what flags you passed to SIP's configure.py. Make sure you
specify the right --platform flag as described in the "Configuring for
MinGW" section of the docs.

Phil

> Set my environment PATH variables accordingly and started to
> install. 
>  
> http://www.python.org/download/releases/3.3.0/      Windowsx86
> MSIInstaller(3.3.0)(sig)
> http://www.riverbankcomputing.com/software/pyqt/download   
> PyQt-win-gpl-4.9.6.zip Windows source
> http://www.riverbankcomputing.com/software/sip/download     
ip-4.14.3.zip
> Windows source
> http://gnuwin32.sourceforge.net/packages/make.htm         Complete
> package, except sources   Setup
> 
> 
> C:\Python33> python runs with no problems - installed
> successfully 
>  
> I'm having trouble compiling and installing the SIP.exe
> file. 
> 
> When I run make,
> it goes into a loop as follows:-
>     C:\Users\PingYu>
>     C:\Users\PingYu> cd C:\Python33\Pysip\sip-4.14.3
>     C:\Python33\PYSIP\sip-4.14.3>
>     C:\Python33\PYSIP\sip-4.14.3>make
>     cd sipgen
>     make
>     make[1]: Entering
> directory C:/Python33/PYSIP/sip-4.14.3'
>     cd sipgen
>     .... 
>     .... goes into a
> loop... 
>     .... 
>     Cmd.exe-Application The application was unable to start correctly
> (0xc0000142).
>     Click OK to close
> the application 
>     make[409]: ***
> [all] ′í?ó -1073741502 make[409]: Leaving DirectoryC:/Python33/PYSIP
>            /sip-4.14.3'
>     ....
>     .... continue to
> loop...
>     ....
>     make[1]: [all] ′í?ó 2
>     make[1]: Leaving
> directory `C:/Python33/PYSIP/sip-4.14.3'
>     make: [all] ′í?ó 2
>     C:\Python33\PYSIP\sip-4.14.3>
>  
> ----------
>  I renamed C:\Python33\PYSIP\sip-4.14.3\Makefile to zMakefile
> so that it will not be read. (I think this was the caused of the loop.
> There
> are 3 Makefiles in the directory hierarchy)
>  ----------
>  Then I changed the
> dir to run make again as follows....
>     C:\Python33\PYSIP\sip-4.14.3> cd sipgen
>     C:\Python33\PYSIP\sip-4.14.3\sipgen> make
>     makefile:19: *** ò???·???·? ?£í£?1?£
>     
> I get the above error !!
> It's the same if I run with 'Make all' and 'Make Install'
> I also changed directory to make from siplib as follows...
>  
>     C:\Python33\PYSIP\sip-4.14.3\siplib> make
>     makefile:19: *** ò???·???·? ?£í£?1?£,
>  
> The same errors with 'Make all' and 'Make Install' 
>  ----------
> I suspect the coding in the Makefiles are not compatible
> with GnuWin32 Make
> 
>  ----------
> 
> Files and folders in directory ….
>  
> ## C:\Python33\PYSIP\sip-4.14.3 ##
>     __pycache__     Folder
>     Custom             Folder       
>     Doc                  Folder
>     Sipgen              Folder
>     Siplib                Folder
>     Specs               Folder
>     Sphinx              Folder
>     configure.py
>     LICENSE
>     LICENSE-GPL2
>     LICENSE-GPL3
>     Makefile
>     NEWS
>     README
>     sipconfig.py
>     sipdistutils.py
>     siputils.py
>  
> 
> The Makefile is ...
>      all:
>                   cd sipgen
>                   $(MAKE)
>                   @cd ..
>                   cd siplib
>                   $(MAKE)
>                   @cd ..
>     
>     install:
>                   cd sipgen
>                   $(MAKE) install
>                   @cd ..
>                   cd siplib
>                   $(MAKE) install
>                   @cd ..
>                   @if not exist C:\Python33\Lib\site-packages
> mkdir C:\Python33\Lib\site-packages
>                   copy /y sipconfig.py
> C:\Python33\Lib\site-packages\sipconfig.py
>                   copy /y
> C:\Python33\PYSIP\sip-4.14.3\sipdistutils.py C:\Python33\Lib\site-
>           packages\sipdistutils.py
>  
>     clean:
>                   cd sipgen
>                   $(MAKE) clean
>                   @cd ..
>                   cd siplib
>                   $(MAKE) clean
>                   @cd ..
>  
>  
> ----------
>  C:\Python33\PYSIP\sip-4.14.3\sipgen  
> 
>     export.c
>     extracts.c
>     gencode.c
>     heap.c
>     lexer.c
>     lexer.l
>     main.c
>     Makefile
>     parser.c
>     parser.h
>     parser.y
>     sip.h
>     sipgen.sbf
>     transform.c
>  
> The make file is ...
>  
>     TARGET = sip.exe
>     OFILES = main.obj
> transform.obj gencode.obj extracts.obj export.obj heap.obj parser.obj
>     lexer.obj
>     HFILES = sip.h
> parser.h
>  
>     CC = cl
>     CXX = cl
>     LINK = link
>     CPPFLAGS =
> -DNDEBUG -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -I.
>     CFLAGS = -nologo
> -Zm200 -Zc:wchar_t- -O2 -MD -W0
>     CXXFLAGS = -nologo
> -Zm200 -Zc:wchar_t- -O2 -MD -W0
>     LFLAGS = /NOLOGO
> /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /MANIFEST
>     /MANIFESTFILE:$(TARGET).manifest /SUBSYSTEM:CONSOLE
>     LIBS = 
>     .SUFFIXES: .c .cpp
> .cc .cxx .C
>  
>  
>     {.}.cpp{}.obj::
>                   $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo
> @<<
>                   $<
>     <<
>  
>     {.}.cc{}.obj::
>                   $<
>     <<
>  
>     {.}.cxx{}.obj::
>                   $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo
> @<<
>                   $<
>     <<
>  
>     {.}.C{}.obj::
>                   $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo
> @<<
>                   $<
>     <<
>  
>     {.}.c{}.obj::
>                   $(CC) -c $(CFLAGS) $(CPPFLAGS) -Fo @<<
>                   $<
>     <<
>  
>     all: $(TARGET)
>  
>     $(OFILES):
> $(HFILES)
>  
>     $(TARGET):
> $(OFILES)
>                   $(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
>     $(TARGET):
> $(OFILES)
>                   $(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
>                   $(OFILES) $(LIBS)
>     <<
>                   mt -nologo -manifest $(TARGET).manifest
> -outputresource:$(TARGET);1
>  
>     install: $(TARGET)
>                   @if not exist C:\Python33 mkdir C:\Python33
>                   copy /y $(TARGET) C:\Python33\$(TARGET)
>  
>     clean:
>                   -del $(TARGET)
>                   -del main.obj
>                   -del transform.obj
>                   -del gencode.obj
>                   -del extracts.obj
>                   -del export.obj
>                   -del heap.obj
>                   -del parser.obj
>                   -del lexer.obj
>                   -del $(TARGET).manifest
>  
> ----------
> 
>  C:\Python33\PYSIP\sip-4.14.3\siplib  
> 
>     parser.h
>     ool.cpp
>     descriptors.c
>     Makefile
>     objmap.c
>     qtlib.c
>     sip.h
>     sip.h.in
>     sipint.h
>     siplib.c
>     siplib.c.in
>     siplib.sbf
>     siplib.sbf.in
>     hreads.c
>     voidptr.c
>  
> The Make file is ...
>  
>     TARGET = sip.pyd
>     OFILES =
> siplib.obj apiversions.obj descriptors.obj qtlib.obj threads.obj
objmap.obj
>     voidptr.obj
> bool.obj
>     HFILES = sip.h
> sipint.h 
>  
>     CC = cl
>     CXX = cl
>     LINK = link
>     CPPFLAGS =
> -DNDEBUG -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -I.
-IC:\Python33\include
>     CFLAGS = -nologo
> -Zm200 -Zc:wchar_t- -O2 -MD -W0
>     CXXFLAGS = -nologo
> -Zm200 -Zc:wchar_t- -O2 -MD -W0
>     LFLAGS = /NOLOGO
> /DYNAMICBASE /NXCOMPAT /DLL /MANIFEST /MANIFESTFILE:$(TARGET).manifest
>     /SUBSYSTEM:CONSOLE
> /INCREMENTAL:NO
>     LIBS =
> /LIBPATH:C:\Python33\libs python33.lib
>     .SUFFIXES: .c .cpp
> .cc .cxx .C
>  
>  
>     {.}.cpp{}.obj::
>                   $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo
> @<<
>                   $<
>     <<
>  
>     {.}.cc{}.obj::
>                   $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo
> @<<
>                   $<
>     <<
>  
>     {.}.cxx{}.obj::
>                   $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo
> @<<
>                   $<
>     <<
>  
>     {.}.C{}.obj::
>                   $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo
> @<<
>                   $<
>     <<
>  
>     {.}.c{}.obj::
>                   $(CC) -c $(CFLAGS) $(CPPFLAGS) -Fo @<<
>                   $<
>     <<
>  
>     all: $(TARGET)
>  
>     $(OFILES):
> $(HFILES)
>  
>     $(TARGET):
> $(OFILES)
>                   $(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
>                     $(OFILES) $(LIBS)
>     <<
>                   mt -nologo -manifest $(TARGET).manifest
> -outputresource:$(TARGET);2
>  
>     install: $(TARGET)
>                   @if not exist C:\Python33\Lib\site-packages
> mkdir C:\Python33\Lib\site-packages
>                   copy /y $(TARGET)
> C:\Python33\Lib\site-packages\$(TARGET)
>                   @if not exist C:\Python33\include mkdir
> C:\Python33\include
>                   copy /y C:\Python33\PYSIP\sip-4.14.3\siplib\sip.h
> C:\Python33\include\sip.h
>  
>     clean:
>                   -del $(TARGET)
>                   -del siplib.obj
>                   -del apiversions.obj
>                   -del descriptors.obj
>                   -del qtlib.obj
>                   -del threads.obj
>                   -del objmap.obj
>                   -del voidptr.obj
>                   -del bool.obj
>                   -del $(TARGET).manifest
>  
>
____________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130228/7c20b4dd/attachment-0001.html>


More information about the PyQt mailing list