I decided to make this guide in order to install the PS Vita/TV toolchain on Mac OS X,
due to issues that I ran into and how I was able to overcome them.
The method I used was the VitaDev Package Manager (vdpm) automated install, https://github.com/vitadev/vdpm.
The installation is flawless with no errors; however, when you go to compile; for example, the hello_world sample, you get an error:
Code: Select all
make: vita-pack-vpk: No such file or directory
make: *** [hello_cpp_world.vpk] Error 1► TOOLCHAIN PROCEDURES
Step 1: GATHER HARDWARE MATERIALS
- 1) Obtain Playstation Vita or Playstation TV.
2) Obtain a memory card, with at least 10MB of free space. (Required by HENkaku)
3) Obtain a computer operating on MAC OS X.
- 1)Xcode and the Command Line Tools for Xcode (Compilation command-line tools needed)
Go into the iTunes store and download, or follow this link:
https://itunes.apple.com/us/app/xcode/id497799835?mt=12
2) Homebrew (For information on what this does, visit: http://brew.sh)
Open Terminal, and enter this command and then press ENTER or RETURN:Code: Select all
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Enter this command into Terminal and then press ENTER or RETURN:Code: Select all
brew install cmake
3) libzip (Library that hosts the needed zip header files for vita-pack-vpk compilation)
Enter this command into Terminal and then press ENTER or RETURN:Code: Select all
brew install libzip
Code: Select all
hash -r
- 1) vita-pack-vpk.c
Create your own, via text hosted on Pastebin: http://pastebin.com/Ajy0CjGV
> OR download file via: http://s000.tinyupload.com/index.php?fi ... 7130144451
2) Place vita-pack-vpk.c into it’s own directory, in a place you will easily be able to navigate to and remove upon completion.
>For example, Desktop/vita/; therefore, the vita-pack-vp.c is located at Desktop/vita/vita-pack-vpk.c.
(Found here: https://github.com/vitadev/vdpm ; restated below in Step 2)
- 1) Open Terminal (if left open from Step 2 and “hash -r” command implemented).
2) Enter each of the following commands (enter each command and press ENTER or RETURN):
Code: Select all
git clone https://github.com/vitadev/vdpmCode: Select all
cd vdpmCode: Select all
cp config.sample configCode: Select all
./bootstrap-vitasdk.shCode: Select all
export VITASDK=/usr/local/vitasdkCode: Select all
export PATH=$VITASDK/bin:$PATHCode: Select all
./install-all.sh
At this point in the installation, everything should have installed fine without any errors.
However, if one were to try and compile a source, an error would output:
Code: Select all
make: vita-pack-vpk: No such file or directory
- 1) Open Terminal (if not left open from Step 4).
2) Enter each of the following commands (enter each command and press ENTER or RETURN):
Code: Select all
cdCode: Select all
cd Desktop/vita- > OR cd into your vita-pack-vpk.c-housing folder location.
Code: Select all
gcc -I /usr/local/Cellar/libzip/1.1.2/include -I /usr/local/Cellar/libzip/1.1.2/lib/libzip/include /usr/local/Cellar/libzip/1.1.2/lib/libzip.a vita-pack-vpk.c -o vita-pack-vpk -lzCode: Select all
open .- This opens your current directory in finder.
> Right click on vita-pack-vpk, and copy or cut the binary file.
>> Close Finder window.
Code: Select all
cdCode: Select all
open $VITASDK/bin- This is where vita-pack-vpk belongs.
> Right click in the bin/ folder, and paste in the vita-pack-vpk binary file.
>> Click “Authenticate” in the prompt that appears.
>>> Close Finder window.
After the install of the toolchain, the binary vita-pack-vpk is not included.
- Step 1) Download the vita-pack-vpk binary file: http://s000.tinyupload.com/index.php?fi ... 9497555717
Step 2) Open Terminal.
Step 3) Install Xcode (https://itunes.apple.com/us/app/xcode/i ... 835?mt=12H); Homebrew (http://brew.sh); cmake (brew install cmake); and libzip (brew install libzip).
Step 4) Enter the commands found here: https://github.com/vitadev/vdpm
Step 5) Enter the following commands:Code: Select all
cd open $VITASDK/bin
Step 7) Click “Authenticate” in the prompt that appears.
Step 8) Close Finder and Terminal windows.
Thank you for using this tutorial, and I hope that it was of benefit to you.
The issue should be fixed, I would imagine in future updates to the vdpm, but until then: here is the remedy.
- !!: A shout-out to an individual by the name of codestation on FREENODE IRC #vitasdk, for his help with libzip and compilation of *.c.
Advertising
