olofson / eel

The Extensible Embeddable Language for scripting in realtime applications
http://eelang.org/
zlib License
46 stars 4 forks source link

Build scripts mix up SDL 1.2 and SDL2 when cross-compiling #106

Closed olofson closed 5 years ago

olofson commented 7 years ago
In file included from /home/david/src/mxe/usr/i686-w64-mingw32.shared/include/SDL2/SDL_video.h:32:0,
                 from /home/david/src/mxe/usr/i686-w64-mingw32.shared/include/SDL2/SDL_events.h:33,
                 from /home/david/src/mxe/usr/i686-w64-mingw32.shared/include/SDL2/SDL.h:41,
                 from /home/david/src/mxe/usr/i686-w64-mingw32.shared/include/SDL2/SDL_net.h:42,
                 from /home/david/src/eel/src/eelium/eel_net.h:29,
                 from /home/david/src/eel/src/eelium/eel_net.c:26:
/home/david/src/mxe/usr/i686-w64-mingw32.shared/include/SDL2/SDL_pixels.h:264:9: error: enumerator value for 'SDL_PIXELFORMAT_YV12' is not an integer constant
         SDL_DEFINE_PIXELFOURCC('Y', 'V', '1', '2'),
         ^
[...]

Could this have something to do with Audiality 2 being built for SDL2, whereas EEL (still) only supports SDL 1.2...?

olofson commented 7 years ago

Of course, this isn't going to be a problem once I've migrated all my active projects to SDL2 - and EEL is the last one now.