I found that compiling for the Vita using the rejuvenate hack is a little bit tricky, specially if you are not super familiar with Linux.
Since the rejuvenate competition is coming up and I would love to see more great homebrews developed by all the talent out there I uploaded the prebuild toolchain for linux and wrote a little tutorial on how to use it:
How to compile hello world for rejuvenate
1. You need a Linux machine
I used Ubuntu 14.04 running inside VirtualBox VM. There are lot of tutorials out there how to set this up.
2. Download the precompiled tool-chain on your linux machine
http://www.mediafire.com/download/7yyw8 ... 5q3.tar.gz
This is the prebuild toolchain for Vita including some additional prebuild libs (e.g. xerpi's vita2d lib).
3. Extract the toolchain into your home folder
First you need to move the archive from the download location into your home folder.
To move the downloaded archive into your home folder simply open a terminal window:
Code: Select all
beatnukem@UbuntuVM:~$ mv ~/Downloads/gcc-arm-vita-eabi-4_9-2015q3.tar.gz ~
~ is a shortcut for your homefolder on linux.
4. Extract the archive
Code: Select all
beatnukem@UbuntuVM:~$ cd ~
beatnukem@UbuntuVM:~$ tar -xzf gcc-arm-vita-eabi-4_9-2015q3.tar.gz
beatnukem@UbuntuVM:~$ cp ~/gcc-arm-vita-eabi-4_9-2015q3/*.json ~/gcc-arm-vita-eabi-4_9-2015q3/arm-vita-eabi/bin/
Code: Select all
beatnukem@UbuntuVM:~$ echo 'PATH="$HOME/gcc-arm-vita-eabi-4_9-2015q3/bin:$PATH"' >> ~/.profile
6. If you are on 64-Bit Ubuntu you need to install 32-Bit libraries (you can skip this step if you use 32-Bit Ubuntu)
Code: Select all
beatnukem@UbuntuVM:~$ sudo dpkg --add-architecture i386
beatnukem@UbuntuVM:~$ sudo apt-get update
beatnukem@UbuntuVM:~$ sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
Code: Select all
beatnukem@UbuntuVM:~$ sudo apt-get install git git-core
E.g. this will download and compile xerpi's hello world example:
Code: Select all
beatnukem@UbuntuVM:~$ git clone https://github.com/xerpi/vitahelloworld.git
beatnukem@UbuntuVM:~$ cd vitahelloworld
beatnukem@UbuntuVM:~/vitahelloworld$ make VITASDK=~/gcc-arm-vita-eabi-4_9-2015q3/arm-vita-eabi/
you will find a vitahelloworld.velf file inside the vitahelloworld folder which you can now copy over to your windows machine and run on your vita using rejuvenate ('run_homebrew.bat vitahelloworld.velf').
Tip:
look into the Makefile how to setup the makefile to compile your code using vita toolchain
I used Ubuntu 8.10 (32-bit) to build the toolchain but it also works on 14.04 64-Bit.
I think it should work with any Linux version.
For those of you guys how like to dig deeper and build the toolchain yourself:
https://github.com/xyzz/vitasdk-buildscripts
https://github.com/xerpi/vita2dlib
https://github.com/xerpi/vita_portlibs
Last but not least:
Thanks a TON for all the awesome people putting all the effort into making things like rejuvenate and the toolchain/SDK for the vita possible!!!
Advertising