Skip to content

Instantly share code, notes, and snippets.

@campenr
Created February 17, 2018 00:40
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save campenr/9ca59c70a82044b5f1d8638967a5411d to your computer and use it in GitHub Desktop.
Save campenr/9ca59c70a82044b5f1d8638967a5411d to your computer and use it in GitHub Desktop.
Developing openGL on Ubuntu on the Windows Linux Subsystem
  1. Install Ubuntu through the Windows store

  2. Enable rendering of GUI applications from Ubuntu/WLSS in Windows using a Windows X-server

  • Install VxSrv on Windows
  • On Ubuntu/WLSS open .bashrc and add the following lines to the end, then save file and restart:
# tell GUI display to use the Windows X-server listening on localhost:0.0
export DISPLAY=localhost:0.0
# make rendering happen on the Windows side of things rather than Ubuntu
export LIBGL_ALWAYS_INDIRECT=1
  1. Install libraries needed for openGL dev:
sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment