[Solved] Trying to compile ps3toolchain + ps3libraries + psl1ght on Linux

GuilloteTesla

Moderator
Hello people!, hope you are doing well.

Yesterday I was trying to compile all the libs in order to start developing something. But got stuck with an infinite loop (connection hang up and retry) over the polarssl.org website (which is down, hence the timeouts).

Eventually, I've found a PR on Github that fixes this issue. I've updated my fork with the changes but still getting compile errors.

I believe that the extraction of the new tarball file in line #38 doesn't have the same structure as the older one.

Here is a screenshot of the terminal's output:
upload_2022-7-24_11-12-41.png


I've tried to run the 015-polarssl.sh script alone with no success.

----------------------------------------------------------------------------------------------------------------

EDIT: solved https://www.psx-place.com/threads/s...libraries-psl1ght-on-linux.37936/#post-341213
 
Last edited:
Adding the --strip-components=1 option to tar should fix the problem.

Thank you for the suggestion rhynec. In fact, by manually debugging the script I found that not only the archived polarssl-1.2.8 tar has a different folder structure inside but the cd command pointed to a directory that was never there. So I create the directory first, extract the tar into it and let it go as usual:

https://github.com/gtessi/ps3librar...c58534316813c69c0/scripts/015-polarssl.sh#L38

you could also get the pre-compiled Linux binaries from my forked repository, in this case you'd only need to copy the `polarssl` includes and the `libpolarssl.a` binary.

Thank you for the tip, Buk!. I totally forgot that you had everything pre-built in your repos. Always have the idea that the mac compiled stuff will not work out-of-the-box with Linux :-p.

Now, I can start with psl1ght and developing my first homebrew (hopefully!).
 
Thank you for the tip, Buk!. I totally forgot that you had everything pre-built in your repos. Always have the idea that the mac compiled stuff will not work out-of-the-box with Linux :-p.

Now, I can start with psl1ght and developing my first homebrew (hopefully!).

Oh the mac version won't work on Linux, but I made both pre-built toolchains for macOS and Linux Ubuntu.
Check the Ubuntu binaries here:
https://github.com/bucanero/ps3tool...b3afc9/ps3dev-ubuntu-latest-2020-07-17.tar.gz

or the one built a month later:
https://github.com/bucanero/ps3tool...d3b5fb/ps3dev-ubuntu-latest-2020-08-31.tar.gz
 
By the way @GuilloteTesla, you can also set up a repo with GitHub actions in order to avoid setting up any VMs or dual-booting into Linux. I typically use my Debian binaries through a Docker container as seen here, though it's probably easier to use bucanero's Ubuntu binaries in the way he set up for Apollo here (I use Debian because I haven't been able to compile the toolchain on any version of Ubuntu for some time).
 
That's very nice @rhynec!. I'm not used to the devops tools provided by Github. I've seen some docker images around but I'm not quiet sure how to point my IDE to the container in order to retrieve the libraries and such.

Anyway, I've made the fixes and everything compiled perfectly. Now, I can start working on the typical "hello world" and send it to my PS3 with ps3load tool (that's a nice little piece of code :D).
 

Similar threads

Back
Top