Subject: Re: qt3-lib on OS X
To: Manuel Bouyer <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 04/14/2005 10:12:56
On Mon, 11 Apr 2005, Manuel Bouyer wrote:

> building qt3-lib on MacOS X fails trying to include a nonexistent file.
> It is because qt3 hanble darwin and osX in a different way: it builds
> the x11 interface on darwin, and the native osX interface on osX.
> But the later isn't inclued in the free qt3 (and I want the x11 interface
> anyway, as this is on a headless xserve :)
> The attached patch fix it, by making osX equivalent to darwin.

> + #if defined(__DARWIN_X11__)
> + #  define Q_OS_DARWIN
> + #elif defined(__APPLE__) && (defined(__GNUC__) || defined(__xlC__))
> +-#  define Q_OS_MACX
> ++#  define Q_OS_DARWIN
> + #elif defined(__MACOSX__)
> +-#  define Q_OS_MACX
> ++#  define Q_OS_DARWIN

I see you already committed. I will have to give this a try.

How is it working for you?

I am surprised that just defining Q_OS_DARWIN is good enough. I spent
hours trying it a harder way, and never finished it.

I found various patches from a fink list and from darwin ports. They fixed
a lot places in the code that missed checks for Darwin for X11.

Now I see the qt-x11-free in pkgsrc is now 3.3.4. That probably fixed
these problems. I forgot that was done in February -- thanks Adam.

Also, I thought the pkgsrc-provided qmake.conf had a QMAKE_LINK_SHLIB_CMD
definition that didn't work for Darwin. But maybe the wrapper framework
cleans that up for Darwin.

Anyways, thanks for doing this ... I will have to give it a try again.

 Jeremy C. Reed

 	  	 	 Media Relations and Publishing Services