Making QtCurve build on Snow Leopard

Marko Käning MK-MacPorts at techno.ms
Tue Dec 2 09:49:30 PST 2014


Hi Mojca and Josh,

On 02 Dec 2014, at 12:26 , Mojca Miklavec <mojca at macports.org> wrote:
> My blind guess (without testing anything) is that Lion uses clang by
> default while Snow Leopard uses gcc 4.2. Clang might be "new enough",
> while gcc 4.2 is not.

yes, that’s the point.

I had posted only to KDE-MAC what I suggest to do (see below)...
Hoping that René can verify that my (probably too restrictive) blacklisting
works on his SL.

Myself I am currently unable to test whether QtCurve builds with some other
gcc compilers above 4.2!

Greets,
Marko



Begin forwarded message:

> From: Marko Käning <mk-lists at email.de>
> Subject: Re: [KDE/Mac] QtCurve doesn't build on Snow Leopard
> Date: 2 Dec 2014 09:03:44 GMT+1
> To: KDE Software on Mac OS X <kde-mac at kde.org>
> Reply-To: KDE Software on Mac OS X <kde-mac at kde.org>
> 
> Hi René,
> 
> do you think the below addition will make it build on Snow Leopard?
> 
> I can’t test it here, so it would be great if you could give it a shot?
> 
> Perhaps an additional note has to be inserted, so that the user knows
> what to do, if there isn’t the required compiler installed yet...
> 
> Greets,
> Marko
> 
> 
> 
> 
> 
> qtcurve marko$ svn diff
> Index: Portfile
> ===================================================================
> --- Portfile	(revision 128987)
> +++ Portfile	(working copy)
> @@ -36,6 +36,11 @@
> configure.args-append   -DQTC_QT4_STYLE_SUPPORT:BOOL=OFF -DENABLE_QT5:BOOL=OFF \
>                         -DQTC_QT4_ENABLE_KWIN:BOOL=OFF
> 
> +# configure checks that we're clang 3.2, gcc 4.7, or better
> +compiler.blacklist-append gcc-3.3 gcc-4.0 apple-gcc-4.0 gcc-4.2 apple-gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2
> +compiler.blacklist-append macports-gcc-4.2 macports-gcc-4.3 macports-gcc-4.4 macports-gcc-4.5 macports-gcc-4.6
> +compiler.blacklist-append {clang < 425} macports-clang-2.9 macports-clang-3.0 macports-clang-3.1
> +
> variant x11 description {build x11 support} {}
> if { [variant_isset x11] } {
> 	depends_lib-append port:xorg-libX11
> 
> 
> _______________________________________________
> kde-mac at kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: http://community.kde.org/Mac



More information about the macports-dev mailing list