Open LinArcX opened 4 years ago
Hello,
I ran into the same problem on Arch Linux. Actually, most distributions are probably affected by this. It comes from a recent (a few months?) incompatibility between GLEXT and GLEW on systems with MESA. This is not a problem typically with nanovg itself, although it affects some of the example programs and your overall use of GLFW.
See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915112
You can try reporting this to your Linux distribution's team, and/or to the developers of GLEW and/or GLFW. It's been known for a few months, but still no fix on most distributions for now.
One quick temporary fix would be NOT to define GLFW_INCLUDE_GLEXT before including <GLFW/glfw3.h>. You won't get access to GLEXT though. I don't know how problematic or critical that would be. Probably not really just to build the examples. For your own developments, I don't know. See GLFW's documentation for how it uses GLEXT...
Quick update: this has been fixed in GLEW. You need to update GLEW from git currently, has the fix has not made it to an official release as of yet. On Arch Linux, installing glew-git from AUR works.
On Arch Linux, installing glew-git from AUR works.
I can confirm this!
I’m on Void Linux and nanovg compiles fine now. It has been working since I first tried a few months ago.
$ xbps-query -Rs glew
[*] glew-2.2.0_1 OpenGL Extension Wrangler Library
[*] glew-devel-2.2.0_1 OpenGL Extension Wrangler Library - development files
Hi. i want to compile nanovg. first create make files via:
Then switch to build dir:
And finaly make:
Tip: I installed glfw-devel and glew-devel on my system.