[PyKDE] TNX [SIP 3.2rc3 on Mac OS X builds out of the box]

Ludger Humbert humbert at hagen.de
Tue Apr 23 18:51:01 BST 2002


Phil Thompson wrote:


>>the actual version at
>>
>>        download/snapshots
>>
>>is
>>        sip-3.2rc3.tar.gz
>>It builds "out of the box"
>>with the usual
>>        ./configure
>>        make
>>        make install
>>dance for me.
>>
> 
> Excellent.
But 

...in the meantime (in between I had to work on other topics) I found
some  elements, which should be taken into account when trying to automate
the linking.
-->
The produced libs are not correct.

Traceback (most recent call last):
 > File "<string>", line 1, in ?
 > File "/sw/lib/python2.2/site-packages/qt.py", line 46, in ?
 > import libsip
 > ImportError: Inappropriate file type for dynamic loading

file  /sw/lib/python2.2/site-packages/libsip.9.0.0.dylib
/sw/lib/python2.2/site-packages/libsip.9.0.0.dylib: Mach-O dynamically 
linked shared library ppc

This seems due to using the
qt-Library   installed via
	fink

So I went on
and did via command-line
in
../siplib
c++ -bundle -flat_namespace -undefined suppress -o 
.libs/libsip.9.0.0.dylib siplib.lo threads.lo qtlib.lo \
objmap.lo moc_sipQt.lo  -L/sw/lib -lqt-mt -L/usr/X11R6/lib -lSM -lICE 
-lX11 -lc -install_name  \
/sw/lib/python2.2/site-packages/libsip.9.dylib -compatibility_version 10 
-current_version 10.0

The produced file
has the correct file type:

/sw/lib/python2.2/site-packages/libsip.9.0.0.dylib: Mach-O bundle ppc

It now is possible to run python and import
libsip

[localhost:~/SOFTWARE/AUSGEPACKT/PyQt-3.2rc2] hum% python
Python 2.2.1 (#1, Apr 18 2002, 23:40:34)
[GCC 2.95.2 19991024 (release)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import libsip
 >>>

TNX again
	Ludger







More information about the PyQt mailing list