This guide assumes Linux, and it's also so i don't forget how in the future
Please visit https://vitasdk.org/
But in case you don't want to...
apt-get install make git cmake python3 python-is-python3
- in
.bashrc
,.profile
, or both, add these lines:
export VITASDK=/usr/local/vitasdk
export PATH=$VITASDK/bin:$PATH # add vitasdk tool to $PATH
- Run in terminal
git clone https://github.com/vitasdk/vdpm ; cd vdpm ; ./bootstrap-vitasdk.sh ; ./install-all.sh
- Restart your terminal session
- File -> Settings -> Build, Execution, Deployment -> Toolchains -> Plus Button (+) -> 'System'
- Name it!
- I just named mine plain ol'
vitasdk
.
- I just named mine plain ol'
- Settings:
- CMake: Bundled
- Build Tool:
Detected: Ninja
- C Compiler:
/usr/local/vitasdk/bin/arm-vita-eabi-gcc
- C++ Compiler:
/usr/local/vitasdk/bin/arm-vita-eabi-g++
- Debugger:
/usr/local/vitasdk/bin/arm-vita-eabi-gdb
It should go without saying, but if you put your vitasdk in a different path, point these paths to wherever you put it.
I opened a project for this part, specifically the hello_cpp_world sample from the vitasdk samples repo.
- File -> Settings -> Build, Execution, Deployment -> CMake
- By default, you may only have a Debug configuration. You can choose if you want to add a
Release
configuration.- I added a
Release
configuration just by pressing '+'
- I added a
- For each configuration you plan to use with VitaSDK, change the
Toolchain
drop-down to your vitasdk toolchain.- This should automatically alter the name of the configuration.
- Reload your CMake configuration
- ???
- Profit!
This is some odd behavior on CLion's part. It doesn't respect .bashrc
, so you should try adding the export
s from before to your .profile
.
Don't feel like adding something to your .profile?
- File -> Settings -> Build, Execution, Deployment -> CMake
- For each config you intend to use...
- Scroll down to "Environment"
- Add
VITASDK=/usr/local/vitasdk
or whereever else you put your VitaSDK
That's all! (I think)
Yo, I tried to follow this tutorial using the flatpak version (cuz I have fedora and couldn't be bothered to install it manually) and I had to do a couple of additional things (in case someone else out there just ends up having the same problem :D)
On flatseal:
/usr/local
VITASDK=/run/host/usr/local/vitasdk
Then, in CLion, I've added this in CMake Options:
-DCMAKE_TOOLCHAIN_FILE=/run/host/usr/local/vitasdk/share/vita.toolchain.cmake
And now it works! At least in theory, because in practice it builds an executable (?) but it isn't a vpk so i can't install it...
INSTANT EDIT: there's a dropdown menu next to the build button to choose the vpk... fixed!