Skip to content

alecjacobson/glversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get started with

git clone --recursive https://github.com/alecjacobson/glversion.git

Then build with

mkdir build
cd build
cmake ../
make

Then run with

./glversion

Running via ssh

This uses GLFW to open an OpenGL context. On a normal terminal with an attached screen, this will silently use a 1 pixel "background window" and create buffers. When running over ssh, the program may immediately seg fault. This is because glfw is failing to create a context (Could I catch this more gracefully?).

The solution is to tell the terminal about the display setup. Issue this once:

export DISPLAY=:0

Depending on your setup you may first need to configure your X client on the server. For example, by issuing:

service lightdm stop
sudo nvidia-xconfig
service lightdm start

About

Use GLFW and cmake to determine OpenGL version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published