2D Fighting Engine for PSP

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

Moderators: cheriff, TyRaNiD

Post Reply
SakirSoft
Posts: 4
Joined: Sun May 27, 2007 7:37 am

2D Fighting Engine for PSP

Post by SakirSoft »

Hi i try to port ShugenDo.
ShugenDo is 2D Fighting Engine for the PC and i want to port it.
you can find it here
http://www.sakirsoft.com/

and here a little teaser video
http://www.youtube.com/watch?v=iM9A80wk3mc

I was able to compile the PSP toolchain on my PC via cygwin.
All samples are compileable and working.

But i fail to compile the PSP-SDL lib on my PC.

I excatly did what is written in the readme.psp file.
But i get alot of errors.

Code: Select all

Sahin@powerpc ~
$ export PSPDEV=/usr/local/pspdev

Sahin@powerpc ~
$ export PATH=$PATH:$PSPDEV/bin

Sahin@powerpc ~
$ cd pspSDL/

Sahin@powerpc ~/pspSDL
$ ./autogen.sh
Generating build information using aclocal, automake and autoconf
This may take a while ...
/usr/bin/m4:configure.in:1755: cannot create temporary file for diversion: Permi
ssion denied
/usr/bin/m4: cannot remove temporary directory /tmp/m4-kh3lUG: Directory not emp
ty
autom4te-2.61: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1

fallowed by alot of erros like this

Code: Select all

/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
src/video/dc/Makefile.am:4: Libtool library used but `LIBTOOL' is undefined
src/video/dc/Makefile.am:4:
src/video/dc/Makefile.am:4: The usual way to define `LIBTOOL' is to add `AC_PROG
_LIBTOOL'

An when i try to execute the ./configure script this happends

Code: Select all

$ LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
>      ./configure --host psp --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... i686-pc-cygwin
checking host system type... mipsallegrexel-psp-elf
checking target system type... mipsallegrexel-psp-elf
./configure: line 2021: syntax error near unexpected token `SDL,'
./configure: line 2021: `AM_INIT_AUTOMAKE(SDL, $SDL_VERSION)'
I hope some of you guys can help me out
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

Re: 2D Fighting Engine for PSP

Post by gambiting »

SakirSoft wrote: Sahin@powerpc ~/pspSDL
$ ./autogen.sh
Generating build information using aclocal, automake and autoconf
This may take a while ...
/usr/bin/m4:configure.in:1755: cannot create temporary file for diversion: Permi
ssion denied
/usr/bin/m4: cannot remove temporary directory /tmp/m4-kh3lUG: Directory not emp
ty
autom4te-2.61: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
Why don't you run it as root?It can't copy nessesary files,because you don't have enough provilages.[/code]
SakirSoft
Posts: 4
Joined: Sun May 27, 2007 7:37 am

Post by SakirSoft »

How can i login in as root in cygwin ?
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

Post by gambiting »

SakirSoft wrote:How can i login in as root in cygwin ?
In cygwin you should be loggen in as root by default.You can see if you are a root or not by $ or # after your username(sahin@powerpc$ <---it means you are a normal user,not root).I don't know why you are not a root by default,but try a simple "su" command(it logs you as root).
SakirSoft
Posts: 4
Joined: Sun May 27, 2007 7:37 am

Post by SakirSoft »

I tryed the su command but it did not work.

But i fixed the whole problem by installing linux on my PC
and logining in as root.

I was able to compile the whole toolchain and the SDL.
But i was not able to compile the samples in the test folder of the SDL lib.

Thanx for helping.
PeterM
Posts: 125
Joined: Sat Dec 31, 2005 7:25 pm
Location: Edinburgh, UK
Contact:

Post by PeterM »

Hehe, cracking a nut with a sledgehammer comes to mind!

Oh well, glad you got it working anyway. Good luck with your project, it sounds really cool.
http://aaiiee.wordpress.com/

I can no longer do any homebrew PSP development nor discuss PSP specific topics.
SakirSoft
Posts: 4
Joined: Sun May 27, 2007 7:37 am

Post by SakirSoft »

Haha yeah but the whole work was worrth to do.
I was able to do my first port of ShugenDo to the psp.

Here you can see the result.
http://www.youtube.com/watch?v=U0b31nLYGcI

Thanks for the great PSP toolchain and for the examples which comes with it.
BTW i dont know why but the PSD sdk is missing some standart wchar funktions which i need.

I cannot use
vswprintf
swprintf

Any idee why?
Post Reply