Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Compiling trunk under OS X 10.6 (Snow Leopard)

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


stephen.hocking at gmail

Aug 28, 2009, 10:35 PM

Post #1 of 16 (4475 views)
Permalink
Compiling trunk under OS X 10.6 (Snow Leopard)

Hi all,

I gave this a try today after upgrading, including Xcode. I blew away
the build directory to start from scratch. Had to manually fetch the
mysql code, and then found that the Qt libraries don't support this
version of OS/X when compiling. It's been out for a day - I can't
understand why it's not fixed 8^). The frontend built under 10.5 runs
just fine.


Stephen
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


gnassas at mac

Aug 29, 2009, 5:25 PM

Post #2 of 16 (4330 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

On 2009-08-29, at 1:35 AM, Stephen Hocking wrote:

> Had to manually fetch the
> mysql code, and then found that the Qt libraries don't support this
> version of OS/X when compiling.


The earliest Qt that tries to support snow leopard seems to be 4.5.1.
I patched osx-packager to pull down 4.5.2 (copy the 4.4 stuff & add an
-opensource option to the configure) which works OK until it gets to
libQtSql where it dies on unresolved symbols. It looks like the mysql
client library is targeting x86_64 but the Qt only supports i386.
Passing i386 to mysql's configure doesn't help. Or, I'm doing it wrong.

I'll poke around until I lose interest which will probably happen
soon. Also, I'm not sure how well myth gets along with Qt 4.5.

- George
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


gnassas at mac

Aug 29, 2009, 8:48 PM

Post #3 of 16 (4325 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

On 2009-08-29, at 8:25 PM, George Nassas wrote:

> It looks like the mysql client library is targeting x86_64 but the
> Qt only supports i386. Passing i386 to mysql's configure doesn't
> help. Or, I'm doing it wrong.


My mistake. It was picking up old Qt libraries I had in /Developer/
Tools. Removing those and giving a gratuitous -platform macx-g++-64 to
configure got Qt 4.5 to build for me.

Next up was libmad which failed because its configure doesn't check
for 64 bit environments. I added a --build x86_64 and it built.

On to myth itself. Snow Leopard defaults to gcc 4.2 which doesn't know
about -Wno-long-double so I had to comment that out of settings.pro.
Now it's crapping out in h264.c with a bunch of "suffix or operands
invalid for `add'" errors on lines 5431, 5443, 7265 & 7277. There were
also a ton of assembler warnings in libswscale but I looked the other
way.

Nigel, are you interested in getting the build working on Snow Leopard
at this time? There's a #warning in qglobal.h that causes "Support for
this version of Mac OS X is still preliminary" to show on every single
gcc run. Maybe they're trying to tell us something.

- George
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


nigel at ind

Aug 30, 2009, 3:33 PM

Post #4 of 16 (4268 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

> Nigel, are you interested in getting the
> build working on Snow Leopard at this time?

Only slightly. Other problems are more important.


--
Nigel Pearson, nigel [at] ind| Citizens, never fear! |
Telstra Net. Eng., Sydney, Australia |Crazy do-good freaks are here,|
Office: 9202 3900 Fax: 9261 3912 |until they run out of steam...|
Mobile: 0408 664435 Home: 9792 6998 | The New Justice Team! |




_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


nikos.f at gmail

Aug 30, 2009, 6:49 PM

Post #5 of 16 (4262 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

On Sat, Aug 29, 2009 at 12:35 AM, Stephen
Hocking<stephen.hocking [at] gmail> wrote:
> Hi all,
>
> I gave this a try today after upgrading, including Xcode. I blew away
> the build directory to start from scratch.

Stupid question from me ... do 0.21-fixes / trunk binaries compiled
under 10.5.x work under 10.6, or is it just the compiling that's a
problem under 10.6?

Thanks - been clutching my copy of 10.6 since Friday, and reluctant to
upgrade if running myth under OSX is going to be a problem.
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


gnassas at mac

Aug 30, 2009, 6:57 PM

Post #6 of 16 (4272 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

On 2009-08-30, at 9:49 PM, Nick F wrote:

> On Sat, Aug 29, 2009 at 12:35 AM, Stephen
> Hocking<stephen.hocking [at] gmail> wrote:
>> Hi all,
>
> Stupid question from me ... do 0.21-fixes / trunk binaries compiled
> under 10.5.x work under 10.6, or is it just the compiling that's a
> problem under 10.6?

Stephen mentioned that a 10.5-built frontend runs just fine on 10.6.

It was only 3 lines below your quote!! :)

- George


nikos.f at gmail

Aug 30, 2009, 7:02 PM

Post #7 of 16 (4263 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

On Sun, Aug 30, 2009 at 8:57 PM, George Nassas<gnassas [at] mac> wrote:
> On 2009-08-30, at 9:49 PM, Nick F wrote:
>
> On Sat, Aug 29, 2009 at 12:35 AM, Stephen
> Hocking<stephen.hocking [at] gmail> wrote:
>
> Hi all,
>
> Stupid question from me ... do 0.21-fixes / trunk binaries compiled
> under 10.5.x work under 10.6, or is it just the compiling that's a
> problem under 10.6?
>
> Stephen mentioned that a 10.5-built frontend runs just fine on 10.6.
> It was only 3 lines below your quote!! :)
> - George

Thanks George - mea culpa!. That's what happends when you try to
quickly catch up after being away all weekend and trying to decide
whether to pop that Snow Leopard DVD in quickly....
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


gnassas at mac

Aug 30, 2009, 7:09 PM

Post #8 of 16 (4272 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

On 2009-08-30, at 10:02 PM, Nick F wrote:

> and trying to decide
> whether to pop that Snow Leopard DVD in quickly....

I jumped in without even my usual carbon copy backup to an external
drive and everything went fine. Only hitch so far is firefox has been
crashing anytime I go near its Window menu. It seems to be related to
one of the add-ons so I've been avoiding that menu.

- George
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


jyavenard at gmail

Aug 30, 2009, 7:10 PM

Post #9 of 16 (4265 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

Hi

2009/8/31 George Nassas <gnassas [at] mac>:
>
> Stephen mentioned that a 10.5-built frontend runs just fine on 10.6.
> It was only 3 lines below your quote!! :)

Not here...

When I start mythfrontend, 2s later it closes : no message nothing...
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


gnassas at mac

Aug 30, 2009, 8:14 PM

Post #10 of 16 (4280 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

On 2009-08-30, at 10:10 PM, Jean-Yves Avenard wrote:

> When I start mythfrontend, 2s later it closes : no message nothing...

I just pulled down a 21591 build from the sniderpad and it works OK
for me. 1080 video is jerky but 720 and lower plays great. In the
menus it's dropping network connections like crazy but I don't know if
that's myth or my network. I get a ton of "MythSocket(19a4e3c0:36):
readStringList: Error, timed out after 30000 ms." lines.

What do you see in /var/log/system.log? Or, better yet, fire up the
console app and watch the system and console messages fly by as you
run the frontend (those two files receive what usually goes to /var/
log/mythtv on Linux).

- George
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


nigel at ind

Sep 29, 2009, 8:16 PM

Post #11 of 16 (3493 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

On 31/08/2009, at 12:10 PM, Jean-Yves Avenard wrote:

> Hi
>
> 2009/8/31 George Nassas <gnassas [at] mac>:
>>
>> Stephen mentioned that a 10.5-built frontend runs just fine on 10.6.
>> It was only 3 lines below your quote!! :)
>
> Not here...
>
> When I start mythfrontend, 2s later it closes : no message nothing...


I assume you looked in Console.app for output?

(or, tried MythFrontend.app/Contents/MacOS/MythFrontend -v most,extra)


--
Nigel Pearson, nigel [at] ind|The weak point of |
Telstra Net. Eng., Sydney, Australia | the modern car is |
Office: 9202 3900 Fax: 9261 3912 | the squidgy organic |
Mobile: 0408 664435 Home: 9792 6998 | bit behind the wheel.|

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


nigel at ind

Oct 18, 2009, 4:04 PM

Post #12 of 16 (3133 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

On 30/08/2009, at 10:25 AM, George Nassas wrote:

> The earliest Qt that tries to support snow leopard seems to be
> 4.5.1. I patched osx-packager to pull down 4.5.2 (copy the 4.4 stuff
> & add an -opensource option to the configure) which works OK until
> it gets to libQtSql where it dies on unresolved symbols.

Sadly, I don't get that far with Qt4.5.2 on 10.6.1:

g++ -c -I/Volumes/Backups/MythTV/.osx-packager/build/include -I/
Volumes/Backups/MythTV/.osx-packager/build/include/mysql -fno-
exceptions -Xarch_i386 -mmacosx-version-min=10.4 -Os -fPIC -arch i386 -
Wall -W -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_FROM_ASCII -
DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -
DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -
DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -
DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE -
D_LARGEFILE_SOURCE -I../../../mkspecs/macx-g++ -I. -I../../../include -
I../../../include/QtCore -I../../../include/QtXml -o .obj/release-
static/qbuffer.o ../../corelib/io/qbuffer.cpp
In file included from ../../../include/QtCore/qvariant.h:1,
from ../../corelib/io/qabstractfileengine.cpp:46:
../../../include/QtCore/../../src/corelib/kernel/qvariant.h:601:
error: 'QVariantHash' is not a member of 'QMetaType'
../../../include/QtCore/../../src/corelib/kernel/qvariant.h: In static
member function 'static int QMetaTypeId2<QHash<QString, QVariant>
>::qt_metatype_id()':
../../../include/QtCore/../../src/corelib/kernel/qvariant.h:601:
error: 'QVariantHash' is not a member of 'QMetaType'
make[1]: *** [.obj/release-static/qabstractfileengine.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [sub-tools-bootstrap-install_subtargets-ordered] Error 2
[osx-pkg] Failed system call: " /usr/bin/make -j3 sub-plugins-
install_subtargets-ordered install_qmake install_mkspecs " with error
code 2
Died at ./osx-packager.pl line 844.



Qt 4.5.3 fails in the same way. Did you see this one?


--
Nigel Pearson, nigel [at] ind| "Let's see how Spike is going"
Telstra Net. Eng., Sydney, Australia | ...
Office: 9202 3900 Fax: 9261 3912 |"I'd like to keep Spike as my
pet."
Mobile: 0408 664435 Home: 9792 6998 | Illyria - Angel




_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


gnassas at mac

Oct 19, 2009, 6:22 PM

Post #13 of 16 (3082 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

On 2009-10-18, at 7:04 PM, Nigel Pearson wrote:

> Qt 4.5.3 fails in the same way. Did you see this one?


Nope, I can get it to build all the way. Starting from scratch I
reapplied my changes to osx-packager.pl and got it to go as far as
myth's h264.c where it fails on an assembler problem, basically the
same on as the last time I posted to this thread. I haven't written
any assembler code in decades but I'll see what I can come up with.

You can pick up my changes at http://files.nassas.com/osx-packager.pl.
There's the addition of the qt-4.5.3 bit (the -arch x86_64 is
important) and an architecture option for libmad.

What hardware are you building on? I'm on a unibody macpro 17" with
10.6.1 & xcode with the iPhone sdk not that it makes a difference.
It's odd that the compile line you quoted targets 10.4 and i386 while
mine looks like this:

g++ -c -I/Users/george/dev/mythosx/Snow/.osx-packager/build/include -I/
Users/george/dev/mythosx/Snow/.osx-packager/build/include/mysql -fno-
exceptions -Os -fPIC -arch x86_64 -Xarch_x86_64 -mmacosx-version-
min=10.5 -Wall -W -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -
DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -
DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT
-DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -
DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE -
D_LARGEFILE_SOURCE -I../../../mkspecs/macx-g++ -I. -I../../../include -
I../../../include/QtCore -I../../../include/QtXml -o .obj/release-
static/qbuffer.o ../../corelib/io/qbuffer.cpp

Oh, I had to comment this line out of myth's settings.pro:

macx:QMAKE_CXXFLAGS += -Wno-long-double

because snow leopard's gcc doesn't know about the option. I don't know
enough about qmake to do an O/S version test.

- George
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


nigel at ind

Oct 19, 2009, 7:05 PM

Post #14 of 16 (3083 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

> You can pick up my changes at http://files.nassas.com/osx-packager.pl

HTTP 500 Internal Server Error


> There's the addition of the qt-4.5.3 bit (the -arch x86_64 is
> important)

I thought 64 bit was now the GCC default?


> What hardware are you building on?

Early MacBook (Core Duo, not Core2 Duo), so NOT 64 bit.


...
> Oh, I had to comment this line out of myth's settings.pro:
>
> macx:QMAKE_CXXFLAGS += -Wno-long-double
>
> because snow leopard's gcc doesn't know about the option. I don't
> know enough about qmake to do an O/S version test.

Ideally, it would be a GCC version test in MythTV's configure,
but I'm not sure about the need for that flag anyway.

--
Nigel Pearson, nigel [at] ind|"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

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


gnassas at mac

Oct 20, 2009, 12:39 PM

Post #15 of 16 (3062 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

On 2009-10-19, at 10:05 PM, Nigel Pearson wrote:

> HTTP 500 Internal Server Error

Sorry, I guess it was trying to run the perl script instead of serving
it up. Makes sense I suppose. I changed it to http://files.nassas.com/osx-packager.txt
but I guess it won't be useful since we have 32/64 bit differences.

> I thought 64 bit was now the GCC default?

It looks like configure defaults to x86 (i386) so I have to override
it on my machine to be compatible with the 64 bit mysql libs.

> Early MacBook (Core Duo, not Core2 Duo), so NOT 64 bit.

Hmph. That explains why your results are different from mine but not
why your build is failing. IIRC the last time I tried building myth I
forced mysql to build i386 and Qt was able to build to the end so it
can happen. Is it possible you have old Qt libraries in /Developer or
somewhere? That bit me once.

I don't know if I'll ever come up with anything useful on that
assembler failure but in general would you like to make the packager
build things universal or move to specific settings for 64 bit snow
leopard?

- George

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


nigel at ind

Oct 26, 2009, 11:37 PM

Post #16 of 16 (2809 views)
Permalink
Re: Compiling trunk under OS X 10.6 (Snow Leopard) [In reply to]

> That explains why your results are different from mine but not why
> your build is failing.

I purged .osx-packager/build/include more thoroughly,
and got past Qt. Now up to the libavcodec build errors.
This change (basically reverting [20843], adding back
some earlier MMX )
may get you further:

Index: libs/libavcodec/libavcodec.pro
===================================================================
--- libs/libavcodec/libavcodec.pro (revision 22605)
+++ libs/libavcodec/libavcodec.pro (working copy)
@@ -665,6 +665,9 @@

macx {
QMAKE_LFLAGS_SHLIB += -read_only_relocs warning
+
+ # Prevent GCC running out of registers in libavcodec/*/*_mmx.c
+ contains( HAVE_MMX, yes ) : QMAKE_CFLAGS += -mdynamic-no-pic
}


...
> I don't know if I'll ever come up with anything useful on that
> assembler failure but in general would you like to make the packager
> build things universal or move to specific settings for 64 bit snow
> leopard?

Universal, but if that isn't possible, new arguments
to osx-packager to specify ppc/32bit/64bit.

Ideally, configure would test all of this for us, but it is
probably a bit hard when Qt might never support both 32 & 64bit
builds from the one "install" of its libraries and headers.


--
Nigel Pearson, nigel [at] ind|"Gentlemen! |
Telstra Net. Eng., Sydney, Australia | You can't fight in here-|
Office: 9202 3900 Fax: 9212 6348 | this is the war room!"|
Mobile: 0408 664435 Home: 9792 6998 | Dr Strangelove |

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.