Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Nix-shell development environment #4

Merged
merged 3 commits into from
Feb 18, 2022

Conversation

adpextwindong
Copy link

Hi there, I got your fork to run under NixOS (on a fresh 21.11 vm). With this PR TreadMarks can be built straight out of the box in a nix-shell environment.

  • Adds shell.nix
  • Adds OpenGL_GL_PREFERENCE handling for NixOS to CMakeLists.txt

Building under NixOS

Run nix-shell to enter the nix-shell environment.

Set NIXOS to true in CMakeLists.txt (This step fixes the OpenGL issue explain bellow)

Run cmake . && make

Note regarding OpenGL_GL_PREFERENCE:

Setting it to LEGACY, FindOpenGL goes with libGL.so which works. As seen here:

unknown

Setting it to GLVND results in libOpenGL.so and libGLX.so which builds but has immediately visible issues in the Rolling Demo:

unknown

@ptitSeb ptitSeb merged commit 30efab1 into ptitSeb:master Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants