problem building qt4-x11 on SL

Ryan Schmidt ryandesign at macports.org
Sat Dec 3 08:54:30 PST 2011


On Dec 3, 2011, at 04:15, Frédéric Dubois wrote:

> Pythonocc uses occ (or oce), an open-source CAD library, which relies on X11.
> Therefore I try to uses a python based gui able to manage X11.
> I tried :
>  - py-xlib but its only available for python 2.4

Seems that's correct. I'm not sure why subports for newer Python versions haven't been added. A Python 2.6 version of the port was submitted here:

https://trac.macports.org/ticket/28867

But these days we should use subports, not entire new ports. If someone wanted to change the py-xlib port to use the new unified python portgroup and add subports for all compatible versions of Python and test that it works and attach it to that ticket, that would be great.

>  - wxPython but it seems it only compiles i386 and I was not able to obtain a 64-bits library

Correct, py*-wxPython requires wxWidgets which has yet to release a 64-bit compatible version. I know they're working on it, but they've been "working on it" for years. The wxWidgets-devel port includes a newer development version, which is supposed to overcome this, but software like wxPython that uses wxWidgets probably has to be updated to take advantage of this, and I don't know if that's happened yet.

>  - pyQt + qt4-x11 but this last library is broken.

You could try back-porting the changes that have happened in the qt4-mac port. There are probably many changes since it's been years since this was updated. If you get it working, send a diff so we can update the port.






More information about the macports-users mailing list