Advertising (This ad goes away for registered users. You can Login or Register)

[Mac OS X] Installing PS Vita/PSTV Toolchain VDPM

Post here your guides, tips, how-to, etc...
Post Reply
User avatar
Railf
Posts: 5
Joined: Mon Jul 06, 2015 6:03 am

[Mac OS X] Installing PS Vita/PSTV Toolchain VDPM

Post by Railf » Wed Aug 10, 2016 6:35 pm

INTRODUCTION
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
This tutorial will teach the remedy for this error, but the files will be provided at the bottom of the tutorial for those who want to just rush to the conclusion.

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.
Step 2: INSTALL PREREQUISITES
  • 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)"
    3) cmake (Required command-line tool that VDPM requires)
    Enter this command into Terminal and then press ENTER or RETURN:
    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: 4) Close Terminal, or enter command:
Step 3: GATHER OTHER MATERIALS Step 4: PREFORM STANDARD TOOLCHAIN INSTALLATION PROCEDURE
(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):
Step 5: PREFORM TOOLCHAIN REMEDY PROCEDURE
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
This is the reason for this tutorial, and the remedy being explained.
  • 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

      cd

      Code: 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 -lz

      Code: 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

      cd

      Code: 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.
    3) Close terminal.
TL; DR (Too long; Didn’t read)
After the install of the toolchain, the binary vita-pack-vpk is not included.
CONCLUSION
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

Post Reply

Return to “Tutorials”