On Monday 24 June 2013 23:39:40 Schrober wrote:
On Sunday 23 June 2013 16:44:37 Martin Gerhardy wrote:
hi
there is a pull request for it available on github.
it includes sdl_image, sdl_mixer and smpeg2, no sdl_ttf or sdl_net yet
though.
feedback on this would be great.
regards
martin
Am 23.06.2013 um 10:56 schrieb Schrober <address@hidden>:
Hi,
is there currently some work in progress to get SDL2 in MXE? I wanted to
test some things on windows and could only find an old thread from pre
rc1 times.
Thanks for the info. I've tried it but a compile+link run with i686-w64-
mingw32-g++ failed with an
i686-w64-mingw32-g++: error: unrecognized command line option '-XCClinker'
It seems to come from the link flags of i686-w64-mingw32-sdl2-config. I've
attached a version of the sdl2.mk which fixes this problem for me.
I get a lot of errors when compiling something
i686-w64-mingw32-g++ -fvisibility-inlines-hidden -std=gnu++0x -O3 -Wall -
ffast-math -fno-strict-aliasing -fvisibility=hidden -mmmx -msse -fno-PIC -
I/home/franz/tmp/mxe/usr/i686-w64-mingw32/include -
I/home/franz/tmp/mxe/usr/i686-w64-mingw32/include/libpng16 -
I/home/franz/tmp/mxe/usr/i686-w64-mingw32/include/SDL2 -Dmain=SDL_main -c -o
test.o test.cpp
In file included from /home/franz/tmp/mxe/usr/i686-w64-
mingw32/include/intrin.h:98:0,
from /home/franz/tmp/mxe/usr/i686-w64-
mingw32/include/SDL2/SDL_cpuinfo.h:44,
from /home/franz/tmp/mxe/usr/i686-w64-
mingw32/include/SDL2/SDL.h:71,
from test.cpp:40:
/home/franz/tmp/mxe/usr/i686-w64-mingw32/include/dvec.h: In function 'Is16vec8
sat_sub(const Is16vec8&, const Is16vec8&)':
/home/franz/tmp/mxe/usr/i686-w64-mingw32/include/dvec.h:409:89: error:
'_mm_subs_epi16' was not declared in this scope
inline Is16vec8 sat_sub(const Is16vec8 &a,const Is16vec8 &b) { return
_mm_subs_epi16(a,b); }
I've attached a new version to fix this in SDL_cpuinfo.h