From f16a6a0021bcf8ede8c4d0ffdda1faa751991414 Mon Sep 17 00:00:00 2001 From: Hugo Vincent Date: Sun, 11 Apr 2010 18:00:56 +0100 Subject: [PATCH] Lorenz, try this 64-bit detection method please :-) --- mavground.pri | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/mavground.pri b/mavground.pri index fa151f451..885a72b3c 100644 --- a/mavground.pri +++ b/mavground.pri @@ -60,19 +60,14 @@ message(Qt version $$[QT_VERSION]) # MAC OS X macx { - CONFIG += x86 #x86_64 - CONFIG -= static phonon + message(Building for Mac OS X) + config -= static - HARDWARE_PLATFORM = $$system(uname -a) - contains( HARDWARE_PLATFORM, x86_64 ) { - # x64 Mac OS X Snow Leopard 10.6 and later + HARDWARE_PLATFORM = $$system(g++ -dumpspecs) + contains( HARDWARE_PLATFORM, m64 ) { + message(Building as 64-bit) CONFIG += x86_64 - CONFIG -= x86 static phonon - message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later) - } else { - # x86 Mac OS X Leopard 10.5 and earlier - CONFIG += x86 static phonon - message(Building for Mac OS X 32bit/Leopard 10.5 and earlier) + CONFIG -= x86 } QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 @@ -108,7 +103,7 @@ linux-g++ { } INCLUDEPATH += /usr/include/SDL - HARDWARE_PLATFORM = $$system(uname -a) + HARDWARE_PLATFORM = $$system(uname -p) contains( HARDWARE_PLATFORM, x86_64 ) { # 64-bit Linux LIBS += \ -- 2.22.0