Unexpected EOF error

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
antiroC
Posts: 6
Joined: Sat Sep 17, 2005 1:29 am

Unexpected EOF error

Post by antiroC »

Spent all day installing/removing and reinstalling Cygwin, the toolchain, and finally SDL.

Before I installed SDL all the sample programs etc. compiled no problem, but now that SDL is installed, everything I try seems to compile OK until the very end, where I get these errors:

Code: Select all

/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [hello.elf] Error 2
The makefile I am using is:

Code: Select all

TARGET = hello
OBJS = hello.o

CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = hello

PSPSDK=$(shell psp-config --pspsdk-path)

PSPBIN = $(PSPSDK)/../bin
CFLAGS += `$(PSPBIN)/sdl-config --cflags`
LIBS += `$(PSPBIN)/sdl-config --libs`


include $(PSPSDK)/lib/build.mak 

Does anyone have any idea what might be causing this and how to fix it??
I've done a forum search but can't find anything similar.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Re: Unexpected EOF error

Post by jimparis »

antiroC wrote:

Code: Select all

/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [hello.elf] Error 2
What is the output of the commands

Code: Select all

psp-config --pspsdk-path

Code: Select all

`psp-config --pspsdk-path`/../bin/sdl-config --cflags

Code: Select all

`psp-config --pspsdk-path`/../bin/sdl-config --libs
antiroC
Posts: 6
Joined: Sat Sep 17, 2005 1:29 am

Post by antiroC »

Thanks for replying.

The outputs are:

Code: Select all

$ psp-config --pspsdk-path
/usr/local/pspdev/psp/sdk

Code: Select all

$ 'psp-config --pspsdk-path'/../bin/sdl-config --cflags
bash: psp-config --pspsdk-path/../bin/sdl-config: No such file or directory

Code: Select all

$ 'psp-config --pspsdk-path'/../bin/sdl-config --libs
bash: psp-config --pspsdk-path/../bin/sdl-config: No such file or directory
Looks like SDL isn't installed properly after all?
If that is the case though, why won't even non-SDL programs compile any more?
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Those were supposed to be backquotes, not apostrophes.
antiroC
Posts: 6
Joined: Sat Sep 17, 2005 1:29 am

Post by antiroC »

Doh! Sorry about that...

Anyway, after another long day spent messing about I *finally* have a working setup.

Dunno what was causing the problems, but I eventually resorted to uninstalling/removing everything - cygwin, the toolchain, the sdk, and sdl.

Reinstalled the lot from scratch and after a lot of hassle it works. The PSP is sitting here displaying a picture and playing a nice tune courtesy of SDL_mixer....

Cheers, and thanks for trying to help....
Post Reply