On 3/10/06, <b class="gmail_sendername">Brendan White</b> <<a href="mailto:bmwt@caida.org">bmwt@caida.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well, in order to accelerate development, here's what i had to do (so<br>far):<br><br>1) bswap fix. There is some dvd code used in 3 diffrent places. You<br>need to add a case for apple byteswapping. The first instance of
<br>this is in libdvdnav<br><br>diff -puriN libdvdnav-orig/src/dvdread/bswap.h libdvdnav/src/dvdread/<br>bswap.h<br>--- libdvdnav-orig/src/dvdread/bswap.h 2006-01-26 23:26:43.000000000<br>+0100<br>+++ libdvdnav/src/dvdread/bswap.h 2006-01-26 23:27:
57.000000000<br>+0100<br>@@ -59,6 +59,12 @@<br>#define B2N_32(x) x = be32toh(x)<br>#define B2N_64(x) x = be64toh(x)<br><br>+#elif defined(__APPLE__)<br>+#include <libkern/OSByteOrder.h><br>+#define B2N_16(x) x = OSSwapBigToHostConstInt16(x)
<br>+#define B2N_32(x) x = OSSwapBigToHostConstInt32(x)<br>+#define B2N_64(x) x = OSSwapBigToHostConstInt64(x)<br>+<br>/* This is a slow but portable implementation, it has multiple<br>evaluation<br> * problems so beware.
<br> * Old FreeBSD's and Solaris don't have <byteswap.h> or any other such<br><br><br>2) patch exif. exif-utils.c line 83: remove the word "static".<br>(was: static ExifSShort. now: ExifSshort)<br><br>
3) another bswap patch. this time to libdvdread.<br><br>4) added options to ./configure (i added these right to osx-<br>packager.pl)<br><br>--enable-mac-accel<br>--arch=i686<br>--disable-mmx<br>--disable-distcc<br>--extra-cxxflags="-msse -msse2 -msse3"
<br><br>(that last extra-cxxflags fixes a lot. event tho it should be<br>skipping SIMD instructions, some of apple's linking code expects<br>these options. this fixes those m128 errors)<br><br>5) fix mythtv/libs/libavcodec/liba52/resample.c
<br> even tho mmx has been disabled, there are some silly assumptions in<br>this file. remove the ifdef that includes resample_mmx.c. Also<br>remove the ifdef ARCH_X86 stanzas.<br><br>6) 3rd bswap.h patch, this time in mythlibdvd
<br><br><br>anyway, that's how i got to where i am now. (compiles, but doesnt run)</blockquote><div><br><br>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:
<a href="http://www.mythtv.org/wiki/index.php/Myth_on_Mac_x86">http://www.mythtv.org/wiki/index.php/Myth_on_Mac_x86</a><br><br>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.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Mar 10, 2006, at 11:55 AM, Todd Ignasiak wrote:<br><br>><br>><br>> On 3/10/06, Brendan White <
<a href="mailto:bmwt@caida.org">bmwt@caida.org</a>> wrote: Ah, ppl who have<br>> been fighting the same intel mini battle :)<br>><br>> I actually got the ppc binary to run. You need to disable altivec<br>> color space handling. Once you do that, video should work. On my
<br>> setup (core duo) it's dropping frames- not too surprising given the<br>> conversion.<br>><br>> I've been trying to get a native version compiled (using svn<br>> versions), using the osx-packager script. So far i have an
<br>> executable, but it fails at runtime due to a missing symbol.<br>><br>> Inara:~/MythFrontend.app/Contents/MacOS bmwt$ ./mythfrontend<br>> dyld: Symbol not found: __ZTV24CaptionServiceDescriptor<br>> Referenced from:
<br>> /Users/bmwt/MythFrontend.app/Contents/MacOS/./../Frameworks/<br>> mythtv.framework/mythtv<br>> Expected in: flat namespace<br>><br>> so close :)<br>><br>><br>> At least you got it to compile.. I'm still trying to get past the
<br>> ffmpeg / mmx build issues.<br>><br>> I'm sure there are several others attempting to do this. Maybe we<br>> should set up a wiki page to share information..<br>><br>> _______________________________________________
<br>> mythtv-users mailing list<br>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>> <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br><br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div><br>