Compile JumpGunnerJump

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

Moderators: cheriff, TyRaNiD

Post Reply
Stealth Kill
Posts: 18
Joined: Sun Aug 21, 2005 12:51 am

Compile JumpGunnerJump

Post by Stealth Kill »

Last edited by Stealth Kill on Sat Sep 22, 2007 1:14 am, edited 2 times in total.
Smong
Posts: 82
Joined: Tue Sep 04, 2007 4:44 am

Post by Smong »

I can't see how to download it.
(+[__]%)
AllSystemGo
Posts: 26
Joined: Sat Jun 02, 2007 1:15 am

Post by AllSystemGo »

You probably have to create an account to be able to download something.
Stealth Kill
Posts: 18
Joined: Sun Aug 21, 2005 12:51 am

Post by Stealth Kill »

I added other links.

I tried to make a makefile but i got lots of errors.
Stealth Kill
Posts: 18
Joined: Sun Aug 21, 2005 12:51 am

Post by Stealth Kill »

Can someone help me I got this makefile from Hardhat but i can´t compile it

Code: Select all

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
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

First, you need to make sure you're exporting all the envvars you need for PSP.

Code: Select all

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: Select all

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
Smong
Posts: 82
Joined: Tue Sep 04, 2007 4:44 am

Post by Smong »

Using J.F.'s makefile, without the exports I added this at the top:

Code: Select all

PSPBIN=$(shell psp-config --psp-prefix)/bin
And changed LIBS to:

Code: Select all

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.
(+[__]%)
Stealth Kill
Posts: 18
Joined: Sun Aug 21, 2005 12:51 am

Post by Stealth Kill »

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
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
Stealth Kill
Posts: 18
Joined: Sun Aug 21, 2005 12:51 am

Post by Stealth Kill »

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