newest version of OTTD on PSP...

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: newest version of OTTD on PSP...

Post 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.
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post by DeletedUser26 »

I did not see a libfreetype in the SDK.
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post 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?
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post 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?
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post 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.
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Re: newest version of OTTD on PSP...

Post 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 :)
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post 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?
Last edited by DeletedUser26 on 22 Aug 2009 14:16, edited 1 time in total.
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Re: newest version of OTTD on PSP...

Post by SHADOW-XIII »

You could use pastebin, like that (using bash highlighting - not sure if correct one)
what are you looking at? it's a signature!
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post 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
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post 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
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post 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.
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post 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.
Last edited by DeletedUser26 on 25 Aug 2009 19:04, edited 1 time in total.
Jinx1337
Engineer
Engineer
Posts: 7
Joined: 13 Aug 2009 21:11

Re: newest version of OTTD on PSP...

Post by Jinx1337 »

Congratulations! I'm eagerly observing this thread.
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post 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?
User avatar
lawton27
Tycoon
Tycoon
Posts: 1418
Joined: 03 Aug 2009 14:29
Location: Manchester

Re: newest version of OTTD on PSP...

Post by lawton27 »

errm:

The game could not be started.
(80020148)

I tried updateing my psp version and now it says it's corrupted.
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post 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.
User avatar
lawton27
Tycoon
Tycoon
Posts: 1418
Joined: 03 Aug 2009 14:29
Location: Manchester

Re: newest version of OTTD on PSP...

Post 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.
DeletedUser26
Engineer
Engineer
Posts: 39
Joined: 15 Jul 2009 19:00

Re: newest version of OTTD on PSP...

Post by DeletedUser26 »

Try changing the FW version in Makefile.
Uplink
Engineer
Engineer
Posts: 2
Joined: 21 Sep 2007 05:34

Re: newest version of OTTD on PSP...

Post 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?
Jinx1337
Engineer
Engineer
Posts: 7
Joined: 13 Aug 2009 21:11

Re: newest version of OTTD on PSP...

Post 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.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests