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 

Compiling problem in DevC++

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



Joined: 21 Sep 2005
Posts: 28

PostPosted: Sun Oct 02, 2005 5:21 pm    Post subject: Compiling problem in DevC++ Reply with quote

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


Joined: 23 Jun 2004
Posts: 262
Location: Sydney.au

PostPosted: Sun Oct 02, 2005 5:47 pm    Post subject: Reply with quote

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



Joined: 21 Sep 2005
Posts: 28

PostPosted: Sun Oct 02, 2005 5:57 pm    Post subject: Reply with quote

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



Joined: 21 Sep 2005
Posts: 28

PostPosted: Wed Oct 05, 2005 12:28 am    Post subject: Reply with quote

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
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