| View previous topic :: View next topic |
| Author |
Message |
antiroC
Joined: 17 Sep 2005 Posts: 6
|
Posted: Sun Oct 02, 2005 2:19 am Post subject: Unexpected EOF error |
|
|
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: | /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: | 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. |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Sun Oct 02, 2005 6:03 am Post subject: Re: Unexpected EOF error |
|
|
| antiroC wrote: |
| Code: | /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: | | psp-config --pspsdk-path |
| Code: | | `psp-config --pspsdk-path`/../bin/sdl-config --cflags |
| Code: | | `psp-config --pspsdk-path`/../bin/sdl-config --libs |
|
|
| Back to top |
|
 |
antiroC
Joined: 17 Sep 2005 Posts: 6
|
Posted: Sun Oct 02, 2005 7:19 pm Post subject: |
|
|
Thanks for replying.
The outputs are:
| Code: | $ psp-config --pspsdk-path
/usr/local/pspdev/psp/sdk |
| Code: | $ 'psp-config --pspsdk-path'/../bin/sdl-config --cflags
bash: psp-config --pspsdk-path/../bin/sdl-config: No such file or directory |
| Code: | $ '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? |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Sun Oct 02, 2005 8:34 pm Post subject: |
|
|
| Those were supposed to be backquotes, not apostrophes. |
|
| Back to top |
|
 |
antiroC
Joined: 17 Sep 2005 Posts: 6
|
Posted: Mon Oct 03, 2005 2:50 am Post subject: |
|
|
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.... |
|
| Back to top |
|
 |
|