| View previous topic :: View next topic |
| Author |
Message |
mase
Joined: 21 Aug 2009 Posts: 23
|
Posted: Sun Aug 23, 2009 9:16 pm Post subject: compiling openttd - pthread problem |
|
|
Hi!
I am trying to compile openttd-0.7.2 for PSP. Now I get an error with
pthread:
| Code: | | thread_pthread.cpp:14: error: ‘pthread_t’ does not name a type |
This is the codepart causing this error:
| Code: | #include "stdafx.h"
#include "thread.h"
#include <pthread.h>
/**
* POSIX pthread version for ThreadObject.
*/
class ThreadObject_pthread : public ThreadObject {
private:
pthread_t thread; ///< System thread identifier.
OTTDThreadFunc proc; ///< External thread procedure.
void *param; ///< Parameter for the external thread procedure.
bool self_destruct; ///< Free ourselves when done?
public: |
I don't understand this, because pthread.h is included.
In the Makefile I also have
| Code: | | -I/usr/share/psp-dev/psp/include |
where pthread.h is present. I don't get errors about not found. Only
the above one.
What is going wrong? _________________ May the force be with us! |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Aug 25, 2009 3:57 am Post subject: |
|
|
| The psp doesn't have pthreads. Try using the libpthreadlite library in svn as a replacement. |
|
| Back to top |
|
 |
mase
Joined: 21 Aug 2009 Posts: 23
|
|
| Back to top |
|
 |
|