Search found 23 matches

by mase
Fri Aug 28, 2009 11:43 pm
Forum: PSP Development
Topic: Doom PSP b6, now with music and PWADS
Replies: 25
Views: 29624

I don't think, it is a memory problem. I had only the piano part in
my timidity.cfg. The game does not start. Maybe the timidity
implementation in openttd is wrong. But I cannot see any mistake.
Maybe someone can compile it and test.
by mase
Wed Aug 26, 2009 6:30 am
Forum: PSP Development
Topic: Doom PSP b6, now with music and PWADS
Replies: 25
Views: 29624

I am new to PSP programming. I have compiled an older version of the game openttd (0.5.3 from sourceforge). It is compiled with libtimidity, and midi music works. You mean, that it is possible, that the PSP runs out of memory, while loading midi, that the game has grown so much 'til the last version...
by mase
Tue Aug 25, 2009 10:40 pm
Forum: PSP Development
Topic: Doom PSP b6, now with music and PWADS
Replies: 25
Views: 29624

How can I watch memory load on PSP with a running application?
by mase
Tue Aug 25, 2009 6:25 am
Forum: PSP Development
Topic: compiling openttd - pthread problem
Replies: 2
Views: 1552

I got it!
For everyone, who is interested, get it from here:
http://www.tt-forums.net/viewtopic.php? ... 10#p812710
by mase
Tue Aug 25, 2009 5:31 am
Forum: PSP Development
Topic: Doom PSP b6, now with music and PWADS
Replies: 25
Views: 29624

I was building the psp port of openttd with the incusion of libtimidity.
But if I include it, it builds, but the game does not start. Without
libtimidity it works fine. I have copied the timidity.cfg and inst from
the doom port, but no success.
by mase
Mon Aug 24, 2009 8:05 am
Forum: PSP Development
Topic: undefined reference to `main'
Replies: 11
Views: 4080

No, there isn't. Please check the code, if you don't believe me.
by mase
Mon Aug 24, 2009 5:08 am
Forum: PSP Development
Topic: undefined reference to `main'
Replies: 11
Views: 4080

Yes, but the working code doesn't provide a SDL_main function, too.
So how can it run?
by mase
Mon Aug 24, 2009 4:45 am
Forum: PSP Development
Topic: undefined reference to `main'
Replies: 11
Views: 4080

The code does not provide such a function. But the code, that compiles, doesn't, too. Maybe you could have a look on it. The one I am working on is here: http://www.openttd.org/en/ It is the version 0.7.2, which I configured ./configure --os=psp --host=psp --with-sdl=/usr/share/psp-dev/psp/bin/sdl-c...
by mase
Mon Aug 24, 2009 4:04 am
Forum: PSP Development
Topic: undefined reference to `main'
Replies: 11
Views: 4080

I must use SDL, because it is not my code. I added -l SDLmain -lSDL in build.mak of the SDK. Now I get 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 -lSDLmain -lSDL -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_...
by mase
Mon Aug 24, 2009 1:35 am
Forum: PSP Development
Topic: undefined reference to `main'
Replies: 11
Views: 4080

The only main function is

Code: Select all

int ttd_main(int argc, char *argv[])
in openttd.cpp.
Even if I rename ttd_main to main, I get the same error.
But it compiles fine for Linux.
But it is an SDL application. So if I link SDLmain, it should work, but
it doesn't.
by mase
Mon Aug 24, 2009 12:23 am
Forum: PSP Development
Topic: undefined reference to `main'
Replies: 11
Views: 4080

undefined reference to `main'

Hello! What does this error mean? How can I solve this? It appears, when compiling openttd. /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'...
by mase
Sun Aug 23, 2009 9:37 pm
Forum: PSP Development
Topic: pthreads
Replies: 24
Views: 13899

I have include pthread.h.
But I get an error:

Code: Select all

‘pthread_t’ does not name a type
by mase
Sun Aug 23, 2009 9:16 pm
Forum: PSP Development
Topic: compiling openttd - pthread problem
Replies: 2
Views: 1552

compiling openttd - pthread problem

Hi! I am trying to compile openttd-0.7.2 for PSP. Now I get an error with pthread: thread_pthread.cpp:14: error: ‘pthread_t’ does not name a type This is the codepart causing this error: #include "stdafx.h" #include "thread.h" #include ...
by mase
Sun Aug 23, 2009 7:22 am
Forum: PSP Development
Topic: Doom PSP b6, now with music and PWADS
Replies: 25
Views: 29624

Got it! Thanks!
by mase
Sun Aug 23, 2009 6:09 am
Forum: PSP Development
Topic: Doom PSP b6, now with music and PWADS
Replies: 25
Views: 29624

Hi!
Can you tell me, where I can find the libtimidity for the psptoolchain?
by mase
Sat Aug 22, 2009 9:51 pm
Forum: PSP Development
Topic: Cannot compile PSP Libraries
Replies: 13
Views: 4849

Ubuntu = Debianbased I think, it is one ore more packages, that are too new. I'll copy the toolchain compiled under Ubuntu to Debian. I hope, it works. Yes, I got it! Copied to Debian, and I can use it! A Hello World runs! But I was trying to compile openttd-0.7.2 for psp. I get a lot of typedef red...
by mase
Sat Aug 22, 2009 12:58 pm
Forum: PSP Development
Topic: Cannot compile PSP Libraries
Replies: 13
Views: 4849

Everything works fine under Ubuntu 9.04, which I have temporarely set
up in VirtualBox. But why not under Debian?
by mase
Sat Aug 22, 2009 4:47 am
Forum: PSP Development
Topic: Cannot compile PSP Libraries
Replies: 13
Views: 4849

But I can successfully build and execute a hello world program.
So I think the toolchain is set up correctly. There are no copies.
Is it correct, that psp-gcc is used for compilation?
by mase
Fri Aug 21, 2009 10:46 pm
Forum: PSP Development
Topic: Cannot compile PSP Libraries
Replies: 13
Views: 4849

So I don't know, why I get the undefinied reference. The libc is linked by -lc. The error occurs only, if psp-gcc was found in path. I removed it and it compiles. Let's see, if the libraries work compiled with standard gcc... No, it doesn't seem to work. SDL doesn't compile this way. What libc must ...
by mase
Fri Aug 21, 2009 5:18 pm
Forum: PSP Development
Topic: Cannot compile PSP Libraries
Replies: 13
Views: 4849

I did not see any errors.
Then I executed the buildscripts
separately, one after another, to
have more control. No error occured.
The libpsplibc.a is present.
by mase
Fri Aug 21, 2009 4:13 am
Forum: PSP Development
Topic: Cannot compile PSP Libraries
Replies: 13
Views: 4849

Did oy install the SDK correctly? I think so. I checked out the psptoolchain, set my variables, and ran the script. Some libs install without errors. I can compile apps like "hello world", and they work on the PSP. But I wondered, that building the toolchain took only a few minutes. Not a...
by mase
Fri Aug 21, 2009 3:44 am
Forum: PSP Development
Topic: Cannot compile PSP Libraries
Replies: 13
Views: 4849

But I cannot compile SDL, too. The same error.
The code causing the error is in build/unix/configure.
I had never seen before, that C code stands in a configure script.
by mase
Fri Aug 21, 2009 3:11 am
Forum: PSP Development
Topic: Cannot compile PSP Libraries
Replies: 13
Views: 4849

Cannot compile PSP Libraries

Hi! I have checked out the psptoolchain and installed it successfully. Now I cannot compile most of the PSP libraries, for example freetype or sdl. I have set the environment variables correctly and did exactly as written in the readme. Some of the libraries install, some not. Here is the config.log...