Build the graphics backend:
mkdir build
cd build
cmake ..
make
First, build the backend. Then, from the root of the project:
# enter cpptest directory
cd cpptest
# build it
CPPFLAGS='-I../include' LDFLAGS='-L../bin-x64' BINDIR=bin OBJDIR=bin/obj LIBDIR=lib make
If you get an error about std::experimental::filesystem, your compiler is old and will require you to add `-lstdc++fs` to the linker flags to link the experimental filesystem.
# run it
LD_LIBRARY_PATH='../bin-x64' bin/cpptest
Unknown
-
Install the appropriate version of nixGL for your graphics card driver.
-
Use
nixGLXXX
to run executables as in the example below.
# Using proprietary Nvidia backend, adjust for your graphics driver.
nixGLNvidia ./result/bin/fgTests