====== Compiling IRISMAN for PS3 from sources ====== Everything done on Debian 12.11 ===== PSL1GHT ===== Add following to your ''.bashrc'' and restart session: export PS3DEV=/usr/local/ps3dev export PSL1GHT=$PS3DEV export PATH=$PATH:$PS3DEV/bin export PATH=$PATH:$PS3DEV/ppu/bin export PATH=$PATH:$PS3DEV/spu/bin As root: apt install autoconf automake bison flex gcc libelf-dev make \ texinfo libncurses5-dev patch python-is-python3 subversion wget zlib1g-dev \ libtool libtool-bin python-dev-is-python3 bzip2 libgmp3-dev pkg-config g++ libssl-dev \ clang git unzip mkdir /usr/local/ps3dev chown root:your_user /usr/local/ps3dev chmod g+w /usr/local/ps3dev git clone https://github.com/ps3dev/ps3toolchain cd ps3toolchain ./toolchain.sh In case of wget errors, check this PR: https://github.com/ps3dev/ps3libraries/pull/69 ===== ps3soundlib ===== Source of information: https://www.psx-place.com/threads/compiling-open-source-ps3-toolchain-nowadays-in-2020.30030/page-3#post-249969 Following steps are from standard user perspective: git clone https://github.com/wargio/ps3soundlib cd ps3soundlib make cd .. ===== tiny3D ===== git clone https://github.com/wargio/tiny3D cd tiny3D make cd .. ===== unrar ===== Source: https://github.com/aldostools/IRISMAN/issues/88#issuecomment-1433092557 Second unzip asked me if I wanted to replace ''libzip.a''. I went with "no". mkdir unrar-ps3 cd unrar-ps3 wget "https://github.com/aldostools/IRISMAN/files/10756424/include.zip" wget "https://github.com/aldostools/IRISMAN/files/10756454/lib.zip" cd $PS3DEV/portlibs/ppu/include/ unzip ~/unrar-ps3/include.zip cd $PS3DEV/portlibs/ppu/lib/ unzip ~/unrar-ps3/lib.zip cd ~ ===== IRISMAN ===== git clone https://github.com/aldostools/IRISMAN cd IRISMAN make pkg And yet still fail in the end. Compilation throws errors about missing libs (mainly ps3soundlib being included from ''$PS3DEV/portlibs/ppu/include'' and not ''$PS3DEV/portlibs/ppu/include/soundlib''), PIC register clobbered (https://github.com/aldostools/IRISMAN/issues/11), and finally a problem with linking the binary file. I tried manually patching everything, but I found myself stuck at linker situation. As Aldo says in issue linked, he uses SDK from Estwald which is focused on Windows platform. That might be the source of differences in compiler/linker stuff, and I don't want to build another environment just to compile single app.