1
Programming / Re: [SDL2] SDL_ListModes and emulation
« on: October 31, 2024, 09:11:30 am »So I tried building fuse. For spectrum I used these configure arguments,Code: [Select]--without-libgcrypt --prefix=/@unixroot/usr/local LDFLAGS="-Zomf -Zhigh-mem -lcx"
and for Fuse,Code: [Select]--prefix=/Fuse-160 --without-x --without-gtk --disable-gtk3 --with-sdl LDFLAGS="-Zomf -Zhigh-mem -lcx" LIBS="-lbz2 -lz" LIBSPECTRUM_CFLAGS=-I/@unixroot/usr/local/include LIBSPECTRUM_LIBS=-l/@unixroot/usr/local/lib/spectrum.a 2>&1 | tee configure.log
and had to add to peripherals/ttx2000s.c, in the include area around line 37,Code: [Select]#ifdef __OS2__
#include <libcx/net.h>
#endif
I see configure output,Code: [Select]checking whether SDL UI requested... yes
and at the end,
configure: WARNING: SDL 2 not supported for the UI, using SDL 1 instead
checking for sdl-config... /@unixroot/usr/bin/sdl-config
checking for SDL - version >= 1.2.4... yesCode: [Select]****************************
*** Libspectrum features ***
****************************
Internal GLib replacement: no
zlib support: yes
bzip2 support: yes
audiofile support: no
********************
*** Fuse options ***
********************
User interface: sdl
Using SDL 2: no
Joystick support: yes
Using libjsw for joystick support: no
zlib support: yes
libxml2 support: yes
libpng support: yes
Available audio drivers: sdl null
Selected audio driver: sdl
Spectranet support: yes
SpeccyBoot support: no
TTX2000 S support: yes
Desktop integration: no
Type 'make' to compile Fuse
Unluckily, it crashes while, I think, trying to show the settings. fuse --help does work. Perhaps due to lack of utilities? All I feel like doing right now as I'm not really interested in the emulator.
Thanks a lot Dave, I skipped the network support and some other things in order to obtain something working.
Quite possibly you are experiencing my same problem - SDL initialization fails due to SDL_LoadModes returning a 3 value array but with only one mode valid (the other two crash initialization).
I'll surely take your work into account as soon as I can.
Mentore