Has anyone tried building the GBA source?

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

Moderators: cheriff, TyRaNiD

Post Reply
Fanjita
Posts: 217
Joined: Wed Sep 28, 2005 9:31 am

Has anyone tried building the GBA source?

Post by Fanjita »

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!
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

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).
Fanjita
Posts: 217
Joined: Wed Sep 28, 2005 9:31 am

Post by Fanjita »

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!
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Uh... doing:

Code: Select all

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?
danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

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.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

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?
danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

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.
Ryu
Posts: 19
Joined: Mon Oct 17, 2005 8:36 pm

Post by Ryu »

yes, i built that PSPGBA 1.1 here, and already trying to optimize it in assembler
Ryu
Posts: 19
Joined: Mon Oct 17, 2005 8:36 pm

Post by Ryu »

... and i had decided to make my own makefile, so i suggest you do the same...
Post Reply