[mythtv] [mythtv-commits] Ticket #7705: OSX 10.6 Compilation Fixes

Nigel Pearson nigel at ind.tansu.com.au
Thu Jan 21 06:09:29 UTC 2010


On 11/01/2010, at 2:07 AM, George Nassas wrote:

> Nigel could you add this statement so we don't have to manually tweak the dependancies list:
> 
> if (`system_profiler SPSoftwareDataType | grep "System.Version.*10[.]6[.]"`) {
>    print "[osx-pkg] Snow Leopard detected - switching to Qt 4.6\n";
>    for (@{ $depend_order{'mythtv'} }) { s/^qt.*/qt-4.6/ }
> }

I'd prefer not to, because it only hacks half of the changes that are needed:

% diff .osx-packager/src/myth-svn/packaging/OSX/build/osx-packager.pl osx-packager.pl
68,69c68,69
<         #'qt-4.6',  # Needed for Mac OS X 10.6
<         'qt-4.4',
---
>         'qt-4.6',  # Needed for Mac OS X 10.6
>         #'qt-4.4',
570c570
<         '--enable-libfaad',
---
>         #'--enable-libfaad',
577,578c577,578
<         #'--disable-mmx', '--enable-disable-mmx-for-debugging',
<         #'--disable-gpl', # plus comment out libfaad above
---
>         '--disable-mmx', '--enable-disable-mmx-for-debugging',
>         '--disable-gpl', # plus comment out libfaad above

%

and that won't be needed when I change Qt 4.6 to the default!
(soon, just gotta do more 10.4 testing)



> I still have to add -arch x86_64 to get Qt to build on my 64 bit machine but I don't see how to detect that

/usr/sbin/sysctl -n hw.cpu64bit_capable


I should add a m64 and ppc option. For OS X 64bit porting, you could default to m64 if that sysctl returns 1?



> Also, one more thing, could we get rid of the leading period in the .osx-packager subdir? Having it hidden makes it hard to open files from some editors.

I actually like having it hidden, but have usually created a symlink for faster access to the mythtv src tree. Today's versions now create ./src symlink.


--
Nigel Pearson, nigel at ind.tansu.com.au|"People say I'm strange.
Telstra Net. Eng., Sydney, Australia | Does it make me a stranger?
Office: 9202 3900    Fax:  9212 6348 | My best friend was born...
Mobile: 0408 664435  Home: 9792 6998 |     in a manger"   -DC Talk



More information about the mythtv-dev mailing list