| View previous topic :: View next topic |
| Author |
Message |
Stealth Kill
Joined: 21 Aug 2005 Posts: 18
|
|
| Back to top |
|
 |
Smong
Joined: 04 Sep 2007 Posts: 82
|
Posted: Fri Sep 21, 2007 9:59 pm Post subject: |
|
|
I can't see how to download it. _________________ (+[__]%) |
|
| Back to top |
|
 |
AllSystemGo
Joined: 02 Jun 2007 Posts: 26
|
Posted: Fri Sep 21, 2007 11:39 pm Post subject: |
|
|
| You probably have to create an account to be able to download something. |
|
| Back to top |
|
 |
Stealth Kill
Joined: 21 Aug 2005 Posts: 18
|
Posted: Sat Sep 22, 2007 1:15 am Post subject: |
|
|
I added other links.
I tried to make a makefile but i got lots of errors. |
|
| Back to top |
|
 |
Stealth Kill
Joined: 21 Aug 2005 Posts: 18
|
Posted: Sat Sep 22, 2007 7:46 am Post subject: |
|
|
Can someone help me I got this makefile from Hardhat but i canīt compile it
| Code: | TARGET = jumpgunnarjump
OBJS = main.o engine.o
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LIBS = -L/usr/local/pspsdk/lib -lSDL_mixer -lSDL_image -lSDL_ttf -lpng -lz -lfreetype
LDFLAGS =
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Jump Gunnar Jump
PSP_EBOOT_ICON = icon0.png
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 |
|
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sat Sep 22, 2007 9:16 am Post subject: |
|
|
First, you need to make sure you're exporting all the envvars you need for PSP.
| Code: | export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PSPPATH="$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin"
export PATH="$PATH:$PSPPATH"
export PKG_CONFIG_PATH="$PSPDEV/psp/lib/pkgconfig" |
Then use a makefile that's like this.
| Code: | TARGET = jumpgunnarjump
OBJS = main.o engine.o
INCDIR =
CFLAGS = -O2 -G0 -Wall $(shell $(PSPBIN)/sdl-config --cflags)
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
#BUILD_PRX = 1
LIBDIR =
LIBS = -lpng -lz -lfreetype $(shell $(PSPBIN)/sdl-config --libs)
LDFLAGS =
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Jump Gunnar Jump
PSP_EBOOT_ICON="icon0.png"
#PSP_EBOOT_PIC1="pic1.png"
#PSP_EBOOT_SND0="snd0.at3"
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak |
|
|
| Back to top |
|
 |
Smong
Joined: 04 Sep 2007 Posts: 82
|
Posted: Sat Sep 22, 2007 9:38 am Post subject: |
|
|
Using J.F.'s makefile, without the exports I added this at the top:
| Code: | | PSPBIN=$(shell psp-config --psp-prefix)/bin |
And changed LIBS to:
| Code: | | LIBS = $(shell $(PSPBIN)/sdl-config --libs) -lSDL_image -ljpeg -lpng -lz -lSDL_ttf -lfreetype -lm |
However there are undefined references to some mikmod functions. I think Hardhat has used mikmodlib in the past so you may need to get that (not to be confused with libmikmod) or you can go into the code and disable those functions. _________________ (+[__]%) |
|
| Back to top |
|
 |
Stealth Kill
Joined: 21 Aug 2005 Posts: 18
|
Posted: Sun Sep 23, 2007 7:55 am Post subject: |
|
|
I think I need PSPSDL too.
when iīm tryind to compile it i get lots of SDL errors like
SDL_KEYUP bla bla
how can i install pspsdl?
i copied the folder in the cygwin dir an typed ./autogen.sh |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sun Sep 23, 2007 8:28 am Post subject: |
|
|
| Stealth Kill wrote: | I think I need PSPSDL too.
when iīm tryind to compile it i get lots of SDL errors like
SDL_KEYUP bla bla
how can i install pspsdl?
i copied the folder in the cygwin dir an typed ./autogen.sh |
Just use the psplibraries script. It compiles and installs all the major libs that aren't compiled and installed by the regular toolchain script. It does PSPSDL among others. |
|
| Back to top |
|
 |
Stealth Kill
Joined: 21 Aug 2005 Posts: 18
|
Posted: Mon Sep 24, 2007 1:36 am Post subject: |
|
|
I got this error when i try to install psplibaries
svn: Canīt move `freetype/builds/ .svn/tmp/entries` to `freetype/builds/.svn/entries : permission denied
../scripts/003-freetype.sh failed |
|
| Back to top |
|
 |
|