Required:
By default conan will use %USERPROFILE%/.conan, if you have limited C:/ drive space it is recommend to set the CONAN_USER_HOME environment variable to a folder on a drive with more space.
git clone --recursive https://github.com/decaf-emu/decaf-emu.gitcd decaf-emumkdir buildcd buildconan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conanconan install .. -o silent=True- Use cmake-gui to generate a VS project file
Required:
- A modern C++17 friendly compiler such as g++7
- CMake
- libcurl
- openssl
- sdl2
- zlib
Optional:
- ffmpeg, disable by using
-DDECAF_FFMPEG=OFF - Vulkan SDK, disable by using
-DDECAF_VULKAN=OFF
The dependencies, other than Vulkan, can either be acquired using your package manager such as:
- Required:
apt install cmake libcurl4-openssl-dev libsdl2-dev libssl-dev zlib1g-dev - Optional:
apt install libavcodec-dev libavfilter-dev libavutil-dev libswscale-dev
Or by using Conan, which is recommended to be installed using Python pip:
pip install conanconan userconan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
You may choose to use a mix of system dependenices such as if your system's ffmpeg is too old, you can interactively customise which dependencies to acquire when using conan install .. or you can specifiy on the command line. So for example to acquire only ffmpeg you might use conan install .. --build=missing -o silent=True -o ffmpeg=True -o curl=False -o openssl=False -o sdl2=False -o zlib=False
git clone --recursive https://github.com/decaf-emu/decaf-emu.gitcd decaf-emumkdir buildcd build- If using conan:
conan install .. -o silent=True cmake ../make
Right now MacOS is not really supported as there are no graphics backends which support MacOS, the OpenGL drivers available on MacOS are too old and we have no Metal backend. MoltenVK has not yet been tested but it is an option to consider.
Options interesting to users:
- DECAF_FFMPEG - Build with ffmpeg which is used for decoding h264 videos.
- DECAF_GL - Build with OpenGL graphics backend.
- DECAF_SDL - Build with SDL frontend.
- DECAF_VULKAN - Build with Vulkan backend.
Options interesting to developers:
- DECAF_BUILD_TESTS - Build tests.
- DECAF_BUILD_TOOLS - Build tools.
- DECAF_BUILD_WUT_TESTS - Build tests which require wut.
- DECAF_JIT_ALLOW_PROFILING - Build with JIT profiling SUPPORT.
- DECAF_VALGRIND - Build with Valgrind.