| View previous topic :: View next topic |
| Author |
Message |
Fanjita
Joined: 28 Sep 2005 Posts: 217
|
Posted: Fri Nov 04, 2005 8:18 am Post subject: Has anyone tried building the GBA source? |
|
|
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 |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Fri Nov 04, 2005 6:23 pm Post subject: |
|
|
| 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 |
|
 |
Fanjita
Joined: 28 Sep 2005 Posts: 217
|
Posted: Fri Nov 04, 2005 6:47 pm Post subject: |
|
|
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 |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Fri Nov 04, 2005 8:35 pm Post subject: |
|
|
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 |
|
 |
danzel
Joined: 04 Nov 2005 Posts: 182
|
Posted: Fri Nov 04, 2005 11:08 pm Post subject: |
|
|
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 |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Sat Nov 05, 2005 2:32 am Post subject: |
|
|
| 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 |
|
 |
danzel
Joined: 04 Nov 2005 Posts: 182
|
Posted: Sat Nov 05, 2005 8:34 am Post subject: |
|
|
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 |
|
 |
Ryu
Joined: 17 Oct 2005 Posts: 19
|
Posted: Fri Nov 11, 2005 5:11 pm Post subject: |
|
|
| yes, i built that PSPGBA 1.1 here, and already trying to optimize it in assembler |
|
| Back to top |
|
 |
Ryu
Joined: 17 Oct 2005 Posts: 19
|
Posted: Fri Nov 11, 2005 5:13 pm Post subject: |
|
|
| ... and i had decided to make my own makefile, so i suggest you do the same... |
|
| Back to top |
|
 |
|