mirror of
https://github.com/Vita3K/Vita3K.git
synced 2026-07-11 01:34:23 +02:00
2.1 KiB
2.1 KiB
Build Vita3K
Windows (Visual Studio)
- Install Visual Studio 2017 or 2019 and choose to install
Desktop development with C++. You will get compiler andcmakerequired for building.
Example for Visual Studio 2019:
-
Install
gittoclonethe project. Download and installgitfrom here. -
Clone this repo.
git clone --recursive https://github.com/Vita3K/Vita3K
cd Vita3K
- Open
Developer Command Promptfor your respective Visual Studio version.cmakeand otherC/C++toolchain only available onDeveloper Command Prompt.
Example for Visual Studio 2019:
- Run
gen-windows.batto create Visual Studio project inbuild-windowsdirectory.
.\gen-windows
-
Open the project generated in the
build-windowsdirectory. -
Build and run it.
macOS (Xcode)
-
Install Xcode at App Store.
-
Install
brew. -
Install dependencies with
brew.
brew install git cmake
- Clone this repo.
git clone --recursive https://github.com/Vita3K/Vita3K
cd Vita3K
- Generate Xcode project.
./gen-macos.sh
-
Open Xcode project
vita3k.xcodeprojgenerated inbuild-macosdirectory. -
When prompted to create schemes, create one for the
vita3ktarget only. The project builds many targets, so it will make your life easier if you create schemes as needed. -
Build.
Linux
Ubuntu/Debian
- Install dependencies.
sudo apt install git cmake libsdl2-dev pkg-config libgtk-3-dev
- Clone this repo.
git clone --recursive https://github.com/Vita3K/Vita3K
cd Vita3K
- Build the project.
./gen-linux.sh
cd build-linux
make -j$(nproc)
Note
- After cloning or checking out a branch, you should always update submodules.
git submodule update --init --recursive
- If
boostfailed to build, you can opt out for systemboostpackage (Linux and macOS only).
brew install boost # for macOS
sudo apt install libboost-all-dev # for Ubuntu/Debian

