| View previous topic :: View next topic |
| Author |
Message |
dark_zarkon
Joined: 11 Jan 2006 Posts: 26
|
Posted: Sun Jul 09, 2006 9:44 pm Post subject: sdl compiling error?? |
|
|
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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Mon Jul 10, 2006 1:21 am Post subject: |
|
|
| 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 |
|
 |
dark_zarkon
Joined: 11 Jan 2006 Posts: 26
|
Posted: Mon Jul 10, 2006 7:56 pm Post subject: |
|
|
| 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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Jul 11, 2006 3:23 am Post subject: |
|
|
| 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 |
|
 |
dark_zarkon
Joined: 11 Jan 2006 Posts: 26
|
Posted: Tue Jul 11, 2006 4:35 am Post subject: |
|
|
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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Jul 11, 2006 5:01 am Post subject: |
|
|
| 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 |
|
 |
dark_zarkon
Joined: 11 Jan 2006 Posts: 26
|
Posted: Tue Jul 11, 2006 6:02 pm Post subject: |
|
|
| 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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Jul 12, 2006 6:41 am Post subject: |
|
|
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 |
|
 |
|