commanderx16 / x16-emulator

Emulator for the Commander X16 8-bit computer
384 stars 60 forks source link

Guide to build windows version under wsl #314

Open ghhann opened 3 years ago

ghhann commented 3 years ago

Was trying to build the windows version from source.inside the makefile it mentions make package-win but does not run and I installed sdl2 and mingw. I have no problems making the linux version

Was looking for a guide. Does one exist on the steps to build the windows zip package?

Thanks

ghhann commented 3 years ago

So I started a guide and ran into the following error: i686-w64-mingw32-gcc -o x16emu cpu/fake6502.o memory.o disasm.o video.o ps2.o via.o loadsave.o vera_spi.o audio.o vera_pcm.o vera_psg.o sdcard.o main.o debugger.o javascript_interface.o joystick.o rendertext.o keyboard.o icon.o extern/src/ym2151.o -L/usr/x86_64-w64-mingw32/lib -lmingw32 -lSDL2main -lSDL2 -mwindows -lm -L/usr/i686-w64-mingw32/lib -Wl,--subsystem,console /usr/bin/i686-w64-mingw32-ld: /usr/x86_64-w64-mingw32/lib/libmingw32.a: error adding symbols: file format not recognized collect2: error: ld returned 1 exit status make[1]: [Makefile:55: all] Error 1 make[1]: Leaving directory '/home/ghhann/Programs/commanderx16/x16-emulator' make: [Makefile:133: package_win] Error 2

Any thoughts?

ghhann commented 3 years ago

Ok solved that issue need to set all paths to i686-w64-mingw32 to compile the program for 32 bits