PSP Go >> C/C++

開發環境


參考資訊:
1. pspdev

司徒目前使用手動編譯好的PSPDEV作為開發工具,安裝步驟如下:

$ cd
$ wget https://github.com/steward-fu/pspgo/releases/download/v1.0/toolchain.tar.gz
$ tar xvf toolchain.tar.gz
$ sudo mv pspdev /opt
$ export PSPDEV=/opt/pspdev
$ export PATH=$PATH:$PSPDEV/bin

模擬器則是使用PPSSPP,安裝步驟如下:

$ sudo apt-get install cmake libsdl2-dev

$ cd /tmp
$ git clone https://github.com/hrydgard/ppsspp
$ cd ppsspp
$ git submodule update --init --recursive
$ ./b.sh
$ sudo ln -s /tmp/build/PPSSPPSDL /usr/local/bin/psp
$ sudo chmod 0777 /usr/local/bin/psp

如果想要使用Docker環境編譯,可以使用如下方式:

$ sudo docker run -it --rm -v "$PWD:/src" ticky/pspdev /bin/bash
root@fea850f73e8b:/src# psp-gcc --version
    psp-gcc (GCC) 4.9.3
    Copyright (C) 2015 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.


返回上一頁