welcome to my tutorial series on how to develop homebrew for the Vita with the unofficial vitaSDK toolchain and vita2dlib. In this series, we will start with part zero, which guides you through the installation of the necessary components, then we will continue in part one with a graphical hello world and we'll do a Game Menu in part two. Along the way, I'll explain all the function calls in the sample programs, and why they are needed, to you. Now, let's get started.
Requirements:
- An up-to-date Linux distribution which runs either natively or in a VM (some distros have Virtualbox images, so you can just plug and play, for example the Kali Linux distribution).
To update your linux system (provided you use apt as your package manager), you can open a terminal and type:
Code: Select all
apt-get update
apt-get upgrade
- An internet connection
********************************************************************************************************************
- Some common sense for troubleshooting, etc.
********************************************************************************************************************
So, let's begin with the installation of the VitaSDK toolchain.
Here we'll do a manual install instead of running the automated vdpm script, because we want to keep a light ship and know exactly where everything is located.
1.:
Open a terminal and download the nightly build of the linux version:
Code: Select all
wget https://bintray.com/vitasdk/vitasdk/download_file?file_path=vitasdk-gcc-5.4-linux-compat-nightly-e4a61561aa42a32280c28406395a9e82fb0e75cd.tar.bz2
Code: Select all
tar -xvf vitasdk-gcc-5.4-linux-compat-nightly-e4a61561aa42a32280c28406395a9e82fb0e75cd.tar.bz2
Code: Select all
mkdir vitasdk
mv ~/gcc-arm-vita-eabi-5_4-2016q3/* ~/vitasdk/
rmdir gcc-arm-vita-eabi-5_4-2016q3/
Code: Select all
mv ~/vitasdk/ /usr/local/vitasdk
Code: Select all
gedit ~/.bashrc
If this returns anything, then execute
Code: Select all
gedit ~/.bash_aliases
Code: Select all
export VITASDK=/usr/local/vitasdk
Code: Select all
export VITASDK=/usr/local/vitasdk
Now, we install vita_portlibs followed by vitasdk:
1.:
Clone vita_portlibs
Code: Select all
git clone https://github.com/xerpi/vita_portlibs
cd vita_portlibs
Make
Code: Select all
sudo make
Clean up
Code: Select all
cd .. & rm -R vita_portlibs
Clone vita2dlib and install it
Code: Select all
git clone https://github.com/xerpi/libvita2d
cd libvita2d/libvita2d/
sudo make & sudo make install
And, lastly, it's always good to clean up behind you!
Code: Select all
cd ~/
rm -R libvita2d