emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.83k stars 3.31k forks source link

GL/mesa_wgl.h not found when including GLFW.h #2585

Closed sasmaster closed 5 years ago

sasmaster commented 10 years ago

GL/mesa_wgl.h not found when including GLFW.h in the latest version (1.21)

kripken commented 10 years ago

Do you have a testcase for this? (We have some glfw tests which pass, so you must be doing something our test suite does not cover)

sasmaster commented 10 years ago

Well, I thought maybe something wrong with my code but then tried GLFW.c example from the SDK and the same is there. I am using VS2010 to compile emscripten .My machine is win 7 64bit On Jul 27, 2014 5:27 AM, "Alon Zakai" notifications@github.com wrote:

Do you have a testcase for this? (We have some glfw tests which pass, so you must be doing something our test suite does not cover)

— Reply to this email directly or view it on GitHub https://github.com/kripken/emscripten/issues/2585#issuecomment-50253834.

Daft-Freak commented 10 years ago

https://github.com/kripken/emscripten/blob/master/system/include/GL/gl.h#L94

#if defined(_WIN32) && !defined(_WINGDI_) && !defined(_WIN32_WCE) \
&& !defined(_GNU_H_WINDOWS32_DEFINES) && !defined(OPENSTEP) \
&& !defined(__CYGWIN__) || defined(__MINGW32__)
#include <GL/mesa_wgl.h>
#endif

Looks like _WIN32 is defined.

sasmaster commented 10 years ago

Well,I am using VS2010 to compile,And I set Emscripten in config manager.Also I see that EMSCRIPTEN macro is active.So why _WIN32 gets activated anyway?Maybe a bug in emscripten VS plugin?

On Sun, Jul 27, 2014 at 12:55 PM, Charlie Birks notifications@github.com wrote:

https://github.com/kripken/emscripten/blob/master/system/include/GL/gl.h#L94

if defined(_WIN32) && !defined(WINGDI) && !defined(_WIN32_WCE) \

&& !defined(_GNU_H_WINDOWS32_DEFINES) && !defined(OPENSTEP) \ && !defined(CYGWIN) || defined(MINGW32)

include <GL/mesa_wgl.h>

endif

Looks like _WIN32 is defined.

— Reply to this email directly or view it on GitHub https://github.com/kripken/emscripten/issues/2585#issuecomment-50260433.

Michael Ivanov Graphics Software onlygraphix.com Tel:+972 54 4962254

sasmaster commented 10 years ago

Any clue on this? On Jul 27, 2014 4:09 PM, "Michael IV" explomaster@gmail.com wrote:

Well,I am using VS2010 to compile,And I set Emscripten in config manager.Also I see that EMSCRIPTEN macro is active.So why _WIN32 gets activated anyway?Maybe a bug in emscripten VS plugin?

On Sun, Jul 27, 2014 at 12:55 PM, Charlie Birks notifications@github.com wrote:

https://github.com/kripken/emscripten/blob/master/system/include/GL/gl.h#L94

if defined(_WIN32) && !defined(WINGDI) && !defined(_WIN32_WCE) \

&& !defined(_GNU_H_WINDOWS32_DEFINES) && !defined(OPENSTEP) \ && !defined(CYGWIN) || defined(MINGW32)

include <GL/mesa_wgl.h>

endif

Looks like _WIN32 is defined.

— Reply to this email directly or view it on GitHub https://github.com/kripken/emscripten/issues/2585#issuecomment-50260433 .

Michael Ivanov Graphics Software onlygraphix.com Tel:+972 54 4962254

juj commented 10 years ago

Same advice as https://github.com/kripken/emscripten/issues/2584#issuecomment-50287678

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because there has been no activity in the past 2 years. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.