[PATCHES] PPC (PowerPC) Linux support for powerpc-linux and powerpc64-linux targets

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
cedric Offline
Junior Member
Posts: 28
Joined: May 2008
Reputation: 0
Lightbulb  New patch: ffmpeg libraries
Post: #16
Here is a new patch
http://www.4shared.com/file/53767116/d6d...egtar.html

Description:
Adding a build script for ffmpeg libraries, and copying the *.so files in xbmc.

Modified files:
XBMC/xbmc/cores/ffmpeg/DllAvCodec.h
XBMC/xbmc/cores/ffmpeg/DllAvFormat.h
XBMC/xbmc/cores/ffmpeg/DllSwScale.h
XBMC/xbmc/cores/ffmpeg/DllPostProc.h

Added files:
XBMC/system/players/dvdplayer/avcodec-51-powerpc-linux.so
XBMC/system/players/dvdplayer/avformat-51-powerpc-linux.so
XBMC/system/players/dvdplayer/avutil-51-powerpc-linux.so
XBMC/system/players/dvdplayer/swscale-51-powerpc-linux.so
XBMC/system/players/dvdplayer/postproc-51-powerpc-linux.so
sources/dvdplayer/ffmpeg/build_powerpc-linux_xbmc.sh

Added directory:
sources/dvdplayer/ffmpeg/faac : this is the simple extract of faac-1.26.tar.gz, which is included in avcodec-51-powerpc-linux.so

Video playback is now possible with lots of video formats, but color space is not yet fixed (wrong colors, I have a working patch but not enough clean to commit), and ALSADirectSound.cpp should be modified to have correct sound (I will provide a patch later).

-Cedric
find quote
malloc Offline
Team-XBMC Developer
Posts: 1,062
Joined: May 2004
Reputation: 0
Post: #17
Do we need faac? Do we do encoding?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
cedric Offline
Junior Member
Posts: 28
Joined: May 2008
Reputation: 0
Post: #18
araldor Wrote:I'm afraid not. If you want to run a 64-bit XBMC, then all of the libraries it links to need to be 64-bit versions.

It's likely that we could build ppc64 versions of all of the XBMC libraries in the sources/. However, many of the other libaries that XBMC relies on don't have ppc64 versions in debian or ubuntu (SDL, libfreetype, liblzo, etc.). I don't want to maintain ppc64 versions of all of those libraries and their dependencies.

I'd rather focus on powerpc32 at the moment.

Okidoki, good idea, the porting for the powerpc32 will be faster this way Smile

- Cedric
find quote
cedric Offline
Junior Member
Posts: 28
Joined: May 2008
Reputation: 0
Post: #19
malloc Wrote:Do we need faac? Do we do encoding?

No idea Oo libfaac is used with i486-linux target
I think you can rip audio cd with xbmc
find quote
malloc Offline
Team-XBMC Developer
Posts: 1,062
Joined: May 2004
Reputation: 0
Post: #20
Not a good reason to throw in a new library. Let's figure this out. What is the error message you without it? Does the --enable/disable-altivec flag in configuring ffmpeg change this error?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
cedric Offline
Junior Member
Posts: 28
Joined: May 2008
Reputation: 0
Post: #21
malloc Wrote:Not a good reason to throw in a new library. Let's figure this out. What is the error message you without it? Does the --enable/disable-altivec flag in configuring ffmpeg change this error?

It is not a new library, it was already linked inside one of the ffmpeg libraries inside build_xmbc.sh.
The only difference is that libfaac was taken from /usr/lib/libfaac.a or something like this.

I activated the flag altivec only for performance purposes, I tried with and without and I have better FPS with. I imagine altivec is not possible on intel computers ?
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Post: #22
cedric Wrote:I imagine altivec is not possible on intel computers ?
You are correct. AltiVec SIMD is PowerPC only, (Intel and AMD x86 features MMX and SSE instead)

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
malloc Offline
Team-XBMC Developer
Posts: 1,062
Joined: May 2004
Reputation: 0
Post: #23
Is there no libfaac-dev for Ubuntu PowerPC? That's the package that I see installed /usr/lib/libfaac.a.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
cedric Offline
Junior Member
Posts: 28
Joined: May 2008
Reputation: 0
Post: #24
malloc Wrote:Is there no libfaac-dev for Ubuntu PowerPC? That's the package that I see installed /usr/lib/libfaac.a.

You right, I just installed libfaac-dev, here a new patch without the faac directory:
http://www.4shared.com/file/53950758/b1f...actar.html

-Cedric
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Post: #25
a tip is to run Valgrind before submitting any patches, (it supports both PPC32 and PPC64), see http://www.valgrind.org

Wink

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
monkeyman Offline
Team-XBMC Developer
Posts: 189
Joined: Jul 2007
Reputation: 0
Location: Kansas
Post: #26
I don't know how helpful that would be right now... Things are a little noisy with valgrind right now. When I get some more time, I'll try to resolve some more valgrind issues.

Until more errors are cleaned up, its utility will probably be limited.

- Kyle Hill

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #27
as you may or may not have noticed i have started the work of building libs as you build xbmc to avoid having to keep hundreds of binaries in the svn. any further pap related patches should take it into consideration (once i get back from vacation i'll do the change for a lot of the other libs as well).

cheers
find quote
cedric Offline
Junior Member
Posts: 28
Joined: May 2008
Reputation: 0
Post: #28
spiff Wrote:as you may or may not have noticed i have started the work of building libs as you build xbmc to avoid having to keep hundreds of binaries in the svn. any further pap related patches should take it into consideration (once i get back from vacation i'll do the change for a lot of the other libs as well).

cheers

Not sure I have well understood, what are the recommendations concerning libraries ? If the libraries are not commited on svn, where should we put them ? Is it planned to have a common build script for all libraries present in sources/ ?

-Cedric
find quote
malloc Offline
Team-XBMC Developer
Posts: 1,062
Joined: May 2004
Reputation: 0
Post: #29
He means that the the libraries you find in sources are being moved into XBMC. Then instead of storing binary versions of libraries in XBMC/system/players/dvdplayer and such we will just build them at the same time as we build xbmc.bin. So in essence there will be a common build script.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Question  Big-Endian, Little-Endian, and Mixed-Endian?
Post: #30
@araldor and cedric, any updates on patches for any of the endian issues?
Have you looked at tools like PortAsm/86, Relogix, or something similar? Confused
http://www.microapl.co.uk/Porting/PortAsm86.html

Big Grin

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2008-07-18 16:15 by Gamester17.)
find quote
Post Reply