SDL digest, Vol 1 #295 - 23 msgs

oops, mistake in my last message.

I’m getting errors regarding the -c in rm (I piped the make output to a
file, but it didn’t seem to put that error in, I wonder why?):
rm: invalid option – c

and in the end (last line)

make: *** [all-recursive] error 1> Message: 19

Date: Sat, 16 Mar 2002 02:51:16 -0800
From: Parveen Kaler
To: sdl at libsdl.org
Subject: Re: [SDL] sdl issues (installation)
Reply-To: sdl at libsdl.org

Steven James Stapleton wrote:

I’m trying to decide if the issues are with SDL or my makefile program
and

SH, or the components in SDL. I’m following the directions to setup
LibSDL

but failing miserably: I’m using MinGWin, in Windows XP (don’t laugh, it
was

an experiment and I’ll be going back to 2k!)

sh configure
—results clipped—
make

—results—
Making all in src
c:\MinGWin\bin\make.exe[1]: Entering directory
c:/download/programs/SDL/SDL-1.2.3/SDL-1.2.3/src' Making all in main c:\MinGWin\bin\make.exe[2]: Entering directoryc:/download/programs/SDL/SDL-1.2.3/SDL-1.2.3/src/main’

DPACKAGE=“SDL” -DVERSION=“1.2.3” -DHAVE_ALLOCA=1 -I. -I. -g -

O2 -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -I…/…/src/video/wincommon -

DENABLE_WINDIB -I…/…/include -I…/…/include/SDL -I…/…/src -I…/…/src/w

in32 -I…/…/src/main -I…/…/src/audio -I…/…/src/video -I…/…/src/events

-I…/…/src/joystick -I…/…/src/cdrom -I…/…/src/thread -I…/…/src/tim
er

-I…/…/src/endian -I…/…/src/file -c SDL_main.c
rm -f libSDLmain.a
ar cru libSDLmain.a SDL_main.o
ranlib libSDLmain.a
C:/MinGWin/msys/1.0/bin/sh.exe …/…/libtool --mode=compile

DPACKAGE=“SDL” -DVERSION=“1.2.3” -DHAVE_ALLOCA=1 -I. -I. -g -

O2 -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -I…/…/src/video/wincommon -

DENABLE_WINDIB -I…/…/include -I…/…/include/SDL -I…/…/src -I…/…/src/w

in32 -I…/…/src/main -I…/…/src/audio -I…/…/src/video -I…/…/src/events

-I…/…/src/joystick -I…/…/src/cdrom -I…/…/src/thread -I…/…/src/tim
er

-I…/…/src/endian -I…/…/src/file -c dummy.c
rm -f .libs/file -c dummy.lo

gcc -DPACKAGE=\SDL" -DVERSION=“1.2.3” -DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall -

DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -I…/…/src/video/wincommon -DENABLE_WI

NDIB -I…/…/include -I…/…/include/SDL -I…/…/src -I…/…/src/win32 -I…/

…/src/main -I…/…/src/audio -I…/…/src/video -I…/…/src/events -I…/…/s

rc/joystick -I…/…/src/cdrom -I…/…/src/thread -I…/…/src/timer -I…/…/s

rc/endian -I…/…/src/file -c dummy.c -DPIC -o .libs/file -c dummy.lo
c:\MinGWin\bin\make.exe[2]: Leaving directory
c:/download/programs/SDL/SDL-1.2.3/SDL-1.2.3/src/main' c:\MinGWin\bin\make.exe[1]: Leaving directoryc:/download/programs/SDL/SDL-1.2.3/SDL-1.2.3/src’

— end results—

Any suggestions

-Jim Stapleton


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Umm…what seems to be the problem? It looks as if everything compiled
fine. I
don’t have experience with SDL in windows with MinGWin, but the procedure
to get
SDL installed in Linux is:
./configure
make
make install
So, I’m gonna take a wild guess and say that you should do something like:
sh configure
make
make install

P.

oops, mistake in my last message.

I’m getting errors regarding the -c in rm (I piped the make output to a
file, but it didn’t seem to put that error in, I wonder why?):

Maybe you aren’t piping stderr as well? Output and errors are 2 different
streams.

rm: invalid option – c

I wouldn’t think there was even an ‘rm’ command in Windows XP. Anyway, look
at a manpage (for future reference for you, do a web search in google for
’rm manpage’), there is no -c option, at least for the GNU verson of rm. So
you’ll have to try and figure out exactly what the programmers was trying to
accomplish with this and modify it to do the same on your system. Or you
can just remove it and hope it works. :slight_smile:

and in the end (last line)

make: *** [all-recursive] error 1

This is useless, though. It only lets you know there was an error earlier
on, which is handy so you know there was one. Not always easy to tell with
all the garbage gcc likes to throw out as it works.

-Jason

----- Original Message -----
From: stapleton.41@osu.edu (Steven James Stapleton)
To:
Sent: Saturday, March 16, 2002 3:33 PM
Subject: [SDL] Re: SDL digest, Vol 1 #295 - 23 msgs

Most likely that you didn’t put stdout and stderr to be the same.
So rm don’t have option “c” so what are you trying to do with rm?On 2002.03.16 22:33 Steven James Stapleton wrote:

oops, mistake in my last message.

I’m getting errors regarding the -c in rm (I piped the make output to
a
file, but it didn’t seem to put that error in, I wonder why?):
rm: invalid option – c

I’m not trying to do anything myself with rm. I didn’t put in the rm
command, and I’d rather not try to search through all the makefiles of the
SDL library. I know quite well that rm does not have a ‘c’ command. rm was
gained by some programs from some executable files included with the MinGW
distribution.

All I want to know is how to include SDL functions into my program under
MinGW, but I can’t seem to get the directions to work (the following is a
coplete list of errors given by make (‘sh configure’ then ‘make’ in the dir
that SDL was extracted to).

rm: invalid option – c
rm: invalid option – c
…/…/libtool: eval: line 1: unexpected EOF while looking for matching `"’
…/…/libtool: eval: line 2: syntax error: unexpected end of file
rm: invalid option – c
c:\MinGWin\bin\make.exe[2]: *** [dummy.lo] Error 1
c:\MinGWin\bin\make.exe[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

-Jim