Installing SDL for PSP from svn

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

Moderators: cheriff, TyRaNiD

Post Reply
daniel-kun
Posts: 4
Joined: Tue Feb 06, 2007 8:29 pm

Installing SDL for PSP from svn

Post by daniel-kun »

Hello folks,

first of all, I'd like to thank every contributor for this great effort. The PSP toolchain, the SDK and all the ported third-party lib make coding for the PSP so much easier.

Well, I got a problem with one of the third-party libs, though: libSDL.
I'm on win32, have cygwin installed and the pspdev-toolchain running fine. I've successfully build the examples and experimented a bit.

Then I've checked out the source from svn://svn.ps2dev.org/psp/trunk/SDL
Here's what I've done, in a nutshell:

Code: Select all

svn co svn://svn.ps2dev.org/psp/trunk/SDL SDL
cd SDL
export WANT_AUTOMAKE=1.9
sh autogen.sh
LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" configure --host psp --prefix=$(psp-config --psp-prefix)
make
Up until now, everything was perfectly fine. But then, when I run

Code: Select all

make install
make complains that there are multiple Target-rules for one target. It doesn't tell me, which one, though.

Is this a bug in svn HEAD? A problem with my setup? Incompatible autotools?

Is there a "stable" tag I can use instead of the trunk version? Or maybe a binary distribution?

On a site-note, why isn't the PSP listed as a supported platform from the libsdl.org website? Isn't there a way to integrate the PSP-port into the official release?

Thanks,
Daniel Albuschat
eat(this); // delicious suicide
daniel-kun
Posts: 4
Joined: Tue Feb 06, 2007 8:29 pm

Post by daniel-kun »

Since I haven't had access to the PC where I tried this while creating this post, I could not provide the exact error message. Here is what I get:

Code: Select all

Making all in src
make[1]: Entering directory `/cygdrive/c/pspdev/SDL/src'
.deps/SDL_error.Plo:1: *** multiple target patterns.  Stop.
make[1]: Leaving directory `/cygdrive/c/pspdev/SDL/src'
make: *** [all-recursive] Error 1
Strangely, this is from "make" (not "make install"). Though, this had worked before. I ran distclean and re-bootstrapped the autotools trash, which did not help.

I just hate autotools... worst piece of sh*t ever written, imho.
eat(this); // delicious suicide
daniel-kun
Posts: 4
Joined: Tue Feb 06, 2007 8:29 pm

Post by daniel-kun »

Well, most likely some incompatible autotools-version have created this mess.
I've set up my Linux box as my new development environment and besides having to install automake-1.9 (only 1.4 was installed) and re-linking /etc/alternatives/automake and /etc/alternatives/aclocal (this is debian stable I'm talking about) to the new version, the setup, compilation and installation of both, the pspdev-toolchain and SDL went very smoothly.
I had the sdl test-samples running quite quickly after finishing the installation.
So I settle for developing on Linux. Well, this is easier in some way anyways, since I work 70% of the time on that box.

This is no solution for the original cygwin-problem, but if someone else comes across this, I'd recommend only installing the version 1.9 of all autotools-related packages, especially automake.

Regards,
Daniel
eat(this); // delicious suicide
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Someone else reported problems with automake 1.10, hopefully at some point I or someone else will get around to resolving them. As for the PSP SDL port, I don't think we've tried pushing it upstream yet, but it's probably close to stable enough that it might be worth it at some point. I do plan on reworking some of the SDL_main stuff shortly, though, to remove the dependency on kernel mode.
Post Reply