First post, by emendelson
This is probably a question for Dominus, who has been amazingly generous in the past. About a year ago I used Dominus's knowledge to create this one-stop build-script for DOSBox under macOS:
https://github.com/emendelson/OneStopDOSBoxOSX
I've now updated the script (fixing a download link and removing an error), but I'm baffled by a new error in the part of the script that builds SDL-1.2.
Here is the section of the script that builds SDL (a previous part of the script installed hg in order to download SDL)
mkdir -p $HOME/Development/SDL-1.2 cd $HOME/Development/SDL-1.2 if [ $DOWNLOAD=1 ] ; then echo hg clone -u SDL-1.2 http […]
mkdir -p $HOME/Development/SDL-1.2
cd $HOME/Development/SDL-1.2
if [ $DOWNLOAD=1 ] ; then
echo
hg clone -u SDL-1.2 https://hg.libsdl.org/SDL $HOME/Development/SDL-1.2
echo "Downloading patch file"
curl -o CoreAudio-SDL-1.2.diff -L https://bugzilla-attachments.libsdl.org/attac … ent.cgi?id=2272
echo "Patching SDL-1.2"
patch -p1 -N < CoreAudio-SDL-1.2.diff
fidistclean
./autogen.sh >/dev/null
./configure -q --prefix=$HOME/Development/i386 --enable-static --enable-joystick --enable-cdrom --enable-video-cocoa --enable-video-opengl --disable-nasm --disable-video-x11 --without-x
make clean >/dev/null && make >/dev/null && make install >/dev/null && make clean >/dev/null
cd $HOME/Development
else
cd $HOME/Development/SDL-1.2
make uninstall >/dev/null
cd ..
rm -rf $HOME/Development/SDL-1.2
rmdir $HOME/Development/i386/include/SDL
fi
When I run the script, these errors occur, first when it runs ./configure:
Generating dependencies for ./src/video/quartz/SDL_QuartzWM copy.m
build-scripts/makedep.sh: line 20: ./src/video/quartz/SDL_QuartzWM: No such file or directory
Generating dependencies for ./src/video/quartz/SDL_QuartzWM.m
Then when it runs make:
Generating dependencies for ./src/main/macosx/SDLMain.m src/video/quartz/SDL_QuartzWM.m:22:10: fatal error: 'SDL_config.h' file […]
Generating dependencies for ./src/main/macosx/SDLMain.m
src/video/quartz/SDL_QuartzWM.m:22:10: fatal error: 'SDL_config.h' file not
found
#include "SDL_config.h"
It's certainly true that there is no such file or directory as ./src/video/quartz/SDL_QuartzWM but SDL_Config.h is in the include directory.
This script worked a year ago under Sierra. Can anyone suggest what may be going wrong now? Should I add something to the configure parameters that would fix the problems with quartz?
Any insights will be very welcome.