[mythtv] Compiling trunk under OS X 10.6 (Snow Leopard)

George Nassas gnassas at mac.com
Tue Oct 20 01:22:09 UTC 2009


On 2009-10-18, at 7:04 PM, Nigel Pearson wrote:

> Qt 4.5.3 fails in the same way. Did you see this one?


Nope, I can get it to build all the way. Starting from scratch I  
reapplied my changes to osx-packager.pl and got it to go as far as  
myth's h264.c where it fails on an assembler problem, basically the  
same on as the last time I posted to this thread. I haven't written  
any assembler code in decades but I'll see what I can come up with.

You can pick up my changes at http://files.nassas.com/osx-packager.pl.  
There's the addition of the qt-4.5.3 bit (the -arch x86_64 is  
important) and an architecture option for libmad.

What hardware are you building on? I'm on a unibody macpro 17" with  
10.6.1 & xcode with the iPhone sdk not that it makes a difference.  
It's odd that the compile line you quoted targets 10.4 and i386 while  
mine looks like this:

g++ -c -I/Users/george/dev/mythosx/Snow/.osx-packager/build/include -I/ 
Users/george/dev/mythosx/Snow/.osx-packager/build/include/mysql -fno- 
exceptions -Os -fPIC -arch x86_64 -Xarch_x86_64 -mmacosx-version- 
min=10.5 -Wall -W -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE - 
DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS - 
DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT  
-DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD - 
DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE - 
D_LARGEFILE_SOURCE -I../../../mkspecs/macx-g++ -I. -I../../../include - 
I../../../include/QtCore -I../../../include/QtXml -o .obj/release- 
static/qbuffer.o ../../corelib/io/qbuffer.cpp

Oh, I had to comment this line out of myth's settings.pro:

macx:QMAKE_CXXFLAGS += -Wno-long-double

because snow leopard's gcc doesn't know about the option. I don't know  
enough about qmake to do an O/S version test.

- George


More information about the mythtv-dev mailing list