PyQT, how to compile SIP on MAC? (long)

Barron barronsnyder at yahoo.com
Thu Apr 18 15:34:09 EDT 2002


Phil Thompson <phil at river-bank.demon.co.uk> wrote in message news:<mailman.1016790154.12480.python-list at python.org>...
> Ingo Linkweiler wrote:
> > 
> > Hi,
> > 
> > I am willing to use PyQt on Mac OS X
> > 
> > But I was not able to compile SIP --
> > http://www.river-bank.demon.co.uk/software/sip-3.0.tar.gz
> > 
> > Are there any hints you can give to compile SIP with success?
> > 
> > With windows and linux it works fine.
> 
> I've had reports of SIP building fine, but PyQt having problems with
> pyuic.
> 
> I can't test any of this myself because I don't have the tools (cue
> another begging letter for somebody to donate me a Mac and a development
> environment).
> 
> Phil


I, too, would love to get PyQt running on OS X! Any help is
appreciated.

Phil, I wish I could ship you a machine to do the work, but until I
win the lottery, my resources are quite limited <g>. However, I would
be willing to contribute a few dollars toward the effort....

It seems like the first step is compiling SIP.
So, I ran the .configure script. I received a few "no's" in the
output. Is this a problem? (full output at the end of this message) It
didn't seem to be, so I ran the "make check" to run the checks. (full
output at the end of this message) The only errors seemed to come at
the end:

...
/usr/bin/libtool: internal link edit command failed
make[1]: *** [libsip.la] Error 1
make: *** [check-recursive] Error 1

Do these errors prevent me from doing a "make install"?

Thanks,
Barron

Output from running ./configure and make check:

[localhost:/Applications/sip-3.1] barron% sh ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... no
checking for cc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of cc... gcc
checking for g++... no
checking for c++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... no
checking for yywrap in -ll... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking build system type... powerpc-apple-darwin5.3
checking host system type... powerpc-apple-darwin5.3
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic Mach-O
dynamically linked shared library
checking command to parse /usr/bin/nm -p output... ok
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... no
checking dlfcn.h presence... no
checking for dlfcn.h... no
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries...
yes
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... darwin5.3 dyld
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for cc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for working malloc... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for strchr... yes
checking for strdup... yes
checking for strrchr... yes
checking for strtol... yes
checking for the Qt meta object compiler...
/Applications/QtMacEval/bin/moc
checking for the Qt include files... /Applications/QtMacEval/include
checking for the Qt library files... -L/Applications/QtMacEval/lib
-lqt-mt
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for -fno-exceptions... yes
checking for python... /sw/bin/python
checking Python version... 2.2
checking where the Python sip module will be installed...
/sw/lib/python2.2/site-packages
checking for Python include files... /sw/include/python2.2
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sip/Makefile
config.status: creating siplib/Makefile
config.status: creating sip.spec
config.status: creating config.h
config.status: executing depfiles commands


[localhost:/Applications/sip-3.1] barron% make check
Making check in sip
source='main.c' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -c `test -f main.c || echo
'./'`main.c
source='parser.c' object='parser.o' libtool=no \
depfile='.deps/parser.Po' tmpdepfile='.deps/parser.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -c `test -f parser.c || echo
'./'`parser.c
source='lexer.c' object='lexer.o' libtool=no \
depfile='.deps/lexer.Po' tmpdepfile='.deps/lexer.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -c `test -f lexer.c || echo
'./'`lexer.c
source='transform.c' object='transform.o' libtool=no \
depfile='.deps/transform.Po' tmpdepfile='.deps/transform.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -c `test -f transform.c ||
echo './'`transform.c
source='gencode.c' object='gencode.o' libtool=no \
depfile='.deps/gencode.Po' tmpdepfile='.deps/gencode.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -c `test -f gencode.c || echo
'./'`gencode.c
source='heap.c' object='heap.o' libtool=no \
depfile='.deps/heap.Po' tmpdepfile='.deps/heap.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -c `test -f heap.c || echo
'./'`heap.c
/bin/sh ../libtool --mode=link cc  -O2   -o sip  main.o parser.o
lexer.o transform.o gencode.o heap.o -ll
mkdir .libs
cc -O2 -o sip main.o parser.o lexer.o transform.o gencode.o heap.o 
-ll
Making check in siplib
source='siplib.c' object='siplib.lo' libtool=yes \
depfile='.deps/siplib.Plo' tmpdepfile='.deps/siplib.TPlo' \
depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. 
-DQT_THREAD_SUPPORT -DSIP_QT_SUPPORT -I/Applications/QtMacEval/include
 -I/usr/X11R6/include -I/sw/include/python2.2   -O2 -c -o siplib.lo
`test -f siplib.c || echo './'`siplib.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -DQT_THREAD_SUPPORT -DSIP_QT_SUPPORT
-I/Applications/QtMacEval/include -I/usr/X11R6/include
-I/sw/include/python2.2 -O2 -c siplib.c -Wp,-MD,.deps/siplib.TPlo 
-fno-common -DPIC -o siplib.lo
source='qtlib.cpp' object='qtlib.lo' libtool=yes \
depfile='.deps/qtlib.Plo' tmpdepfile='.deps/qtlib.TPlo' \
depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. 
-DQT_THREAD_SUPPORT -DSIP_QT_SUPPORT -I/Applications/QtMacEval/include
 -I/usr/X11R6/include -I/sw/include/python2.2  -fno-exceptions  -O2 -c
-o qtlib.lo `test -f qtlib.cpp || echo './'`qtlib.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -DQT_THREAD_SUPPORT -DSIP_QT_SUPPORT
-I/Applications/QtMacEval/include -I/usr/X11R6/include
-I/sw/include/python2.2 -fno-exceptions -O2 -c qtlib.cpp
-Wp,-MD,.deps/qtlib.TPlo  -fno-common -DPIC -o qtlib.lo
source='objmap.c' object='objmap.lo' libtool=yes \
depfile='.deps/objmap.Plo' tmpdepfile='.deps/objmap.TPlo' \
depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. 
-DQT_THREAD_SUPPORT -DSIP_QT_SUPPORT -I/Applications/QtMacEval/include
 -I/usr/X11R6/include -I/sw/include/python2.2   -O2 -c -o objmap.lo
`test -f objmap.c || echo './'`objmap.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -DQT_THREAD_SUPPORT -DSIP_QT_SUPPORT
-I/Applications/QtMacEval/include -I/usr/X11R6/include
-I/sw/include/python2.2 -O2 -c objmap.c -Wp,-MD,.deps/objmap.TPlo 
-fno-common -DPIC -o objmap.lo
if test -n "/Applications/QtMacEval/bin/moc"; then \
        /Applications/QtMacEval/bin/moc -o moc_sipQt.cpp ./sipQt.h; \
else \
        touch moc_sipQt.cpp; \
fi
source='moc_sipQt.cpp' object='moc_sipQt.lo' libtool=yes \
depfile='.deps/moc_sipQt.Plo' tmpdepfile='.deps/moc_sipQt.TPlo' \
depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. 
-DQT_THREAD_SUPPORT -DSIP_QT_SUPPORT -I/Applications/QtMacEval/include
 -I/usr/X11R6/include -I/sw/include/python2.2  -fno-exceptions  -O2 -c
-o moc_sipQt.lo `test -f moc_sipQt.cpp || echo './'`moc_sipQt.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -DQT_THREAD_SUPPORT -DSIP_QT_SUPPORT
-I/Applications/QtMacEval/include -I/usr/X11R6/include
-I/sw/include/python2.2 -fno-exceptions -O2 -c moc_sipQt.cpp
-Wp,-MD,.deps/moc_sipQt.TPlo  -fno-common -DPIC -o moc_sipQt.lo
/bin/sh ../libtool --mode=link c++ -fno-exceptions  -O2   -o libsip.la
-rpath /sw/lib/python2.2/site-packages -version-info 8:0:0
-L/Applications/QtMacEval/lib -lqt-mt  -L/usr/X11R6/lib  -lSM -lICE
-lX11  siplib.lo qtlib.lo objmap.lo  moc_sipQt.lo
mkdir .libs
rm -fr .libs/libsip.la .libs/libsip.* .libs/libsip.*
(cd . && ln -s siplib.lo siplib.o)
(cd . && ln -s qtlib.lo qtlib.o)
(cd . && ln -s objmap.lo objmap.o)
(cd . && ln -s moc_sipQt.lo moc_sipQt.o)
../libtool: parse error: condition expected: xno = [3183]
c++ -dynamiclib -flat_namespace -undefined suppress -o
.libs/libsip.8.0.0.dylib  siplib.lo qtlib.lo objmap.lo moc_sipQt.lo 
-L/Applications/QtMacEval/lib -lqt-mt -L/usr/X11R6/lib -lSM -lICE
-lX11 -lc -install_name 
/sw/lib/python2.2/site-packages/libsip.8.dylib -compatibility_version
9 -current_version 9.0
ld: multiple definitions of symbol _sipQObjectClass
siplib.lo definition of _sipQObjectClass in section (__DATA,__common)
qtlib.lo definition of _sipQObjectClass in section (__DATA,__common)
objmap.lo definition of _sipQObjectClass in section (__DATA,__common)
/usr/bin/libtool: internal link edit command failed
make[1]: *** [libsip.la] Error 1
make: *** [check-recursive] Error 1
[localhost:/Applications/sip-3.1] barron%



More information about the Python-list mailing list