[PyKDE] ANN: SIP v4.0pre1 Released

Rune Hansen rune.hansen at viventus.no
Fri Oct 17 22:51:01 BST 2003


On fredag, okt 17, 2003, at 16:04 Europe/Oslo, Phil Thompson wrote:

> On Friday 17 October 2003 2:53 pm, Rune Hansen wrote:
>> On torsdag, okt 16, 2003, at 19:34 Europe/Oslo, Phil Thompson wrote:
>>> I'm interested in
>>> any feedback on building on MacOS/X.
>
> That looks like it's just not picking up the Python library (I assume 
> you have
> Python built as a shared library).
>
> Can you hack the Makefile to get it to link and let me know what the 
> changes
> are?
>
> Thanks,
> Phil
>

Hi Phil, I made this change to siplib/Makefile:

LFLAGS   = -framework Python  -bundle
sip builds wihout errors.

I've also tried -flat_namespace, theres no noticeable difference in the 
build

$PYTHON/site-packages now contains:
sip.dylib
sipconfig.py

(/usr/local/bin/sip doesn't seem to be buildt unless LFLAGS contains 
-bundle)

PyQt-x11-gpl-snapshot-20031016:
Made some of the modifications listed in README.MacOSX related to PyQt

Added "macx:QMAKE_LFLAGS += -framework Python" to:
qtcanvasmod.sip
qtextmod.sip
qtglmod.sip
qtnetworkmod.sip
qtsqlmod.sip
qttablemod.sip
qtuimod.sip
qtxmlmod.sip

  Created the file "qwindowdefs_macx.sip"
( Contents of qwindowdefs_macx.sip:
%If (WS_MACX)
typedef unsigned WId;
typedef void *HANDLE;
%End
)

Added plattag  =  "WS_MACX" to build.py

[ @ ] $ python2.3 build.py -c
Completed without any serious errors.

Added  "LFLAGS   = -bundle -framework Python" to qt/Makefile, the other 
Makefiles (qttable,qtsql and so on) has magicaly been updated.

make, make install completes without errors.

$PYTHON/site-packages has these qt files:
qt.dylib
qtgl.dylib
qtsql.dylib
qtui.dylib
qtcanvas.dylib
qtnetwork.dylib
qttable.dylib
qtxml.dylib
...and nothing else...

Can't help but think I've made an error....some where :-)

/regards

Rune Hansen
rune.hansen at viventus.no

Some people, when confronted with a problem, think "I know,
I'll use regular expressions." Now they have two problems.
-- Jamie Zawinski, alt.religion.emacs (08/12/1997)




More information about the PyQt mailing list