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
Setting up Dev-C++ with PSPSDK
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:
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.
However I get this error when compiling:
This is the makefile that I am using(copied from sdktest)C:\pspdev\Projects\makefile [Build Error] No rule to make target `helloworld.o', needed by `helloworld.elf'. Stop.
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
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.
-
- Posts: 6
- Joined: Fri Jul 14, 2006 8:56 pm
I have converted Makefile into Dev-C++.
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
===============================================
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
===============================================