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.
Search found 23 matches
- Fri Aug 28, 2009 11:43 pm
- Forum: PSP Development
- Topic: Doom PSP b6, now with music and PWADS
- Replies: 25
- Views: 31212
- Wed Aug 26, 2009 6:30 am
- Forum: PSP Development
- Topic: Doom PSP b6, now with music and PWADS
- Replies: 25
- Views: 31212
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...
- Tue Aug 25, 2009 10:40 pm
- Forum: PSP Development
- Topic: Doom PSP b6, now with music and PWADS
- Replies: 25
- Views: 31212
- Tue Aug 25, 2009 6:25 am
- Forum: PSP Development
- Topic: compiling openttd - pthread problem
- Replies: 2
- Views: 1727
I got it!
For everyone, who is interested, get it from here:
http://www.tt-forums.net/viewtopic.php? ... 10#p812710
For everyone, who is interested, get it from here:
http://www.tt-forums.net/viewtopic.php? ... 10#p812710
- Tue Aug 25, 2009 5:31 am
- Forum: PSP Development
- Topic: Doom PSP b6, now with music and PWADS
- Replies: 25
- Views: 31212
- Mon Aug 24, 2009 8:05 am
- Forum: PSP Development
- Topic: undefined reference to `main'
- Replies: 11
- Views: 4451
- Mon Aug 24, 2009 5:08 am
- Forum: PSP Development
- Topic: undefined reference to `main'
- Replies: 11
- Views: 4451
- Mon Aug 24, 2009 4:45 am
- Forum: PSP Development
- Topic: undefined reference to `main'
- Replies: 11
- Views: 4451
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...
- Mon Aug 24, 2009 4:04 am
- Forum: PSP Development
- Topic: undefined reference to `main'
- Replies: 11
- Views: 4451
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_...
- Mon Aug 24, 2009 1:35 am
- Forum: PSP Development
- Topic: undefined reference to `main'
- Replies: 11
- Views: 4451
The only main function is
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.
Code: Select all
int ttd_main(int argc, char *argv[])
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.
- Mon Aug 24, 2009 12:23 am
- Forum: PSP Development
- Topic: undefined reference to `main'
- Replies: 11
- Views: 4451
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'...
- Sun Aug 23, 2009 9:37 pm
- Forum: PSP Development
- Topic: pthreads
- Replies: 24
- Views: 15039
I have include pthread.h.
But I get an error:
But I get an error:
Code: Select all
‘pthread_t’ does not name a type
- Sun Aug 23, 2009 9:16 pm
- Forum: PSP Development
- Topic: compiling openttd - pthread problem
- Replies: 2
- Views: 1727
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 ...
- Sun Aug 23, 2009 7:22 am
- Forum: PSP Development
- Topic: Doom PSP b6, now with music and PWADS
- Replies: 25
- Views: 31212
- Sun Aug 23, 2009 6:09 am
- Forum: PSP Development
- Topic: Doom PSP b6, now with music and PWADS
- Replies: 25
- Views: 31212
- Sat Aug 22, 2009 9:51 pm
- Forum: PSP Development
- Topic: Cannot compile PSP Libraries
- Replies: 13
- Views: 5522
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...
- Sat Aug 22, 2009 12:58 pm
- Forum: PSP Development
- Topic: Cannot compile PSP Libraries
- Replies: 13
- Views: 5522
- Sat Aug 22, 2009 4:47 am
- Forum: PSP Development
- Topic: Cannot compile PSP Libraries
- Replies: 13
- Views: 5522
- Fri Aug 21, 2009 10:46 pm
- Forum: PSP Development
- Topic: Cannot compile PSP Libraries
- Replies: 13
- Views: 5522
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 ...
- Fri Aug 21, 2009 5:18 pm
- Forum: PSP Development
- Topic: Cannot compile PSP Libraries
- Replies: 13
- Views: 5522
- Fri Aug 21, 2009 4:13 am
- Forum: PSP Development
- Topic: Cannot compile PSP Libraries
- Replies: 13
- Views: 5522
- Fri Aug 21, 2009 3:44 am
- Forum: PSP Development
- Topic: Cannot compile PSP Libraries
- Replies: 13
- Views: 5522
- Fri Aug 21, 2009 3:11 am
- Forum: PSP Development
- Topic: Cannot compile PSP Libraries
- Replies: 13
- Views: 5522
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...