FedoraForum.org - Fedora Support Forums and Community
Results 1 to 12 of 12
  1. #1
    Join Date
    Oct 2008
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Setting up the pspsdk.

    PSPSDK is just a lovely thing that is used for developing psp homebrew applications.

    First step, set up your environment.

    First things first, install kernel-devel/headers.

    As root:
    Code:
    yum install kernel-devel
    yum install kernel-headers
    Next, you will need the basic development tools

    As root
    Code:
    yum groupinstall "development-tools"
    yum install mpfr-devel
    yum install compat-gcc*
    yum install subversion
    Alright, now we begin the fun part.

    As root
    NOTE: Replace USERNAME with the name of your user
    Code:
    gedit /home/USERNAME/.bashrc
    Add to the end of that file:
    Code:
    export PSPDEV=/usr/local/pspdev
    export PATH=$PATH:$PSPDEV/bin
    Save and exit. Restart the terminal.

    Now, head to that directory and execute
    Code:
    svn checkout svn://ps2dev.org/psp/trunk/psptoolchain
    cd psptoolchain
    As root
    Code:
    export CC=gcc34
    ./toolchain.sh
    Now watch it run.

    To update it:
    Code:
    svn co svn://svn.ps2dev.org/psp/trunk/pspsdk && cd pspsdk && sh bootstrap
    ./configure
    make
    make install
    This process takes a while, but I've done it over 20 times on different distros, and so far, fedora is the easiest.

    Note: This is 10000000x faster on a x86_64 system.
    Last edited by NoEffex; 30th July 2009 at 03:27 AM.

  2. #2
    RageRaft Guest
    Thanks FX.. This helps. =P

  3. #3
    RedHate Guest
    actually you've forgotten MPFR you'll need that also,

    http://www.mpfr.org/mpfr-current/

    im not sure about the newer fedoras but that's not installed by default its something you need to do before installing the toolchain. Its the only dependancy the toolchain begs for that ISNT installed from the get go.

  4. #4
    Join Date
    Oct 2008
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, you could also do

    Code:
    yum install mpfr-devel
    if you need to.

    Technically it DOES install it, but not the devel, anyhow, thanks for noticing that.
    Intel Core 2 Quad Q8400 CPU (2.66 GHz)
    3gb RAM
    500GB HD
    Debian Lenny x86_64 & Windows 7 Ultimate x64
    NVIDIA GeForce 9800 GTX+ Superclocked - Fattypack

    Second(Server) PC:
    512mb RAM
    80gb TiVO HD(Lololol, took it from TiVO, old one broke)
    PC-BSD 7.1.1 x86
    Ossom router decked out with DD-WRT as a bridge providing net
    Sign the Online Petition to bring Crysis 2 to Linux/Mac!

  5. #5
    Swissidle Guest
    [root@ernesta psptoolchain]# ./toolchain.sh
    ls: cannot access /usr/include/gmp.h: No such file or directory
    ERROR: Install gmp before continuing.
    ../depends/check-gmp.sh: Failed.


    why am i getting this error?? pls help

  6. #6
    Join Date
    Oct 2008
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Swissidle
    [root@ernesta psptoolchain]# ./toolchain.sh
    ls: cannot access /usr/include/gmp.h: No such file or directory
    ERROR: Install gmp before continuing.
    ../depends/check-gmp.sh: Failed.


    why am i getting this error?? pls help
    if it still matters,

    yum install gmp-devel
    Intel Core 2 Quad Q8400 CPU (2.66 GHz)
    3gb RAM
    500GB HD
    Debian Lenny x86_64 & Windows 7 Ultimate x64
    NVIDIA GeForce 9800 GTX+ Superclocked - Fattypack

    Second(Server) PC:
    512mb RAM
    80gb TiVO HD(Lololol, took it from TiVO, old one broke)
    PC-BSD 7.1.1 x86
    Ossom router decked out with DD-WRT as a bridge providing net
    Sign the Online Petition to bring Crysis 2 to Linux/Mac!

  7. #7
    Join Date
    Jan 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got error when running psptoolchain.sh

    ///////////////////////////////////////////////////////////////////////////
    F_glue_clock libcglue.c -c -o glue_clock.o
    psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libc/include -I../../src/base -I../../src/kernel -I../../src/user -I../../src/debug -g -O2 -G0 -Wall -DF_glue_gettimeofday libcglue.c -c -o glue_gettimeofday.o
    libcglue.c:46: error: conflicting types for ‘gettimeofday’
    /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/include/sys/time.h:73: error: previous declaration of ‘gettimeofday’ was here
    make[3]: *** [glue_gettimeofday.o] Error 1
    make[3]: Leaving directory `/home/JC1DA/Download/psptoolchain/build/pspsdk/src/libc'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/JC1DA/Download/psptoolchain/build/pspsdk/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/JC1DA/Download/psptoolchain/build/pspsdk'
    make: *** [all] Error 2
    /////////////////////////////////////////////////////////////////////

    What's wrong?
    Somebody helps ...

  8. #8
    Join Date
    Oct 2008
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by JC1DA
    I got error when running psptoolchain.sh

    ///////////////////////////////////////////////////////////////////////////
    F_glue_clock libcglue.c -c -o glue_clock.o
    psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libc/include -I../../src/base -I../../src/kernel -I../../src/user -I../../src/debug -g -O2 -G0 -Wall -DF_glue_gettimeofday libcglue.c -c -o glue_gettimeofday.o
    libcglue.c:46: error: conflicting types for ‘gettimeofday’
    /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/include/sys/time.h:73: error: previous declaration of ‘gettimeofday’ was here
    make[3]: *** [glue_gettimeofday.o] Error 1
    make[3]: Leaving directory `/home/JC1DA/Download/psptoolchain/build/pspsdk/src/libc'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/JC1DA/Download/psptoolchain/build/pspsdk/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/JC1DA/Download/psptoolchain/build/pspsdk'
    make: *** [all] Error 2
    /////////////////////////////////////////////////////////////////////

    What's wrong?
    Somebody helps ...
    It seems to have been broken in the latest gcc versions.

    Run

    rpm -qa libtool gcc

    and post the results for me.
    Intel Core 2 Quad Q8400 CPU (2.66 GHz)
    3gb RAM
    500GB HD
    Debian Lenny x86_64 & Windows 7 Ultimate x64
    NVIDIA GeForce 9800 GTX+ Superclocked - Fattypack

    Second(Server) PC:
    512mb RAM
    80gb TiVO HD(Lololol, took it from TiVO, old one broke)
    PC-BSD 7.1.1 x86
    Ossom router decked out with DD-WRT as a bridge providing net
    Sign the Online Petition to bring Crysis 2 to Linux/Mac!

  9. #9
    Join Date
    Jan 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here they are ...
    ///////////////////////////////////////////////////////////////
    [JC1DA@localhost ~]$ rpm -qa libtool gcc
    gcc-4.4.0-4.x86_64
    libtool-2.2.6-11.fc11.x86_64
    ///////////////////////////////////////////////////////////////
    I'm using fedora 11 X64

  10. #10
    Join Date
    Oct 2008
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, what you need to do is do something like

    sudo yum install compat-gcc*

    and then when you run the toolchain.sh, execute

    Code:
    export CC=gcc34 
    ./toolchain.sh
    in root.

    That's how I do it nowadays.
    Intel Core 2 Quad Q8400 CPU (2.66 GHz)
    3gb RAM
    500GB HD
    Debian Lenny x86_64 & Windows 7 Ultimate x64
    NVIDIA GeForce 9800 GTX+ Superclocked - Fattypack

    Second(Server) PC:
    512mb RAM
    80gb TiVO HD(Lololol, took it from TiVO, old one broke)
    PC-BSD 7.1.1 x86
    Ossom router decked out with DD-WRT as a bridge providing net
    Sign the Online Petition to bring Crysis 2 to Linux/Mac!

  11. #11
    Join Date
    Jan 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did as you told me but it still happened ...

    ////////////////////////////
    : previous declaration of ‘gettimeofday’ was here
    make[3]: *** [glue_gettimeofday.o] Error 1
    make[3]: Leaving directory `/home/JC1DA/Download/psptoolchain/build/pspsdk/src/libc'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/JC1DA/Download/psptoolchain/build/pspsdk/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/JC1DA/Download/psptoolchain/build/pspsdk'
    make: *** [all] Error 2
    ../scripts/006-pspsdk-stage2.sh: Failed.
    //////////////////////

  12. #12
    Join Date
    Oct 2008
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I updated the post to reflect the newer stuff.
    Intel Core 2 Quad Q8400 CPU (2.66 GHz)
    3gb RAM
    500GB HD
    Debian Lenny x86_64 & Windows 7 Ultimate x64
    NVIDIA GeForce 9800 GTX+ Superclocked - Fattypack

    Second(Server) PC:
    512mb RAM
    80gb TiVO HD(Lololol, took it from TiVO, old one broke)
    PC-BSD 7.1.1 x86
    Ossom router decked out with DD-WRT as a bridge providing net
    Sign the Online Petition to bring Crysis 2 to Linux/Mac!

Similar Threads

  1. Replies: 1
    Last Post: 3rd May 2007, 09:54 PM
  2. Help on setting up DNS
    By antoni_NT in forum Servers & Networking
    Replies: 18
    Last Post: 11th February 2007, 02:57 PM
  3. Setting up VPN
    By complete-noobie in forum Servers & Networking
    Replies: 4
    Last Post: 22nd June 2006, 04:56 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •