[mythtv-users] New Mini Core Duo, No Video
Todd Ignasiak
ignasiak at gmail.com
Fri Mar 10 20:23:18 UTC 2006
On 3/10/06, Brendan White <bmwt at caida.org> wrote:
>
> Well, in order to accelerate development, here's what i had to do (so
> far):
>
> 1) bswap fix. There is some dvd code used in 3 diffrent places. You
> need to add a case for apple byteswapping. The first instance of
> this is in libdvdnav
>
> diff -puriN libdvdnav-orig/src/dvdread/bswap.h libdvdnav/src/dvdread/
> bswap.h
> --- libdvdnav-orig/src/dvdread/bswap.h 2006-01-26 23:26:43.000000000
> +0100
> +++ libdvdnav/src/dvdread/bswap.h 2006-01-26 23:27:57.000000000
> +0100
> @@ -59,6 +59,12 @@
> #define B2N_32(x) x = be32toh(x)
> #define B2N_64(x) x = be64toh(x)
>
> +#elif defined(__APPLE__)
> +#include <libkern/OSByteOrder.h>
> +#define B2N_16(x) x = OSSwapBigToHostConstInt16(x)
> +#define B2N_32(x) x = OSSwapBigToHostConstInt32(x)
> +#define B2N_64(x) x = OSSwapBigToHostConstInt64(x)
> +
> /* This is a slow but portable implementation, it has multiple
> evaluation
> * problems so beware.
> * Old FreeBSD's and Solaris don't have <byteswap.h> or any other such
>
>
> 2) patch exif. exif-utils.c line 83: remove the word "static".
> (was: static ExifSShort. now: ExifSshort)
>
> 3) another bswap patch. this time to libdvdread.
>
> 4) added options to ./configure (i added these right to osx-
> packager.pl)
>
> --enable-mac-accel
> --arch=i686
> --disable-mmx
> --disable-distcc
> --extra-cxxflags="-msse -msse2 -msse3"
>
> (that last extra-cxxflags fixes a lot. event tho it should be
> skipping SIMD instructions, some of apple's linking code expects
> these options. this fixes those m128 errors)
>
> 5) fix mythtv/libs/libavcodec/liba52/resample.c
> even tho mmx has been disabled, there are some silly assumptions
> in
> this file. remove the ifdef that includes resample_mmx.c. Also
> remove the ifdef ARCH_X86 stanzas.
>
> 6) 3rd bswap.h patch, this time in mythlibdvd
>
>
> anyway, that's how i got to where i am now. (compiles, but doesnt run)
That's great info.. It parallels what I did, with a few minor
differences. I was actually just documenting the same thing on the MythTV
wiki: http://www.mythtv.org/wiki/index.php/Myth_on_Mac_x86
One thing on your configure flags: I would probably remove the
"--enable-mac-accel" option. That stuff is highly experimental, and I don't
think it is complete yet. It is a reverse engineering of Apple's MPEG2
acceleration APIs.
On Mar 10, 2006, at 11:55 AM, Todd Ignasiak wrote:
>
> >
> >
> > On 3/10/06, Brendan White <bmwt at caida.org> wrote: Ah, ppl who have
> > been fighting the same intel mini battle :)
> >
> > I actually got the ppc binary to run. You need to disable altivec
> > color space handling. Once you do that, video should work. On my
> > setup (core duo) it's dropping frames- not too surprising given the
> > conversion.
> >
> > I've been trying to get a native version compiled (using svn
> > versions), using the osx-packager script. So far i have an
> > executable, but it fails at runtime due to a missing symbol.
> >
> > Inara:~/MythFrontend.app/Contents/MacOS bmwt$ ./mythfrontend
> > dyld: Symbol not found: __ZTV24CaptionServiceDescriptor
> > Referenced from:
> > /Users/bmwt/MythFrontend.app/Contents/MacOS/./../Frameworks/
> > mythtv.framework/mythtv
> > Expected in: flat namespace
> >
> > so close :)
> >
> >
> > At least you got it to compile.. I'm still trying to get past the
> > ffmpeg / mmx build issues.
> >
> > I'm sure there are several others attempting to do this. Maybe we
> > should set up a wiki page to share information..
> >
> > _______________________________________________
> > mythtv-users mailing list
> > mythtv-users at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060310/11bb15f7/attachment.htm
More information about the mythtv-users
mailing list