Compile JumpGunnerJump
-
- Posts: 18
- Joined: Sun Aug 21, 2005 12:51 am
Compile JumpGunnerJump
Hi can someone tell me how to compile JGJ?
you can download it here
http://www.pspsmm.com/dload.php?action=file&file_id=83
http://dl.qj.net/dl.php?fid=8655
http://www.adamcon.org/~dmwick/psp/jump ... ump1_2.zip
there ist no makefile.
you can download it here
http://www.pspsmm.com/dload.php?action=file&file_id=83
http://dl.qj.net/dl.php?fid=8655
http://www.adamcon.org/~dmwick/psp/jump ... ump1_2.zip
there ist no makefile.
Last edited by Stealth Kill on Sat Sep 22, 2007 1:14 am, edited 2 times in total.
-
- Posts: 26
- Joined: Sat Jun 02, 2007 1:15 am
-
- Posts: 18
- Joined: Sun Aug 21, 2005 12:51 am
-
- Posts: 18
- Joined: Sun Aug 21, 2005 12:51 am
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
First, you need to make sure you're exporting all the envvars you need for PSP.
Then use a makefile that's like this.
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"
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
Using J.F.'s makefile, without the exports I added this at the top:
And changed LIBS to:
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.
Code: Select all
PSPBIN=$(shell psp-config --psp-prefix)/bin
Code: Select all
LIBS = $(shell $(PSPBIN)/sdl-config --libs) -lSDL_image -ljpeg -lpng -lz -lSDL_ttf -lfreetype -lm
(+[__]%)
-
- Posts: 18
- Joined: Sun Aug 21, 2005 12:51 am
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 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
-
- Posts: 18
- Joined: Sun Aug 21, 2005 12:51 am