platform.h problem glfw + glew

c0mputer_fr0d 101 Apr 02, 2013 at 02:59

fatal error: X11/Xlib.h: No such file or directory
I’m on windows with codeblocks and using mingw

I downloaded glfw the other day and linked it and everything. Trying to do hello triangle but the platform.h files that are in the glfw library are trying to include xlib files which are for the x window system on debian machines and what not. I was told glfw was cross platform. I don’t mind going on my linux boot but I have all my shit on windows and have the project all setup and everything. please help.
It’s also trying to include glx.h which doesn’t even exist
glfw 2.7.7
glew 1.9

2 Replies

Please log in or register to post a reply.

Reedbeta 167 Apr 02, 2013 at 04:50

There’s probably a configuration step you have to do to tell it to use a Windows version of the library. There’s probably a #define or something that switches it between Windows and Linux. You should look in the docs and READMEs and such; any necessary configuration should be described there.

c0mputer_fr0d 101 Apr 02, 2013 at 19:10

I think I have to use the windows binary download that has the dll and the .a files. I thought I could just download the source like other things I’ve used but the source package is only for x window system machines