Skip to content

Instantly share code, notes, and snippets.

@renn-codes
Forked from thexkey/VitaSDK_On_CLion.md
Created January 26, 2024 12:15
Show Gist options
  • Select an option

  • Save renn-codes/d9d86fd5c03d8904c3e8fdbd20e5f88b to your computer and use it in GitHub Desktop.

Select an option

Save renn-codes/d9d86fd5c03d8904c3e8fdbd20e5f88b to your computer and use it in GitHub Desktop.
How to use VitaSDK homebrew toolchain with JetBrains' CLion?

Tested with Ubuntu 22 LTS x64 (NOT WSL) and CLion 2023.1.1!

  1. install VitaSDK in the system if you don't have it installed yet.
  2. open CLion and head to File > Settings > "Build, Execution, Deployment" > Toolchains.
  3. click the plus (+) icon and select to create a local "System" Toolchain.
  4. set the following variables in the menu to these:
Setting Value
CMake: /usr/bin/cmake
BUiLD Tool: /usr/bin/make
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
  1. switch to the CMake tab in File > Settings > "Build, Execution, Deployment"
  2. specify the VITASDK enviroment variable to what you have outside of CLion, usually the default path of VITASDK is /usr/local/vitasdk.
  3. save the changes with OK or Apply

And you should have VitaSDK now fully working in JetBrains' CLion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment