| View previous topic :: View next topic |
| Author |
Message |
Mr.Modem
Joined: 21 Sep 2005 Posts: 28
|
Posted: Sun Oct 02, 2005 5:21 pm Post subject: Compiling problem in DevC++ |
|
|
I've istalled the sdk using the toolchain.sh script and successfully compiled a few apps using cygwin. It works fine but I want to switch to DevC++. I've done what the stickied tutorial says but it doesn't work. Heres my makefile:
| Code: | TARGET = Test
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall -I"C:\cygwin\usr\local\pspdev\psp\sdk\include"
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World
PSPSDK= C:\cygwin\usr\local\pspdev\psp\sdk
include $(PSPSDK)/lib/build.mak |
and the compile log:
| Code: | Compiler: PSP
Executing make clean
rm -f Test.elf main.o PARAM.SFO EBOOT.PBP EBOOT.PBP
psp-gcc -I. -IC:\cygwin\usr\local\pspdev\psp\sdk/include -O2 -G0 -Wall -I "C:\cygwin\usr\local\pspdev\psp\sdk\include" -c -o main.o main.c
psp-gcc -I. -IC:\cygwin\usr\local\pspdev\psp\sdk/include -O2 -G0 -Wall -I "C:\cygwin\usr\local\pspdev\psp\sdk\include" -L. -LC:\cygwin\usr\local\pspdev\psp\sdk/lib main.o -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspuser -lpspkernel -o Test.elf
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/bin/ld: cannot find -lpspdebug
collect2: ld returned 1 exit status
make: *** [Test.elf] Error 1
Execution terminated |
I've must have done something really stupid. Please help. |
|
| Back to top |
|
 |
cheriff Regular
Joined: 23 Jun 2004 Posts: 262 Location: Sydney.au
|
Posted: Sun Oct 02, 2005 5:47 pm Post subject: |
|
|
looks like the path to the libraries is being set incorrectly:
| Code: | | -LC:\cygwin\usr\local\pspdev\psp\sdk/lib | whats the bet that the forward slash as directory seperator is breaking something?
Try looking thru $(PSPSDK)/lib/build.mak and change the / to a \.
failing that, as least make sure that libpspdebug.a is actually in C:\cygwin\usr\local\pspdev\psp\sdk/lib ... _________________ Damn, I need a decent signature! |
|
| Back to top |
|
 |
Mr.Modem
Joined: 21 Sep 2005 Posts: 28
|
Posted: Sun Oct 02, 2005 5:57 pm Post subject: |
|
|
I changed build.mak but it still doesn't work.
| Code: | Compiler: PSP
Executing make clean
rm -f Test.elf main.o PARAM.SFO EBOOT.PBP EBOOT.PBP
psp-gcc -I. -IC:\cygwin\usr\local\pspdev\psp\sdk\include -O2 -G0 -Wall -I"C:\cygwin\usr\local\pspdev\psp\sdk\include" -c -o main.o main.c
psp-gcc -I. -IC:\cygwin\usr\local\pspdev\psp\sdk\include -O2 -G0 -Wall -I"C:\cygwin\usr\local\pspdev\psp\sdk\include" -L. -LC:\cygwin\usr\local\pspdev\psp\sdk\lib main.o -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspuser -lpspkernel -o Test.elf
/usr/local/pspdev/lib/gcc/psp/4.0.1/../../../../psp/bin/ld: cannot find -lpspdebug
collect2: ld returned 1 exit status
make: *** [Test.elf] Error 1
Execution terminated |
libpspdebug.a is in the C:\cygwin\usr\local\pspdev\psp\sdk\lib directory. |
|
| Back to top |
|
 |
Mr.Modem
Joined: 21 Sep 2005 Posts: 28
|
Posted: Wed Oct 05, 2005 12:28 am Post subject: |
|
|
| Ok, I solved the problem. I just replaced the makefile with a make file from the sdk samples. I know the make kxploit command makes 1.5 eboots. Can I do the same from DevC++. I'm sorry if this have been asked before. I've searched the forums but didn't find anything |
|
| Back to top |
|
 |
|