There seems to be very little information available for building MythTV on OSX 10.6, and the new version does not work right out of the box. If one finds it, it only works with MMX disabled, which then means HD stuttering. I hence had to go fairly deep to get it to compile with MMX. Here is the patch I have now to build it on 10.6.3 using osx-packager.pl (note that you first have to comment out --enable-libfaad in osx-packager.pl):
Index: libs/libmythtv/decoderbase.h
===================================================================
--- libs/libmythtv/decoderbase.h (revision 24354)
+++ libs/libmythtv/decoderbase.h (working copy)
@@ -17,7 +17,7 @@
class TeletextViewer;
class NuppelVideoPlayer;
-const int kDecoderProbeBufferSize = 1024 * 1024;
+const int kDecoderProbeBufferSize = 65536;
/// Track types
typedef enum TrackTypes
Index: libs/libswscale/libswscale.pro
===================================================================
--- libs/libswscale/libswscale.pro (revision 24354)
+++ libs/libswscale/libswscale.pro (working copy)
@@ -66,6 +66,8 @@
macx {
QMAKE_LFLAGS_SHLIB += -read_only_relocs warning
+ contains( HAVE_MMX, yes ) : QMAKE_CFLAGS_RELEASE += -mdynamic-no-pic
}
include ( ../libs-targetfix.pro )
Index: libs/libavcodec/libavcodec.pro
===================================================================
--- libs/libavcodec/libavcodec.pro (revision 24354)
+++ libs/libavcodec/libavcodec.pro (working copy)
@@ -678,6 +678,8 @@
macx {
QMAKE_LFLAGS_SHLIB += -read_only_relocs warning
+ contains( HAVE_MMX, yes ) : QMAKE_CFLAGS_RELEASE += -mdynamic-no-pic
}
# TODO: generate hardcoded tables
Index: filters/yadif/yadif.pro
===================================================================
--- filters/yadif/yadif.pro (revision 24354)
+++ filters/yadif/yadif.pro (working copy)
@@ -12,3 +12,8 @@
}
macx:debug:DEFINES -= MMX
+
+macx {
+ CC = gcc-4.0
+ CXX = g++-4.0
+}
This also fixes LiveTV which is currently broken in trunk for OSX.