Closed choretortle closed 3 years ago
this https://github.com/orangeduck/Corange/blob/master/include/SDL2/SDL_local.h#L115
comment this
-#if !defined(__unix__) && !defined(__APPLE__)
- extern GLACTIVETEXTUREFN glActiveTexture;
- extern GLCOMPRESSEDTEXIMAGE2DFN glCompressedTexImage2D;
- extern GLTEXIMAGE3DFN glTexImage3D;
-#endif
+//#if !defined(__unix__) && !defined(__APPLE__)
+//extern GLACTIVETEXTUREFN glActiveTexture;
+//extern GLCOMPRESSEDTEXIMAGE2DFN glCompressedTexImage2D;
+//extern GLTEXIMAGE3DFN glTexImage3D;
+//#endif
And compile. In fact, here you need to solve by adding a check, but for your case this block is not needed.
Or maybe for example
- !defined(__unix__) && !defined(__APPLE__)
+ !defined(__unix__) && !defined(__APPLE__) && !defined(__MSYSMINGW__)
and CC=x86_64-w64-mingw32-gcc-8.3-posix -D__MSYSMINGW__
I do not remember which definition defines exactly what we are working with MSys2. You just need to check or del code. Sorry for my english
Thank you, fedor-elizarov ! That's definitely the issue 👍 I can move forward with ironing it out.
I'm not experienced at C command line compilation; compiling for Windows, attempted from both Windows MSys2 and Linux platforms with same error. Only change to code was the CC and AR variables in Makefile. I'm not sure if the problem is me, or that I'm the only one compiling this way:
I downloaded the mingw SDL, SDL_mixer, SDL_net libraries and just copied the headers into the .include/SDL2 folder manually This is the "make" result: