Buildning for PS3.

Added by Björn Ericsson over 11 years ago

Hi!

I'm having problems setting up a devevelopment environment.

1. I downloaded the Virtual Machine from evilsperm with PSL1ght.
2. Installed the packages described here: https://www.lonelycoder.com/hts/showtime_faq.html
3. Fetched the source as described here: https://www.lonelycoder.com/hts/showtime_download.html
4. Made a symbolic link from dev/ps3 to dev/ps3/host since the scripts point to that non existing place.

Still, I get
@Configuring FFmpeg...
/home/evilsperm/dev/ps3/host/ppu/bin/ppu-gcc is unable to create an executable file.
C compiler test failed.
@
when I try to run suppprt/ps3setup.

What am I doing wrong?

Is there a fully configured virtual machine available for download?

/BE


Replies (37)

RE: Buildning for PS3. - Added by Andreas Smas over 11 years ago

Björn Ericsson wrote:

Hi!

I'm having problems setting up a devevelopment environment.

1. I downloaded the Virtual Machine from evilsperm with PSL1ght.

Never heard of it.

2. Installed the packages described here: https://www.lonelycoder.com/hts/showtime_faq.html
3. Fetched the source as described here: https://www.lonelycoder.com/hts/showtime_download.html
4. Made a symbolic link from dev/ps3 to dev/ps3/host since the scripts point to that non existing place.

Still, I get
@Configuring FFmpeg...
/home/evilsperm/dev/ps3/host/ppu/bin/ppu-gcc is unable to create an executable file.
C compiler test failed.
@
when I try to run suppprt/ps3setup.

What am I doing wrong?

No idea... it seems like ffmpegs configure script tries to build an executable for the host system.

Is there a fully configured virtual machine available for download?

No, I develop it on my ubuntu workstation.

/BE

RE: Buildning for PS3. - Added by Björn Ericsson over 11 years ago

This is the same torrent as I have downloaded (Only I have the original for VirtualBox): http://thepiratebay.org/torrent/6084530/_PSL1GHT_PS3_SDK_Ubuntu_10.10_evilsperm_for_Vmware (Its 16x105MB)
It would be great if you could hava a look at it and maybe fix it. Then others would have a really easy way to start develop for showtime.

Is there anything I might have missed to install?

/BE

RE: Buildning for PS3. - Added by Daniel Karlsson over 11 years ago

Maybe I have done something wrong with my own compiled PSL1GHT.

I have got the same problem but found out in the config.log that it tries to find 'nostrictansi.h' in /home/piggen/showtime/support/support/nostrictansi.h instead of just support. So when I remove the 'support/' part under 'extra-cflags' in the ps3setup file I can compile it.

Instead I get errors when I try to compile showtime. It's like it can't find the files from ffmpeg.

[email protected]:~/showtime$ make -j8
CC build.ps3/ext/audio/sid.o
CC build.ps3/ext/dvd/dvdcss/css.o
CC build.ps3/ext/dvd/dvdcss/device.o
CC build.ps3/ext/dvd/dvdcss/error.o
CC build.ps3/ext/dvd/dvdcss/ioctl.o
CC build.ps3/ext/dvd/dvdcss/libdvdcss.o
CC build.ps3/ext/dvd/dvdnav/dvdnav.o
CC build.ps3/ext/dvd/dvdnav/highlight.o
In file included from /home/piggen/showtime/ext/audio/sid.c:1201:0:
/home/piggen/showtime/src/media.h:23:34: fatal error: libavformat/avformat.h: No such file or directory
compilation terminated.
make: * [build.ps3/ext/audio/sid.o] Fel 1
make: *
Inväntar oavslutade jobb...

I have tried to copy some of ffmpeg's files and it works a little bit but ends with error further down.

RE: Buildning for PS3. - Added by open ps3 over 11 years ago

/home/kilian/Desktop/showtime/src/video/ps3_vdec.c:19:24: fatal error: codec/vdec.h: No such file or directory
compilation terminated.
make: * [build.ps3/src/video/ps3_vdec.o] Fehler 1
make: *
Warte auf noch nicht beendete Prozesse...

RE: Buildning for PS3. - Added by Andreas Smas over 11 years ago

You need a newer psl1ght ...

Use this one: https://github.com/andoma/PSL1GHT

RE: Buildning for PS3. - Added by Pedro Igreja over 11 years ago

i'm getting the same error on configuring ffmep

ppu-gcc is unable to create an executable file

did you resolve this?

RE: Buildning for PS3. - Added by Rural Hunter over 11 years ago

I also got the error when configuring ffmpeg and I checked the detail is:
host/ppu/ppu/lib/lv2-psl1ght.o: No such file or directory.

With the latest ps3toolchain build, I can only see these files in the dir:
$ ls host/ppu/ppu/lib
ldscripts libg.a libm.a libobjc.a libssp.a libssp_nonshared.a libstdc++.a libstdc++.la libsupc++.la lv2-crt0.o lv2-crtn.o lv2-sprx.o
libc.a libiberty.a libnosys.a libobjc.la libssp.la libssp_nonshared.la libstdc++.a-gdb.py libsupc++.a libsysbase.a lv2-crti.o lv2.ld

RE: Buildning for PS3. - Added by Pedro Igreja over 11 years ago

i've noticed that the psl1ght file structure that Andoma uses is different from the latest one, the latest psl1ght is distributed with the ps3toolchain itself. i installed both and managed to get all files needed to build ffmpeg....but still it errors later!

RE: Buildning for PS3. - Added by Pedro Igreja over 11 years ago

i've managed to configure ffmpeg, but it was a mess, merging files from on psl1ght build to another and changing path's from showtime ps3setup. But now i'm getting (make):

CC build.ps3/ext/librtmp/hashswf.o
/home/pitas/dev/showtime/ext/librtmp/hashswf.c:69:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [build.ps3/ext/librtmp/hashswf.o] Error 1

zlib.h: No such file or directory???????

later on another one with zlib.h

/home/pitas/dev/showtime/src/fileaccess/fa_zlib.c:19:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [build.ps3/src/fileaccess/fa_zlib.o] Error 1

andoma any hint's?

RE: Buildning for PS3. - Added by Andreas Smas over 11 years ago

Yeah... Don't try this at home :-)

There are a lot of changes in psl1ght that needs to be fixed in Showtime in particular when you arrive at the UI parts.
I'm gonna fix this within the next week hopefully. (I've a lot of other things to do)

RE: Buildning for PS3. - Added by Rural Hunter over 11 years ago

Andreas Öman wrote:

Yeah... Don't try this at home :-)

There are a lot of changes in psl1ght that needs to be fixed in Showtime in particular when you arrive at the UI parts.
I'm gonna fix this within the next week hopefully. (I've a lot of other things to do)

Great! thank you!

RE: Buildning for PS3. - Added by Pedro Igreja over 11 years ago

Andreas Öman wrote:

Yeah... Don't try this at home :-)

There are a lot of changes in psl1ght that needs to be fixed in Showtime in particular when you arrive at the UI parts.
I'm gonna fix this within the next week hopefully. (I've a lot of other things to do)

Thanks....guess we'll be waiting then!

regards.

RE: Buildning for PS3. - Added by Björn Ericsson over 11 years ago

Andreas, would it be too much effort for you to install a working environment in a virtual machine, while you´re at it?
That would greatly help the rest of us who want to contribute.

You can find a ready made image here: http://virtualboxes.org/images/ubuntu/

RE: Buildning for PS3. - Added by Pedro Igreja over 11 years ago

I managed the build showtime.pkg, but unfortunately it crashes. Better wait for someone that actually knows what his doing! ;)

RE: Buildning for PS3. - Added by Philipp Grosswiler over 11 years ago

if you get the ppu-gcc is unable to create an executable file error, check the file config.log in ps3support/, it usually gives you a more detailed explanation what exactly failed (last lines).

I managed to get it running by editing the file ps3setup in support/ to the following:

extra-ldflags="-L${PS3DEV}/libpsl1ght/ppu/lib -B${PSL1GHT}/target/lib -B${PS3DEV}/ppu/lib -lrt -llv2" \

1.) add libpsl1ght/ to the path
2.) add library -lrt

you can remove the other references (${PS3DEV}/ppu/ppu/lib/lv2-psl1ght.o and -lpsl1ght), as they seem to be obsolete with the latest psl1ght package.

RE: Buildning for PS3. - Added by Pedro Igreja over 11 years ago

Philipp Grosswiler wrote:

if you get the ppu-gcc is unable to create an executable file error, check the file config.log in ps3support/, it usually gives you a more detailed explanation what exactly failed (last lines).

I managed to get it running by editing the file ps3setup in support/ to the following:

extra-ldflags="-L${PS3DEV}/libpsl1ght/ppu/lib -B${PSL1GHT}/target/lib -B${PS3DEV}/ppu/lib -lrt -llv2" \n>
1.) add libpsl1ght/ to the path
2.) add library -lrt

you can remove the other references (${PS3DEV}/ppu/ppu/lib/lv2-psl1ght.o and -lpsl1ght), as they seem to be obsolete with the latest psl1ght package.

did you manage to build successfully showtime.pkg?

RE: Buildning for PS3. - Added by Philipp Grosswiler over 11 years ago

no. unfortunately, the current version of PSL1GHT does break the Showtime implementation of the PS3 parts. there are so many changes in function names and also how to handle the viewport and render buffers, that I gave up after some hours. I think it's best if Andreas is fixing those problems first. but my guess is that with the next version of PSL1GHT we will have the same problem again, it's just not that mature yet.

RE: Buildning for PS3. - Added by Pedro Igreja over 11 years ago

yes, it's a shame, they are always moving things around, this is hard on the dev's that have to handle this things instead of concentrate on improving their software! In the end it's all part of the evolution process i guess.

RE: Buildning for PS3. - Added by Jimmi Elofsson over 11 years ago

Is it possible to easily compile showtime with latest PSL1GHT yet? Or there are still this issues? im no linux expert:P

RE: Buildning for PS3. - Added by Andreas Smas over 11 years ago

No it's not easy. I'm working on fixing it in a separate (private) branch but there is still a lot to do. Some stuff has even been removed from psl1ght-v2. I've filed bugs but noone seem to care so i'm a bit reluctant on working on this. It's working fine as it is. All you need is psl1ght before the v2-merge.

RE: Buildning for PS3. - Added by Pedro Igreja over 11 years ago

do you have a link for the version that you're using?

RE: Buildning for PS3. - Added by Alex Luft over 11 years ago

Such a shame... After 4 hours patching/compiling with the merged ps3dev showtime still crashes on PS3.
No way, whats wrong with this guys? I'll try to build a vm ubuntu with the old toolchain preinstalled.

RE: Buildning for PS3. - Added by lina lina over 11 years ago

Notice that the old PSL1GHT is not enough to compile. You must also use an old version of ps3toolchain.

RE: Buildning for PS3. - Added by Alex Luft over 11 years ago

I created a VM with ubuntu Server and ps3toolchain and PSL1GHT. I had to restore my backups because i could not find any copy of the old toolchain :) If someone wanna have it.. i will upload it somewhere...

RE: Buildning for PS3. - Added by Björn Ericsson over 11 years ago

Please seed it as a torrent and publish the informaion here about where we find it.

1 2 (1-25/37)