forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compile JumpGunnerJump

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Stealth Kill



Joined: 21 Aug 2005
Posts: 18

PostPosted: Fri Sep 21, 2007 9:22 pm    Post subject: Compile JumpGunnerJump Reply with quote

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/jumpgunnarjump1_2.zip

there ist no makefile.


Last edited by Stealth Kill on Sat Sep 22, 2007 1:14 am; edited 2 times in total
Back to top
View user's profile Send private message
Smong



Joined: 04 Sep 2007
Posts: 82

PostPosted: Fri Sep 21, 2007 9:59 pm    Post subject: Reply with quote

I can't see how to download it.
_________________
(+[__]%)
Back to top
View user's profile Send private message
AllSystemGo



Joined: 02 Jun 2007
Posts: 26

PostPosted: Fri Sep 21, 2007 11:39 pm    Post subject: Reply with quote

You probably have to create an account to be able to download something.
Back to top
View user's profile Send private message
Stealth Kill



Joined: 21 Aug 2005
Posts: 18

PostPosted: Sat Sep 22, 2007 1:15 am    Post subject: Reply with quote

I added other links.

I tried to make a makefile but i got lots of errors.
Back to top
View user's profile Send private message
Stealth Kill



Joined: 21 Aug 2005
Posts: 18

PostPosted: Sat Sep 22, 2007 7:46 am    Post subject: Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Sep 22, 2007 9:16 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Smong



Joined: 04 Sep 2007
Posts: 82

PostPosted: Sat Sep 22, 2007 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Stealth Kill



Joined: 21 Aug 2005
Posts: 18

PostPosted: Sun Sep 23, 2007 7:55 am    Post subject: Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Sep 23, 2007 8:28 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Stealth Kill



Joined: 21 Aug 2005
Posts: 18

PostPosted: Mon Sep 24, 2007 1:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group