mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] State of SDL2 in MXE


From: Martin Gerhardy
Subject: Re: [Mingw-cross-env-list] State of SDL2 in MXE
Date: Tue, 25 Jun 2013 11:52:04 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

Am 25.06.2013 11:39, schrieb Schrober:
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

Thanks a lot - but this is something that you should really also push upstream.

http://bugzilla.libsdl.org/enter_bug.cgi?product=SDL

Greetings
Martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]