Ubuntu 16.04 LTS
----------------
sudo apt-get install build-essential libgl1-mesa-dev
Qt, Clion, ...
SFML 2.3.2
----------------
sudo apt-get install libsfml-dev
test code: hxxp://www.sfml-dev.org/tutorials/2.3/start-linux.php
g++ -std=c++11 -c main.cpp
g++ main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system
./sfml-app
GLFW 3.1.2
----------------
sudo apt-get install libglfw3-dev
test code: hxxp://www.glfw.org/docs/latest/quick.html
g++ -std=c++11 -c main.cpp
g++ main.o -o glfw-app -lGL -lGLU -lglfw -lX11 -lXxf86vm -lXrandr -lpthread -lXi
?(-lXinerama -lXcursor -ldl)
./glfw-app