forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unexpected EOF error

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
antiroC



Joined: 17 Sep 2005
Posts: 6

PostPosted: Sun Oct 02, 2005 2:19 am    Post subject: Unexpected EOF error Reply with quote

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
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sun Oct 02, 2005 6:03 am    Post subject: Re: Unexpected EOF error Reply with quote

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
View user's profile Send private message
antiroC



Joined: 17 Sep 2005
Posts: 6

PostPosted: Sun Oct 02, 2005 7:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sun Oct 02, 2005 8:34 pm    Post subject: Reply with quote

Those were supposed to be backquotes, not apostrophes.
Back to top
View user's profile Send private message
antiroC



Joined: 17 Sep 2005
Posts: 6

PostPosted: Mon Oct 03, 2005 2:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group