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 

Has anyone tried building the GBA source?

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



Joined: 28 Sep 2005
Posts: 217

PostPosted: Fri Nov 04, 2005 8:18 am    Post subject: Has anyone tried building the GBA source? Reply with quote

I think I'm being thick, but I can't figure out the 'configure' parameters to set it to use the PSP architecture as a target.

Anyone built it already, and can offer any help?

Thanks,

Fanj.
_________________
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri Nov 04, 2005 6:23 pm    Post subject: Reply with quote

I haven't added a README.PSP to VisualBoyAdvance yet, but the configure params will be the same as those of any other SDL-based app (see SDL's README.PSP).
Back to top
View user's profile Send private message
Fanjita



Joined: 28 Sep 2005
Posts: 217

PostPosted: Fri Nov 04, 2005 6:47 pm    Post subject: Reply with quote

That's the tricky part, following the build process for SDL doesn't seem to work for me.

It looks like the 'configure' script doesn't include any support for '--host psp', so I'm guessing that either some files are missing, or there's another trick to it.

I'm not too familiar with how configure works, so although I'm playing around with trying to hack something together, I'm flailing around in the dark somewhat.
_________________
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri Nov 04, 2005 8:35 pm    Post subject: Reply with quote

Uh... doing:
Code:
LDFLAGS="-L`psp-config --pspsdk-path`/lib -lc -lpspuser" ./configure --host psp --with-sdl-prefix=`psp-config --psp-prefix`

worked just fine for me, and that's straight from SDL's README.PSP (minus -lpsputility which is no longer needed). Did you run autogen.sh first?
Back to top
View user's profile Send private message
danzel



Joined: 04 Nov 2005
Posts: 182

PostPosted: Fri Nov 04, 2005 11:08 pm    Post subject: Reply with quote

There is no autogen.sh included in the archive.
Yeah, looks like there is a file missing or the configure script is old.

pspgba_v1.1_src $ LDFLAGS="-L`psp-config --pspsdk-path`/lib -lc -lpspuser" ./configure --host psp --with-sdl-prefix=`psp-config --psp-prefix`
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... Invalid configuration `psp': machine `psp' not recognized
configure: error: /bin/sh ./config.sub psp failed

The config.log doesnt leave any more interesting messages:
## ----------- ##
## Core tests. ##

## ----------- ##

configure:1370: checking build system type
configure:1388: result: x86_64-unknown-linux-gnu
configure:1396: checking host system type
configure:1405: error: /bin/sh ./config.sub psp failed

Danzel.

Edit: Quick bit of hacking I've managed to get it a little further (possibly bad hacking, we'll see)

It now gets up to: (When ran with the command line above)
checking whether psp-g++ accepts -g... yes
checking dependency style of psp-g++... gcc3
checking for psp-ranlib... psp-ranlib
checking for nasm... no
checking for gzopen in -lz... no
configure: error: *** Cannot compile without zlib.

grab my modified files from:
http://localhost.geek.nz/crap/config.tar.bz2
Bed Time (2:22AM :( ) Might play some more tomorow, looks like it may need just a bit more.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Nov 05, 2005 2:32 am    Post subject: Reply with quote

Archive? I was referring to the VBA source in SVN. If this is some other package then why don't you ask the author how to build it?
Back to top
View user's profile Send private message
danzel



Joined: 04 Nov 2005
Posts: 182

PostPosted: Sat Nov 05, 2005 8:34 am    Post subject: Reply with quote

woops, my bad.
I meant the 'PSP GBA v1.1' source archive, didnt realize we had VBA in SVN.

I'll check that out and have a play, thanks :)

Danzel.
Back to top
View user's profile Send private message
Ryu



Joined: 17 Oct 2005
Posts: 19

PostPosted: Fri Nov 11, 2005 5:11 pm    Post subject: Reply with quote

yes, i built that PSPGBA 1.1 here, and already trying to optimize it in assembler
Back to top
View user's profile Send private message MSN Messenger
Ryu



Joined: 17 Oct 2005
Posts: 19

PostPosted: Fri Nov 11, 2005 5:13 pm    Post subject: Reply with quote

... and i had decided to make my own makefile, so i suggest you do the same...
Back to top
View user's profile Send private message MSN Messenger
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