Graphics ~ Working with Raylib and SSH - uchicago-cs/chiventure GitHub Wiki

First, ssh into one of the csil linux machines. Then, run the following:

cd ~
git clone https://github.com/raysan5/raylib.git raylib
cd raylib
cmake -DBUILD_SHARED_LIBS=ON -DOPENGL_VERSION=2.1 -B build/
make -C build
mkdir -p ~/.local/
cd build
DESTDIR="~/.local/" make install

This clones the raylib library from its git repo, builds it in its directory, then creates a local folder and installs the library there.

Once this is complete, go back into the chiventure directory, and run the following:

mkdir build
cmake -DCMAKE_FIND_ROOT_PATH="~/.local" -B build/

To build the chiventure executable you'll need to run make from inside the build directory, so you'll need to do the following:

cd build
make

To actually see the graphics, you’ll need to log into http://vdesk.cs.uchicago.edu/ to get an Ubuntu desktop (log in w your cnet and password) — this has the same file system as if you’d ssh’ed, so you can even go as far as building and making chiventure ssh’ed from your terminal and then just running it from vdesk