[SDL] Compiling SDL from CVS with MSYS/MinGW

John Popplewell john at johnnypops.demon.co.uk
Tue Feb 21 16:37:48 PST 2006


Hi,

I'm having problems building SDL from CVS. I've done a clean checkout
and run ./autogen.sh. When I run ./configure I get a set of errors and
./configure fails:

...
Generating dependencies for ./src/SDL.c
./build-scripts/makedep.sh: eval: line 3: syntax error: unexpected end of file
Generating dependencies for ./src/SDL_error.c
./build-scripts/makedep.sh: eval: line 3: syntax error: unexpected end of file
...

I'm using MSYS-1.0.10 (current) and I've tried the latest version of
bash-2.05b-MSYS snapshot, which fixes the above problem, but segfaults
elsewhere :-(

It seems the version of bash I'm using doesn't like these eval
statements in 'build-scripts/makedep.sh':

    echo "" >>${output}.new
    case $ext in
        c)   eval echo \\"	$BUILDC\\" >>${output}.new;;
        cc)  eval echo \\"	$BUILDCC\\" >>${output}.new;;
        m)   eval echo \\"	$BUILDM\\" >>${output}.new;;
        asm) eval echo \\"	$BUILDASM\\" >>${output}.new;;
        *)   echo "Unknown file extension: $ext";;
    esac

As a work-round I used this instead:

    echo "" >>${output}.new
    echo -n "	" >>${output}.new
    case $ext in
        c)   eval echo "$BUILDC" >>${output}.new;;
        cc)  eval echo "$BUILDCC" >>${output}.new;;
        m)   eval echo "$BUILDM" >>${output}.new;;
        asm) eval echo "$BUILDASM" >>${output}.new;;
        *)   echo "Unknown file extension: $ext";;
    esac

Also, there are a lot of .#nnn_headerfile_h files left behind in the
SDL12 top-level directory.

This new build process builds and installs a lot faster though: great
stuff!

regards,
John Popplewell





More information about the SDL mailing list