Prerequisites
PSL1GHT requires a complete PlayStation 3 toolchain to compile homebrew applications. You’ll need:- ps3toolchain - A GCC toolchain supporting PowerPC 64-bit architecture with patched newlib
- Host GCC - For building SDK tools (raw2h, ps3load, sprxlinker)
- Python 2.x - For packaging tools (fself.py, sfo.py, pkg.py)
- libelf - Required by sprxlinker
- zlib - Required by ps3load
- libgmp - Required by signing tools
- Nvidia Cg Toolkit - For compiling vertex programs (optional)
Installing ps3toolchain
Clone and build ps3toolchain
/usr/local/ps3dev by default.The toolchain build can take 30-60 minutes depending on your system. The script will download and compile binutils, gcc, newlib, and other essential components.
Installing PSL1GHT
Install build rules
The SDK uses several makefile rule files that must be installed first:This copies the build system files to
$PSL1GHT:base_rules- Common build rules for C/C++ compilationppu_rules- PowerPC (PPU) specific rules and packaging toolsspu_rules- SPU specific rules for Cell processordata_rules- Rules for embedding binary data (images, shaders, etc.)
Build and install the SDK
- PPU libraries - Runtime libraries for the PowerPC processor
- SPU libraries - Libraries for the Synergistic Processing Units
- Common libraries - Shared code (vectormath, SIMD math)
- Tools - Build utilities (sprxlinker, cgcomp, ps3load, etc.)
The build system will compile:
ppu/- PPU runtime and SPRX stub librariesspu/- SPU runtime librariescommon/- Shared libraries (vectormath, libspumars, simdmath)tools/- SDK utilities and Python scripts
Installing ps3libraries (Optional)
Most PSL1GHT samples require additional libraries:- libpng, libjpeg, zlib
- freetype, cairo
- SDL and other multimedia libraries
Verify Installation
Check that the toolchain is properly installed:- PPU and SPU gcc compilers responding
$PSL1GHTpointing to your installation directory- Library files in
$PSL1GHT/ppu/libincludingliblv2.a,librsx.a, etc.
Local Development Build
For development, you can build PSL1GHT locally instead of system-wide:Next Steps
Quickstart Guide
Build your first PS3 application
Project Structure
Understand the SDK layout and build system