Page 3 of 4
Re: newest version of OTTD on PSP...
Posted: 19 Aug 2009 18:38
by Rubidium
mase wrote:One question: Why does it wanna use the freetype headers of my Linux installation?
Because it is impossible to tell whether the headers are meant for the compilation you are doing.
As such it adds them if it finds them, which is the correct approach for about 99% of the cases.
For your case: --without-freetype disables freetype and thus the inclusion of its headers.
Re: newest version of OTTD on PSP...
Posted: 19 Aug 2009 19:14
by DeletedUser26
I did not see a libfreetype in the SDK.
Re: newest version of OTTD on PSP...
Posted: 19 Aug 2009 19:38
by DeletedUser26
I configured with os=psp.
Now I get the message, that I have to enable -fexeptions.
I cannot find, where the compiler flags are set. Where can I
enable it?
Re: newest version of OTTD on PSP...
Posted: 19 Aug 2009 19:57
by DeletedUser26
I found the switch in the Makefile.
Now I get
src/ai/../network/core/os_abstraction.h:106:25: Fehler: sys/fd_set.h: No such file
Where to find it?
Re: newest version of OTTD on PSP...
Posted: 19 Aug 2009 20:19
by DeletedUser26
It seems, that it takes many headers from my linux installation.
sys/fd_set.h is present in my SDK. But the #include <sys/fd_set.h>
does not seem to take the right one.
Re: newest version of OTTD on PSP...
Posted: 19 Aug 2009 21:10
by XeryusTC
Might I suggest that you first look for a solution and then post here instead of the other way around? It is quite annoying to see a totally unecessary quadrouple post. On that matter I can also recommend to use the edit button if you need to do consequitive posting, that way you will only generate 1 post instead of many

Re: newest version of OTTD on PSP...
Posted: 19 Aug 2009 21:32
by DeletedUser26
Ok, I will.
I have to compile SDL to continue.
This is the config.log:
http://pastebin.com/m603ceada
Does anybody know, what's going wrong, or does anybody have a precompiled SDL?
Re: newest version of OTTD on PSP...
Posted: 20 Aug 2009 08:48
by SHADOW-XIII
You could use pastebin, like
that (using bash highlighting - not sure if correct one)
Re: newest version of OTTD on PSP...
Posted: 22 Aug 2009 13:14
by DeletedUser26
Ok, I compiled the whole toolchain under Ubuntu and copied it to my Debian system.
But when compiling openttd, I get a lot of redefinition errors.
http://pastebin.com/f75895467
I did
./configure --os=psp --host=psp --build=psp
But I think, the build=psp is wrong. This one is without this option:
http://pastebin.com/f7bb55718
Now I added
include $(PSPSDK)/lib/build.mak
to Makefile.in. I think, this is correct, but now I get:
Code: Select all
psp-gcc -I. -I/usr/share/psp-dev/psp/sdk/include -D_PSP_FW_VERSION=150 -L. -L/usr/share/psp-dev/psp/sdk/lib -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o .elf
/usr/share/psp-dev/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib/crt0.o: In function `_main':
/tmp/psptoolchain/build/pspsdk/src/startup/crt0.c:86: undefined reference to `main'
collect2: ld returned 1 exit status
Re: newest version of OTTD on PSP...
Posted: 22 Aug 2009 21:10
by DeletedUser26
I found a timidity port for psp. It is included in the source of doom.
Look here:
http://psp-news.dcemu.co.uk/doompsp.shtml
Re: newest version of OTTD on PSP...
Posted: 23 Aug 2009 17:25
by DeletedUser26
I am very near to get it compiled.
It breaks with
Code: Select all
psp-gcc -I. -I/usr/share/psp-dev/psp/sdk/include -D_PSP_FW_VERSION=150 -L. -L/usr/share/psp-dev/psp/sdk/lib -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o .elf
/usr/share/psp-dev/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib/crt0.o: In function `_main':
/tmp/psptoolchain/build/pspsdk/src/startup/crt0.c:86: undefined reference to `main'
collect2: ld returned 1 exit status
I have -lSDLmain as LIBS in openttd-0.7.2/objs/release/Makefile. But it does not get linked.
Re: newest version of OTTD on PSP...
Posted: 24 Aug 2009 20:25
by DeletedUser26
I got it!
I have ported openttd-0.7.2 to PSP.
It is based on the code of SilentDragon and koppi.
Thanks to them!
The source of libtimidity is included. But if I compile with it,
the game stops loading. The Makefile shipped with this package
has libtimidity included, so if you want to compile a working one,
you must disable it.
Maybe someone gets a solution, why the game doesn't work with it.
Get it here:
http://rapidshare.de/files/48206655/ope ... p.zip.html
Sorry, I uploaded thre wrong package. Link updated.
Re: newest version of OTTD on PSP...
Posted: 25 Aug 2009 09:49
by Jinx1337
Congratulations! I'm eagerly observing this thread.
Re: newest version of OTTD on PSP...
Posted: 25 Aug 2009 12:38
by DeletedUser26
I heard in pspdev forum, that timidity takes a huge memory load.
Is it possible, that openttd does not start, because it lacks memory?
How can I watch memory load on PSP with a running application?
I'd like to know, why the 0.7.x versions take about 2 minutes to load?
The 0.5.3 from sourceforge loads only a few seconds.
Did anyone resolve the libtimidity issue?
Re: newest version of OTTD on PSP...
Posted: 28 Aug 2009 09:29
by lawton27
errm:
The game could not be started.
(80020148)
I tried updateing my psp version and now it says it's corrupted.
Re: newest version of OTTD on PSP...
Posted: 28 Aug 2009 13:16
by DeletedUser26
lawton27 wrote:errm:
The game could not be started.
(80020148)
I tried updateing my psp version and now it says it's corrupted.
Did you compile it yorself? The eboot in my Package works on my Slim.
Re: newest version of OTTD on PSP...
Posted: 31 Aug 2009 14:01
by lawton27
mase wrote:lawton27 wrote:errm:
The game could not be started.
(80020148)
I tried updateing my psp version and now it says it's corrupted.
Did you compile it yorself? The eboot in my Package works on my Slim.
Ah slim, that would be my problem my psp is not a slim.
Re: newest version of OTTD on PSP...
Posted: 04 Sep 2009 14:23
by DeletedUser26
Try changing the FW version in Makefile.
Re: newest version of OTTD on PSP...
Posted: 30 Sep 2009 13:50
by Uplink
Hi there.
I was just playing OpenTTD for PSP 0.5.3 or so on my Console, when i thouht, having the PBS an all that stuff would be cool.
Having found this thread i was very happy. But now rapidshare won't let me download the new Version. Could you pleas reupload this?
Re: newest version of OTTD on PSP...
Posted: 01 Oct 2009 20:43
by Jinx1337
Here you go buddy:
http://www.megaupload.com/?d=N0WTQC6S
Mase - it does load a little bit longer. Nowhere between 2 minutes (took around 20 seconds, PSP SLIM 5.00 M33), but still.
The thing I really long for however, is the libtimidity support...
Silentdragon, koppi, mase - are you still willing to work on this particular port?

I'd be forever greateful if it wasn't abandoned.