SOLVED - help editing SDL_config.h to get DOSbox working
#1
SOLVED - help editing SDL_config.h to get DOSbox working
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?
(This post was last modified: 12-14-2018, 12:32 AM by gijoe77.)
gijoe77
Tezro

Trade Count: (1)
Posts: 644
Threads: 34
Joined: Jun 2018
Find Reply
11-30-2018, 02:07 AM


Messages In This Thread
SOLVED - help editing SDL_config.h to get DOSbox working - by gijoe77 - 11-30-2018, 02:07 AM
RE: help editing SDL_config.h to get DOSbox working - by gijoe77 - 12-01-2018, 05:33 PM
RE: help editing SDL_config.h to get DOSbox working - by gijoe77 - 12-02-2018, 05:52 AM
RE: SOLVED - help editing SDL_config.h to get DOSbox working - by gijoe77 - 12-14-2018, 12:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)