Building on Windows with AMD GPU - Xorgon/DEMOranges GitHub Wiki

The following are step-by-step instructions for building the project on Windows with an AMD GPU.


  1. Install a C compiler. I recommend MinGW for this purpose (instructions are here).

  2. Install CMake (installers can be found here).

  3. Install AMD OpenCL SDK (can be downloaded from here). Ensure that the environment variable OCL_ROOT points to the installation path of the SDK (the directory containing the include/ and lib/ directories. Also ensure that you have the latest drivers for your GPU.

  4. Build the project.

    1. Download the source and unzip it. Alternatively, if git is installed, simply do git clone https://github.com/Xorgon/DEMOranges.
    2. Create a directory within the 'DEMOranges' directory called 'cmake-build' (or something similar).
    3. Navigate into the 'cmake-build' directory in command prompt and run cmake ../. This creates the CMake build files based on the CMakeLists.txt in the 'DEMOranges' directory.
    4. While in the 'cmake-build' directory run cmake --build ./ --target <target name>. <target name> can be any target from this list. I recommend building run_tests first to check whether your system is correctly set up.
  5. Run the .exe file for whichever target you built.