Skip to content

Instantly share code, notes, and snippets.

@hww
Forked from campenr/openGL_on_WLSS.md
Created November 29, 2018 13:38
Show Gist options
  • Save hww/7898ac45612584dd43b93f5c83d247e9 to your computer and use it in GitHub Desktop.
Save hww/7898ac45612584dd43b93f5c83d247e9 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