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 

sdl compiling error??

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



Joined: 11 Jan 2006
Posts: 26

PostPosted: Sun Jul 09, 2006 9:44 pm    Post subject: sdl compiling error?? Reply with quote

Hi!

when i'm tring to compile the sdl test sample taken from here it give me thi error:

Quote:
cc1: error: invalid option 'no-cygwin'


why?

this is makefile...

Code:
TARGET = sdltest
OBJS = sdltest.o

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

LIBDIR =
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP kxploit
EXTRA_CLEAN = my-clean

PSP_EBOOT_TITLE = SDL Test v1.1
PSP_DIR_NAME = SDLTEST

PSPSDK=$(shell psp-config --pspsdk-path)
PSPBIN = $(PSPSDK)/../bin
CFLAGS += $(shell $(PSPBIN)/sdl-config --cflags)
LIBS += $(shell $(PSPBIN)/sdl-config --libs)
include $(PSPSDK)/lib/build.mak

# Use "make pc" to build a copy of sdltest that runs on your PC.

pc: gcc -o sdltest-pc sdltest.c `sdl-config --cflags` `sdl-config --libs`

my-clean: rm -rf $(TARGET) $(TARGET)% sdltest-pc


thanks in advance for answer! ;)
_________________
i'm italian...
forgive me for my english! :)
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Mon Jul 10, 2006 1:21 am    Post subject: Reply with quote

Are you trying to build it for the PC ("make pc") or the PSP ("make")? What is the compiler command line being executed?
Back to top
View user's profile Send private message
dark_zarkon



Joined: 11 Jan 2006
Posts: 26

PostPosted: Mon Jul 10, 2006 7:56 pm    Post subject: Reply with quote

jimparis wrote:
Are you trying to build it for the PC ("make pc") or the PSP ("make")? What is the compiler command line being executed?


"make" and "make kxploit" doesn't work, "make pc" give me a different error:

Quote:
make: *** no rule to make target 'gcc', needed by 'pc'. stop.


i'm using cygwin and i have installed thi lib with "pspdevlibinstall" downloaded from pspupdate.
_________________
i'm italian...
forgive me for my english! :)
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Jul 11, 2006 3:23 am    Post subject: Reply with quote

dark_zarkon wrote:
jimparis wrote:
What is the compiler command line being executed?


"make" and "make kxploit" doesn't work
Unless you give us the exact compiler command line, we're not going to be able to help you. Run "make" and cut and paste all of the output here.
Back to top
View user's profile Send private message
dark_zarkon



Joined: 11 Jan 2006
Posts: 26

PostPosted: Tue Jul 11, 2006 4:35 am    Post subject: Reply with quote

if i type "make" the error is:

Quote:
$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -I/usr/local/inclu
de/SDL -Dmain=SDL_main -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin -c -o s
dltest.o sdltest.c
cc1: error: invalid option 'no-cygwin'
make: *** [sdltest.o] Error 1

_________________
i'm italian...
forgive me for my english! :)
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Jul 11, 2006 5:01 am    Post subject: Reply with quote

Quote:
-I/usr/local/include/SDL -Dmain=SDL_main -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin

This part is wrong. It looks like it's somehow picking up your system's installation of SDL instead of the PSPs. You did build and install the PSP SDL, right? Can you show us the output of these three commands:
Code:

$ ls -l /usr/local/pspdev/psp/bin/sdl-config
$ /usr/local/pspdev/psp/bin/sdl-config --cflags
$ /usr/local/pspdev/psp/bin/sdl-config --libs
Back to top
View user's profile Send private message
dark_zarkon



Joined: 11 Jan 2006
Posts: 26

PostPosted: Tue Jul 11, 2006 6:02 pm    Post subject: Reply with quote

jimparis wrote:
Quote:
-I/usr/local/include/SDL -Dmain=SDL_main -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin

This part is wrong. It looks like it's somehow picking up your system's installation of SDL instead of the PSPs. You did build and install the PSP SDL, right? Can you show us the output of these three commands:
Code:

$ ls -l /usr/local/pspdev/psp/bin/sdl-config
$ /usr/local/pspdev/psp/bin/sdl-config --cflags
$ /usr/local/pspdev/psp/bin/sdl-config --libs


this is the result:

Quote:
gianfranco@franco ~
$ ls -l /usr/local/pspdev/psp/bin/sdl-config
-rwxr-xr-x 1 gianfranco Nessuno 1675 Jun 23 09:02 /usr/local/pspdev/psp/bin/sdl-config

gianfranco@franco ~
$ /usr/local/pspdev/psp/bin/sdl-config --cflags
-I/usr/local/include/SDL -Dmain=SDL_main -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin

gianfranco@franco ~
$ /usr/local/pspdev/psp/bin/sdl-config --libs
-L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows -mno-cygwin

_________________
i'm italian...
forgive me for my english! :)
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Jul 12, 2006 6:41 am    Post subject: Reply with quote

Somehow your PSP build of SDL is messed up -- it looks like it's just a normal Windows build of SDL that somehow got copied to that directory??
Try rebuilding and reinstalling the psp version. Make sure you don't have any CFLAGS or LDFLAGS set when you do it (other than the ones listed in the readme.psp).
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