Es:Instalacion PSL1GHT y Librerias

From PSL1GHT

Jump to: navigation, search

Contents

[edit] Preparacion de Ubuntu

Antes que nada actualizaremos los repositorios de ubuntu e instalamos todos los paquetes que nos vayan a hacer falta

 sudo apt-get update && sudo apt-get install subversion git libelf-dev python build-essential autotools-dev python-dev autoconf automake bison flex gcc 
 gcc-4.4 patch wget zlib-bin make zlib1g zlib1g-dev libucl1 libucl-dev texinfo mercurial

Editamos el archivo .bashrc

 gedit .bashrc

Añadimos esto al final del archivo

 ## SDK PlayStation 3
 export PS3DEV=/usr/local/ps3dev
 export PATH=$PATH:$PS3DEV/bin
 export PATH=$PATH:$PS3DEV/ppu/bin
 export PATH=$PATH:$PS3DEV/spu/bin
 export PSL1GHT=$PS3DEV/psl1ght

Actualizamos el .bashrc con

 source .bashrc

Creamos los directorios para PSL1GHT

 sudo mkdir /usr/local/ps3dev
 sudo mkdir /usr/local/ps3dev/psl1ght

[edit] Instalacion de PSL1GHT

Clonamos el repositorio de PS3Toolchain mediante GIT (recomiendo crear una carpeta especifica para meter dentro todo esto). Suponiendo que tienes la carpeta en tu carpeta personal...:

 cd /PS3
 git clone https://github.com/ooPo/ps3toolchain.git
 cd ps3toolchain
 chmod +x -R toolchain.sh
 sudo -s
 ./toolchain

Una vez terminado el proceso veremos que se ha realizado con exito escribiendo los 2 comandos y viendo que nos devuelve lo siguiente:

$ ppu-gcc --version
ppu-gcc (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ spu-gcc --version
spu-gcc (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Instalamos PSL1GHT

git clone https://github.com/HACKERCHANNEL/PSL1GHT.git
cd PSL1GHT/psl1ght/
make
sudo -s
make install

[edit] Instalacion de Librerias

Ahora vamos a instalar las librerias necesarias

[edit] PS3Libraries

git clone https://github.com/ooPo/ps3libraries.git
cd ps3libraries
sudo -s
./libraries.sh
exit

[edit] Tiny3D

git clone https://github.com/hermesEOL/tiny3d.git
cd tiny3d
sudo -s
make all
exit

[edit] ps3soundlib

git clone https://github.com/hermesEOL/ps3soundlib.git
cd ps3soundlib/libs
make
sudo -s
make install
exit

[edit] SDL

git clone https://github.com/cebash/SDL_PSL1GHT.git
cd SDL_PSL1GHT
./script.sh
make
sudo -s
make install
exit

[edit] Ejemplo de compilacion de PKG

Entramos a donde lo hayamos descargado todo anteriormente (en caso de haberlo hecho), en este caso:

cd PS3/psl1ght

Entramos a los archivos de ejemplo:

cd PSL1GHT/samples/sputest

Compilamos el codigo

make

Generamos el PKG

make pkg

Y nos devuelve

darkcarlx@Invasion:~/PS3/psl1ght/PSL1GHT/samples/sputest$ make pkg
make[2]: `../../data/spu.bin' está actualizado.
make[1]: `/home/darkcarlx/PS3/psl1ght/PSL1GHT/samples/sputest/sputest.self' está actualizado.
Creating PKG...
[X] Magic: 7f504b47
[X] Type: 00000001
[X] Offset to package info: 000000c0
[ ] unk1: 00000005
[X] Head Size: 00000080
[X] Item Count: 00000004
[X] Package Size: 0000000000055930
[X] Data Offset: 0000000000000140
[X] Data Size: 0000000000055790
[X] ContentID: 'UP0001-TEST00003_00-0000000000000000'
[X] QA_Digest: EF212DB2533222CC0C93857983A593A
[X] K Licensee: 00000000000000000000000000000000
Personal tools