[PyQt] SIP 4.8.2 And Snow Leopard

Phil Thompson phil at riverbankcomputing.com
Fri Sep 11 14:04:17 BST 2009


On Fri, 4 Sep 2009 09:04:21 +0200, Thomas Mansencal
<kelsolaar_fool at hotmail.com> wrote:
> Hello,
> 
> I'm trying to Build SIP 4.8.2 on Snow Leopard to update all my PyQt  
> Installation and I'm encountering an error during the Make.
> Here is the Configure part :
> 
> Lilith:sip-4.8.2 KelSolaar$ python configure.py
> This is SIP 4.8.2 for Python 2.6.2 on darwin.
> The SIP code generator will be installed in
> /Library/Frameworks/Python.framework/Versions/2.6/bin.
> The SIP module will be installed in
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site- 
> packages.
> The SIP header file will be installed in
> /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6.
> The default directory to install .sip files in is
> /Library/Frameworks/Python.framework/Versions/2.6/share/sip.
> The platform/compiler configuration is macx-g++.
> Creating sipconfig.py...
> Creating top level Makefile...
> Creating sip code generator Makefile...
> Creating sip module Makefile...
> 
> and the Make :
> 
> Lilith:sip-4.8.2 KelSolaar$ make
> cc -c -pipe -Os -w -DNDEBUG -I. -o lexer.o lexer.c
> lexer.c:1: error: expected '=', ',', ';', 'asm' or '__attribute__'  
> before ':' token
> lexer.c:7: error: expected '=', ',', ';', 'asm' or '__attribute__'  
> before '-' token
> lexer.c:8: error: expected '=', ',', ';', 'asm' or '__attribute__'  
> before '-' token
> lexer.c:33:9: error: invalid suffix "bit" on integer constant
> lexer.c:34:9: error: invalid suffix "bit" on integer constant
> lexer.c:44: error: stray '#' in program
> lexer.c:45: error: stray '#' in program
> make[1]: *** [lexer.o] Error 1
> make: *** [all] Error 2
> 
> if someone has an idea or whatever could be the source of that.

I can't reproduce the problem. As other Snow Leopard problem reports are
related to PyQt (ie. people have build SIP Ok) then it implies a problem
with your setup. You are using a freshly unpacked tarball?

Phil


More information about the PyQt mailing list