[mythtv-users] Mac gcc et al without XCode

Jean-Yves Avenard jyavenard at gmail.com
Sat Feb 25 23:44:45 UTC 2012


Hi

On 26 February 2012 07:13, Warpme <warpme at o2.pl> wrote:
> Building fails with following error:
>

> g++ -F/System/Library/Frameworks -L/usr/lib
> -L/Volumes/Data/Devel/mythtv-lion/.osx-packager/build/lib -m32 -arch x86_64
> -single_module -dynamiclib -compatibility_version     4.8 -current_version
>  4.8.0 -install_name

There is no way the new build script generate that compilation
configuration. Compilation is done in 32 bits mode always.
The other thing that is a giveaway is that a compilation command will
never start with g++ as it uses the absolute path to the g++ that is
attached to the SDKs in use (this is required to build against SDK
10.6 on Lion)

It seems to me that you aren't running the new osx-packager script at all

Delete the .osx-packager/src/qt-everywhere-opensource-src-4.8.0 folder
and start again

re-run osx-packager.pl with -verbose and post the top output before it
starts building

This is what it will typically looks like:

[osx-pkg] Building using master profile
[osx-pkg] DEVROOT =
/Applications/Custom/Development/Xcode.app/Contents/Developer
[osx-pkg] SDKVER = 10.6
[osx-pkg] SDKROOT =
/Applications/Custom/Development/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
[osx-pkg] CCBIN =
/Applications/Custom/Development/Xcode.app/Contents/Developer/usr/bin/gcc
[osx-pkg] CXXBIN =
/Applications/Custom/Development/Xcode.app/Contents/Developer/usr/bin/g++
[osx-pkg] CFLAGS = -mmacosx-version-min=10.4
-I/Users/jyavenard/Work/mythtv/.osx-packager/build/include
[osx-pkg] /usr/bin/hostinfo | grep 'processors$'
[osx-pkg] Using 9 jobs on 8 parallel CPUs
[osx-pkg] Forcing x86 build...
[osx-pkg] Including components: mythtv mythplugins packaging
[osx-pkg] Using previously downloaded ccache
[osx-pkg] Using previously unpacked ccache
[osx-pkg] Using previously configured ccache
[osx-pkg] Using previously built ccache
[osx-pkg] Using previously downloaded pkgconfig
[osx-pkg] Using previously unpacked pkgconfig
[osx-pkg] Using previously configured pkgconfig
[osx-pkg] Using previously built pkgconfig
[osx-pkg] Using previously downloaded dvdcss
[osx-pkg] Using previously unpacked dvdcss
[osx-pkg] Using previously configured dvdcss
[osx-pkg] Using previously built dvdcss
[osx-pkg] Using previously downloaded freetype
[osx-pkg] Using previously unpacked freetype
[osx-pkg] Using previously configured freetype
[osx-pkg] Using previously built freetype
[osx-pkg] Using previously downloaded lame
[osx-pkg] Using previously unpacked lame
[osx-pkg] Using previously configured lame
[osx-pkg] Using previously built lame
[osx-pkg] Using previously downloaded mysqlclient
[osx-pkg] Using previously unpacked mysqlclient
[osx-pkg] Using previously configured mysqlclient
[osx-pkg] Using previously built mysqlclient
[osx-pkg] Using previously downloaded qt
[osx-pkg] Unpacking qt
[osx-pkg] /usr/bin/tar -xzf
/Users/jyavenard/Work/mythtv/.osx-packager/src/qt-everywhere-opensource-src-4.8.0.tar.gz
[osx-pkg] Configuring qt
[osx-pkg] find . -name "*.pro" -exec sed -i -e
"s:/Developer/SDKs/:.*:g" {} \; ; sed -i -e "s:#elif
defined(Q_OS_SYMBIAN) && defined (QT_NO_DEBUG):#else:g"
src/corelib/kernel/qcoreapplication.cpp; sed -i -e "s:#if\( \!defined
(QT_NO_DEBUG) || defined (QT_MAC_FRAMEWORK_BUILD) || defined
(Q_OS_SYMBIAN)\):#if 1 //:g" src/corelib/kernel/qcoreapplication_p.h;
sed -i -e "s:^\(#import <QTKit/QTKit.h>\):#if defined(slots)\\
#undef slots\\
#endif\\
 \1:g" src/3rdparty/webkit/Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm
[osx-pkg] echo yes | ./configure -arch x86 -opensource -prefix
"/Users/jyavenard/Work/mythtv/.osx-packager/build" -release -fast
-no-accessibility -no-stl -sdk
/Applications/Custom/Development/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
-qt-sql-mysql -mysql_config
"/Users/jyavenard/Work/mythtv/.osx-packager/build/bin/mysql_config"
-no-sql-sqlite -no-sql-odbc -system-zlib -no-libtiff -no-libmng
-nomake examples -nomake demos -no-nis -no-cups -no-qdbus
-no-framework -no-multimedia -no-phonon -no-svg -no-javascript-jit
-no-scripttools
/Applications/Custom/Development/Xcode.app/Contents/Developer/usr/bin/g++
-c -o project.o -arch i386 -pipe -DQMAKE_OPENSOURCE_EDITION
-fconstant-cfstrings -isysroot
/Applications/Custom/Development/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
-g -I. -Igenerators -Igenerators/unix -Igenerators/win32
-Igenerators/mac -Igenerators/symbian -Igenerators/integrity
-I/Users/jyavenard/Work/mythtv/.osx-packager/src/qt-everywhere-opensource-src-4.8.0/include
-I/Users/jyavenard/Work/mythtv/.osx-packager/src/qt-everywhere-opensource-src-4.8.0/include/QtCore
-I/Users/jyavenard/Work/mythtv/.osx-packager/src/qt-everywhere-opensource-src-4.8.0/src/corelib/global
-I/Users/jyavenard/Work/mythtv/.osx-packager/src/qt-everywhere-opensource-src-4.8.0/src/corelib/xml
-I/Users/jyavenard/Work/mythtv/.osx-packager/src/qt-everywhere-opensource-src-4.8.0/tools/shared
-DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED
-DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES
-DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS
-I/Users/jyavenard/Work/mythtv/.osx-packager/src/qt-everywhere-opensource-src-4.8.0/mkspecs/macx-g++
-DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT
-DQT_NO_DEPRECATED  project.cpp


Notice the -arch x86 in the configure line... That forces Qt to be
built in 32 bits mode
And notice the /Applications/Custom/Development/Xcode.app/Contents/Developer/usr/bin/g++
With XCode 4.2, it would be /Developer/usr/bin/g++ not g++


More information about the mythtv-users mailing list