[PyKDE] TNX [PyQt on Mac OS X builds after fiddeling around with -bundle]

Ludger Humbert humbert at hagen.de
Tue Apr 23 23:29:00 BST 2002


For your Information
~~~~~~~~~~~~~~~~~~


Dimitri's answer to my problems in  getting installed PyQt on Mac OS X:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 > > Are you compiling PyQt 3.2rc2?
 >
 > Yes.
 >
 >
 > > Qt/Mac defines Q_WS_MAC while Qt/X11 from Fink probably defines
 > > Q_WS_X11 instead.
 >
 > I use
 > Qt/X11 from
 > Fink.
 > So I had to change the mentioned line in the source -- otherwise I got
 > the problem.

Aaaah... OK. You know, you should tell Phil Thompson or (better)
the mailing list about that, otherwise Phil Thompson won't know
about this issue and won't fix it.


 > In the meantime I looked at
 >   libsip.9.0.0.so
 > It is a
 > 	Mach-O dynamically linked shared libraray ppc
 > file. Is this ok?

No, I don't think it's OK. libsip should be a module (or
bundle), not a shared library. SIP 3.2rc3 was supposed to
fix this, but it maybe didn't.

This is why I had asked whether SIP uses "-bundle" instead
of "-dynamiclib" when linking the Python modules. I guess
it doesn't. You should double check that.


 > Because, in Python
 > 	import libsip
 > throws the error:
 > 	Inappropriate file type for dynamic loading

On the other hand Python expects a module named libsip.so
module, not libsip.9.0.0.so. Make sure that there's a
libsip.so in the Python subdirectories.


 > What do you think about this?

You're in one of the above two situations. You'll have
to check which one:
- Is "-bundle" used when linking?
- Is there a libsip.so file in Python?

Dimitri
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Ongoing ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
After changing the link process for
sip (again), I could do an import for libsip
in Python.
So *this* works (for sip-3.2rc2 __not__ rc 3!), if you change the
	c++ -dynamiclib ...
to
	c++ -bundle ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the meantime I changed (by hand) in the directory PyQt-32.rc2 the
	-dynamiclib
in the configure made Makefile to
	-bundle
and now the compile/link-process is running,
it will take a while to complete ...

	Hopeful, I'll succeed.

I want to thank all the guys, who made this process possible.

Thank you so very much.

	Ludger





More information about the PyQt mailing list