Setting up Dev-C++ with PSPSDK

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

sandberg
Posts: 90
Joined: Wed Oct 05, 2005 1:25 am
Location: Denmark

Post by sandberg »

This link works. Don't know if it works since I'm not using Windows. But it seems to be valid.

http://psp-dev.org/pukiwiki/index.php?Dev-C%2B%2B
Br, Sandberg
F9zDark
Posts: 127
Joined: Sat Apr 02, 2005 11:34 am

Post by F9zDark »

I followed the instructions in the link above and downloaded the PSP Toolchain in Win32 installer format from: http://xorloser.com/

However I get this error when compiling:
C:\pspdev\Projects\makefile [Build Error] No rule to make target `helloworld.o', needed by `helloworld.elf'. Stop.
This is the makefile that I am using(copied from sdktest)

Code: Select all

TARGET = helloworld
OBJS = main.o

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

LIBDIR =
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World

PSPSDK= C:/pspdev/psp/sdk
include $(PSPSDK)/lib/build.mak 
Anyone have any ideas?

Edit::

OK I got it to work, I was stupid and named the file helloword.c instead of main.c....

It doesn't compile in DevC++ giving an error cygreadline6.dll was not found, however it does work using the command prompt and typing in make; so its not really a big deal.
eniac
Posts: 1
Joined: Tue May 30, 2006 9:24 am

Post by eniac »

Bad link ...

(whoeps stupid, sorry, ignore now)
iEpsilonMeteOra
Posts: 6
Joined: Fri Jul 14, 2006 8:56 pm

I have converted Makefile into Dev-C++.

Post by iEpsilonMeteOra »

I have not seen that tutorial because I cannot open the web page. So, I try it by myself. Finally, I find that it is very easy.

1, create an empty project.
2, add all the source code file into this project.
3, Press "Alt + p" to open the property of project.
4, open the tab of "Makefile", choise the "Use custom Make file"

Ok, all operations have been done. You can complier the project at this time. But Pls make sure you have setup the PSP programming environment at first time.

Add PSPSDK into windows' PATH var and modify the original Makefile like this.

==============================================
TARGET = cube
OBJS = cube.o logo.o ../common/callbacks.o ../common/vram.o

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

LIBDIR =
LDFLAGS =
LIBS= -lpspgum -lpspgu -lm

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Cube Sample

#PSPSDK=$(shell psp-config --pspsdk-path) <- - Comment this line
include $(PSPSDK)/lib/build.mak

logo.o: logo.raw
bin2o -i logo.raw logo.o logo
===============================================
User avatar
lokust
Posts: 22
Joined: Sun May 28, 2006 7:34 am

Post by lokust »

Has anyone been able to integrate gdb with dev-c++?
Post Reply