After much effort I've managed to get the latest CVS version of MythTV to compile on my Pegasos II. I'm running Debian Sarge and used gcc 3.5.5 for the builds.
There is still a bit of work done to polish it all off, like getting mplayer installed. But generally completing the following should work.
$ mkdir mythtv
$ cd mythtv
$ cvs -d :pserver:
mythtv@cvs.mythtv.org:/var/lib/mythcvs login
Logging in to :pserver:
mythtv@cvs.mythtv.org:/var/lib/mythcvs
CVS password: mythtv
$ cvs -z3 -d :pserver:
mythtv@cvs.mythtv.org:/var/lib/mythcvs checkout mythtv
(as stated in the documentation, you can replace mythtv during cvs checkout with some of the other modules, ie mythgame, mythvideo etc, and follow the rest of the procedure)
Once you have the source code down, you will need to modify the settings.pro file for the build to succeed.
1) Open settings.pro and where the is a line that states the following
-march=pentiumpro -fomit-frame-pointer
replace this with
-mcpu=7450 -fomit-frame-pointer -mabi=altivec -maltivec
I've assumed a G4 here, so it is possible that gcc builds in altivec stuff anyhow
If you are running a pegI/II with a G3 you might want to spec a different cpu type.
2) Locate any source files that have the following
<Accelerate/Accelerate.h>
replace this with
<altivec.h>
Once you have made changes to the two files that currently have this header file included you can follow the build process documented on the mythtv website like so;
qmake mythtv.pro
make
make install
I also had to add the following to line to /etc/ld.so.conf (you may or may not have this line)
/usr/local/lib/
This should compile fine now, but there are a large number of dependencies on getting mythtv to fully function, such as
mysql, lirc, mame, mplayer etc....
What we really need now, is to get the mythtv devs to correct the oversight that there may actually be people that run linux on PPC. The source code seems to assume that all ppc developers are using macosx or darwin.
Failing that it should be straight forward to make a patch we can apply.
If anyone is able to assist in creating regular debian packages then that would be great also.
re
Francois