so I was able to compile the latest dosbox 0.74-2 via this environment:
Code:
# needed beta/neko_gmp11-5.0.2-p1.tardist
# needed libFLAC from freeware
# final link line needs -lgen after dos/libdos.a
export CC=gcc
export CXX=g++
export CFLAGS=" -g0 -O2 -mips4"
export CXXFLAGS="-g0 -O2 -mips4"
export CPPFLAGS="-I/usr/nekoware/include/SDL"
export LDFLAGS=""
export LD_LIBRARYN32_PATH=/usr/nekoware/lib
#export ac_ct_CXX=g++
./configure -prefix=/usr/local
gmake
the issue is dosbox dies because (dummy) CDROM support isn't configured by default:
Code:
-bash-4.2$ ./dosbox
DOSBox version 0.74-2
Copyright 2002-2018 DOSBox Team, published under GNU GPL.
---
Exit to error: Can't init SDL SDL not built with cdrom support
-bash-4.2$
reading up on this issue via:
https://web.archive.org/web/201412152142...ox_on_irix
it appears I need to edit the SDL_config.h file to add dummy CDROM support, I've been trying multiple things, but I can't seem to figure out the right edits. Here are a few I tried:
Code:
-bash-4.2$ grep dosbox /usr/nekoware/include/SDL/SDL_config.h
#define SDL_CDROM_DISABLED 0 /* # Disabled to compile dosbox */
/* #undef SDL_CDROM_DUMMY /* uncomment for dosbox */
#define SDL_CDROM_DUMMY 1 /* added for dosbox */
-bash-4.2$
Does anyone have an idea what I'm doing wrong?