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

glew 2.1.0 release not compiling on MSYS2 - X11 headers required?? #297

Open
dtromb opened this issue Feb 20, 2021 · 1 comment
Open

glew 2.1.0 release not compiling on MSYS2 - X11 headers required?? #297

dtromb opened this issue Feb 20, 2021 · 1 comment

Comments

@dtromb
Copy link

dtromb commented Feb 20, 2021

I'm trying to compile the release 2.1.0 on msys2.

Although config/config.guess is correctly determining the platform triple (x86_64-pc-mingw64), the build fails immediately with the following error:

gcc -fno-builtin -DGLEW_NO_GLU -DGLEW_BUILD -O2 -Wall -W -Iinclude -fno-builtin -fno-stack-protector -o tmp/mingw/default/shared/glew.o -c src/glew.c
In file included from src/glew.c:55:
include/GL/glxew.h:98:10: fatal error: X11/Xlib.h: No such file or directory
98 | #include <X11/Xlib.h>
| ^~~~~~~~~~~~

Of course, X11 headers nor are not normally present on a Windows system. Nor do we need/have GLX, since no X. Are they really required here, or is the build system broken?

(Additionally, when making the generated sources in ./auto there are a bunch of warnings about regex not matching that I don't remember seeing on other platforms. I don't know how the ./auto system actually works, but maybe this is related, since it is generating the source with the bad dependency above?)

@nigels-com
Copy link
Owner

Try: $ make SYSTEM=msys-win64, perhaps we need to add x86_64-pc-mingw64 along side that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants