FidelityFX-CLI icon indicating copy to clipboard operation
FidelityFX-CLI copied to clipboard

How to build in windows?

Open xiaoxiongli opened this issue 4 years ago • 2 comments

Hi Dear @rys :

it seems can use VS2019 to build this project, but I do not find the .sln file, it is only have a CMakeList.txt, so Could you please help me: How to build in windows?

thank you very much~

xiaoxiongli avatar Aug 25 '21 07:08 xiaoxiongli

Hi @xiaoxiongli, good question! You need to have cmake installed on your system, along with VS2019 and the Windows SDK, then you can use the following to check the code out and build it:

git clone --recursive https://github.com/GPUOpen-Effects/FidelityFX-CLI.git
cd FidelityFX-CLI
mkdir build
cd build
cmake -S .. -G "Visual Studio 16 2019" -A x64
cd ..
cmake --build build --config Release

That'll create a binary in bin\Release called FidelityFX_CLI.exe for you to use. Let me know if those steps don't work and I can help you debug it.

rys avatar Aug 25 '21 09:08 rys

Additionally, after the first cmake step, it will have built a solution file for you in the build directory that you can load in VS2019 yourself if you want to look at the code and make changes.

rys avatar Aug 25 '21 09:08 rys