flipacholas / Docker-PS3DevExtra

Start PS3 development with only one command!
https://hub.docker.com/r/flipacholas/ps3devextra/
21 stars 0 forks source link

Having issues compiling various ps3dev/PSL1GHT samples #2

Open einsteinx2 opened 6 years ago

einsteinx2 commented 6 years ago

Hi I'm brand new with PS3 homebrew development and your Docker image is very appealing due to having the whole toolchain pre-configured. Problem is I'm running into issues compiling PSL1GHT sample projects, so apparently I'm doing something wrong or something is misconfigured. I'm doing this on a MacBook Pro Touchbar with Mojave. Docker itself seems to be working fine, but I'm having issues getting the toolchain working.

So far I've tried three samples from the ps3dev/PSL1GHT repo and only sys/msgdialog compiled (haven't actually tried running the self file yet it yet as my PS3 is currently installing something).

When I tried building graphics/rsxtest I get the following:

rsxutil.cpp
/src/source/rsxutil.cpp: In function 'void init_screen(void*, u32)':
/src/source/rsxutil.cpp:131:1: internal compiler error: in rs6000_savres_routine_name, at config/rs6000/rs6000.c:28661
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
/usr/local/ps3dev/base_rules:63: recipe for target 'rsxutil.o' failed
make[1]: *** [rsxutil.o] Error 1
Makefile:114: recipe for target 'build' failed
make: *** [build] Error 2

And when I try to compile input/padtest I get:

Makefile:6: /usr/local/ps3dev/host/ppu.mk: No such file or directory
make: *** No rule to make target '/usr/local/ps3dev/host/ppu.mk'.  Stop.

For all of the above I used the following command while in the directory: docker run -it --rm -v "$PWD:/src" flipacholas/ps3devextra:ubuntu-latest make

Also I found a guide (granted it's 8 years old but using the same stack) that mentioned using make pkg to automatically build pkg files for installation, but that failed as well with make: *** No rule to make target 'pkg'. Stop.

For the pkg test I used this command: docker run -it --rm -v "$PWD:/src" flipacholas/ps3devextra:ubuntu-latest make pkg

Are these sample projects in the PSL1GHT out of date? I assumed they would work as your image uses that SDK. Am I doing something wrong? Are there other/better sample projects I should be using to understand the basic layout of a PS3 homebrew application?

My goal is to build a small utility application that will be installed to the XMB. It will need to display text, respond to input to change numerical values, and write to disk. I'm starting with some sample applications and trying to work outward from there, but I'm getting nowhere fast.

Also if you happen to know a good non-trivial project I can look at to get a feel for how to display information and respond to controller inputs it would be much appreciated.

einsteinx2 commented 6 years ago

I ended up finding a small application called PS3 GamePad Test that includes source code and your docker imager compiles it perfectly, including make pkg. It's a perfect starting place as it produces an installable package with an icon in the XMB, reads controller inputs and displays text and graphics to screen.

Here's the link if anyone is interested in a good boilerplate project for PS3 homebrew: http://www.psx-place.com/threads/ps3-gamepad-test.144/

I'll leave this ticket open as I'm still interested to hear why there are issues with PSL1GHT's example code, but it's working great now for my purposes.

kabone commented 5 years ago

I ended up finding a small application called PS3 GamePad Test that includes source code and your docker imager compiles it perfectly, including make pkg. It's a perfect starting place as it produces an installable package with an icon in the XMB, reads controller inputs and displays text and graphics to screen.

Here's the link if anyone is interested in a good boilerplate project for PS3 homebrew: http://www.psx-place.com/threads/ps3-gamepad-test.144/

I'll leave this ticket open as I'm still interested to hear why there are issues with PSL1GHT's example code, but it's working great now for my purposes.

I've been facing the same issues. I've tried so many of these docker images and even tried making my own to face the same issues you had. I tried to build the the gamepad tool you linked but i get the same issues as pretty much you have posted. Have you made any more progress? Also have you tried anything with syscalls?

einsteinx2 commented 5 years ago

I'm able to build that gamepad project using this docker image however I couldn't get it to run on my PS3 or in the RPCS3 emulator. When I get some time I'm going to just get a dev environment set up in Windows and try working from there.

flipacholas commented 5 years ago

This seem to be compatibility errors with other projects, my goal with this docker image is to provide new developers for a quicker way to setup their tool chain, that doesn't mean that every single project will work (since they may use different versions of the same library, or abandoned ones), however I'll be trying to improve the image so hopefully we can reach a wider support. If you find any improvements to this image I'll be happy to include them, there's some info in my README on how to tweak this image.

crystalct commented 4 years ago

Many samples still written for PSL1GHT V1.... so there are some errors..... Try to compile samples from here: https://github.com/crystalct/tiny3D