I've already compiled scummvm with a crosscompiler from Linux x86_64 to Win32.
So the next thing I wanted to try out was if it is possible to compile scummvm with the new MinGW-w64 for the target Win64. As far as I could get I could compile SDL, zlib, libogg, libvorbis, libmad, FLAC and libmpeg2.
But when I try to crosscompile scummvm, I get the following error:
Code: Select all
make
mkdir -p backends/platform/sdl/.deps
x86_64-pc-mingw32-g++ -Wp,-MMD,"backends/platform/sdl/.deps/events.d",-MQ,"backends/platform/sdl/events.o",-MP -Wall -g -W -Wno-unused-parameter -Wno-parentheses -Wno-empty-body -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -pedantic -Wpointer-arith -Wcast-qual -Wcast-align -Wshadow -Wimplicit -Wnon-virtual-dtor -Wwrite-strings -fno-rtti -fno-exceptions -fcheck-new -DHAVE_CONFIG_H -DWIN32 -D__USE_MINGW_ANSI_STDIO=0 -DDATA_PATH=\"/usr/local/share/scummvm\" -DPLUGIN_DIRECTORY=\"/usr/local/lib/scummvm\" -DSDL_BACKEND -DENABLE_SCUMM=STATIC_PLUGIN -DENABLE_SCUMM_7_8 -DENABLE_HE -DENABLE_AGI=STATIC_PLUGIN -DENABLE_AGOS=STATIC_PLUGIN -DENABLE_CINE=STATIC_PLUGIN -DENABLE_DRASCULA=STATIC_PLUGIN -DENABLE_GOB=STATIC_PLUGIN -DENABLE_GROOVIE=STATIC_PLUGIN -DENABLE_KYRA=STATIC_PLUGIN -DENABLE_LURE=STATIC_PLUGIN -DENABLE_PARALLACTION=STATIC_PLUGIN -DENABLE_QUEEN=STATIC_PLUGIN -DENABLE_SAGA=STATIC_PLUGIN -DENABLE_IHNM -DENABLE_SKY=STATIC_PLUGIN -DENABLE_SWORD1=STATIC_PLUGIN -DENABLE_SWORD2=STATIC_PLUGIN -DENABLE_TOUCHE=STATIC_PLUGIN -DENABLE_TUCKER=STATIC_PLUGIN -I. -I. -I./engines -I/usr/local/mingw64-cross/x86_64-pc-mingw32/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -c backends/platform/sdl/events.cpp -o backends/platform/sdl/events.o
mkdir -p backends/platform/sdl/.deps
x86_64-pc-mingw32-g++ -Wp,-MMD,"backends/platform/sdl/.deps/graphics.d",-MQ,"backends/platform/sdl/graphics.o",-MP -Wall -g -W -Wno-unused-parameter -Wno-parentheses -Wno-empty-body -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -pedantic -Wpointer-arith -Wcast-qual -Wcast-align -Wshadow -Wimplicit -Wnon-virtual-dtor -Wwrite-strings -fno-rtti -fno-exceptions -fcheck-new -DHAVE_CONFIG_H -DWIN32 -D__USE_MINGW_ANSI_STDIO=0 -DDATA_PATH=\"/usr/local/share/scummvm\" -DPLUGIN_DIRECTORY=\"/usr/local/lib/scummvm\" -DSDL_BACKEND -DENABLE_SCUMM=STATIC_PLUGIN -DENABLE_SCUMM_7_8 -DENABLE_HE -DENABLE_AGI=STATIC_PLUGIN -DENABLE_AGOS=STATIC_PLUGIN -DENABLE_CINE=STATIC_PLUGIN -DENABLE_DRASCULA=STATIC_PLUGIN -DENABLE_GOB=STATIC_PLUGIN -DENABLE_GROOVIE=STATIC_PLUGIN -DENABLE_KYRA=STATIC_PLUGIN -DENABLE_LURE=STATIC_PLUGIN -DENABLE_PARALLACTION=STATIC_PLUGIN -DENABLE_QUEEN=STATIC_PLUGIN -DENABLE_SAGA=STATIC_PLUGIN -DENABLE_IHNM -DENABLE_SKY=STATIC_PLUGIN -DENABLE_SWORD1=STATIC_PLUGIN -DENABLE_SWORD2=STATIC_PLUGIN -DENABLE_TOUCHE=STATIC_PLUGIN -DENABLE_TUCKER=STATIC_PLUGIN -I. -I. -I./engines -I/usr/local/mingw64-cross/x86_64-pc-mingw32/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -c backends/platform/sdl/graphics.cpp -o backends/platform/sdl/graphics.o
backends/platform/sdl/graphics.cpp: In member function 'virtual void OSystem_SDL::copyRectToScreen(const byte*, int, int, int, int, int)':
backends/platform/sdl/graphics.cpp:796: error: cast from 'const byte*' to 'long int' loses precision
backends/platform/sdl/graphics.cpp: In member function 'void OSystem_SDL::addDirtyRgnAuto(const byte*)':
backends/platform/sdl/graphics.cpp:1000: error: cast from 'const byte*' to 'long int' loses precision
make: *** [backends/platform/sdl/graphics.o] Fehler 1
Code: Select all
./configure --host=x86_64-pc-mingw32 --with-sdl-prefix=/usr/local/mingw64-cross/x86_64-pc-mingw32