[mythtv] Compile Error on Mac OS X 10.6.2
john.sturgeon at gmail.com
Mon Mar 1 18:59:40 UTC 2010
On Mar 1, 2010, at 7:43 AM, John Sturgeon wrote:
> On Feb 28, 2010, at 9:46 PM, MythTV wrote:
>> On Feb 28, 2010, at 8:15 PM, John Sturgeon wrote:
>>> Yeah.. I googled around, and it seemed the consensus was to disable PIC.. unfortunately, I'm not sure which option on the packager would do that.
>>> John Sturgeon
>>> john.sturgeon at gmail.com
>>> On Feb 28, 2010, at 7:17 PM, Nigel Pearson wrote:
>>>>> That's what I have:
>>>>> 3.06 GHz Intel Core 2 Duo
>>>> OK. Sorry for assuming.
>>>> I suspect I only did a test build on a 10.6 Core Duo machine,
>>>> so I will try to make time tonight to build on a Core2.
>>>> Nigel Pearson, nigel at ind.tansu.com.au|Smart mice ... varmints|
>>>> Telstra Net. Eng., Sydney, Australia |used vector formulas. |
>>>> Office: 9202 3900 Fax: 9212 6348 | How'd you catch them?|
>>>> Mobile: 0408 664435 Home: 9792 6998 |Smart cheese. |
>> Here's a patch for osx-packager.pl that I used to compile a month ago.
>> It uses gcc 4.0 to build mythtv instead of the the default 4.2. You won't need to disable MMX.
>> It also forces 32 bit and fixes the config.pro problem when doing a make clean.
>> Haven't built in a while so I don't know if it still works.
> Thanks for the patch. I'm giving it a go right now, and I'll post back w/results.
> John <><
Unfortunately, it still craps out:
/usr/bin/g++-4.0 -c -pipe -fomit-frame-pointer -O3 -m32 -g -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -fno-strict-aliasing -arch i386 -DPIC -fPIC -DMMX -Di386 -DUSING_APPLEREMOTE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DRUNPREFIX=\"../Resources\" -DLIBDIRNAME=\"lib\" -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/Users/johnsturgeon/Documents/mythtv/.osx-packager/build/mkspecs/macx-g++ -I. -I/Users/johnsturgeon/Documents/mythtv/.osx-packager/build/include/QtCore -I/Users/johnsturgeon/Documents/mythtv/.osx-packager/build/include/QtNetwork -I/Users/johnsturgeon/Documents/mythtv/.osx-packager/build/include/QtGui -I/Users/johnsturgeon/Documents/mythtv/.osx-packager/build/include/QtSql -I/Users/johnsturgeon/Documents/mythtv/.osx-packager/build/include -I/Users/johnsturgeon/Documents/mythtv/.osx-packager/build/include -I/usr/include -I/Users/johnsturgeon/Documents/mythtv/.osx-packager/build -I. -o mythstorage.o mythstorage.cpp
swscale_template.c: In function ‘hScale_MMX2’:
swscale_template.c:2053: error: PIC register ‘%ebx’ clobbered in ‘asm’
swscale_template.c:2097: error: PIC register ‘%ebx’ clobbered in ‘asm’
swscale_template.c: In function ‘hyscale_fast_MMX2’:
swscale_template.c:2272: error: PIC register ‘%ebx’ clobbered in ‘asm’
swscale_template.c: In function ‘hcscale_fast_MMX2’:
swscale_template.c:2421: error: PIC register ‘%ebx’ clobbered in ‘asm’
make: *** [swscale.o] Error 1
make: *** [sub-libswscale-make_default] Error 2
More information about the mythtv-dev