Building on Linux - Xorgon/DEMOranges GitHub Wiki
The following are step-by-step instructions for building the project on Linux. This should work for both AMD and NVIDIA installations.
-
Install CMake (installation instructions can be found here).
-
Install the appropriate OpenCL SDK for your system. For NVIDIA instructions can be found here. The AMD SDK should be shipped with AMD GPU drivers (reference).
-
Build the project.
- Download the source and unzip it. Alternatively, if git is installed, simply do
git clone https://github.com/Xorgon/DEMOranges
. - Create a directory within the 'DEMOranges' directory called 'cmake-build' (or something similar).
- 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. - While in the 'cmake-build' directory run
cmake --build ./ --target <target name>
.<target name>
can be any target from this list. I recommend buildingrun_tests
first to check whether your system is correctly set up.
- Download the source and unzip it. Alternatively, if git is installed, simply do
-
Run the program file for whichever target you built (
./<target name>
).