'SYS_gettid' undeclared - Bulding for android
Posted: 31 Jan 2012 09:30
I'm trying to build VLC for Android, and came to the issue, that I can't solve myself:
.././../../../src/posix/thread.c:90:5: warning: #warning Monotonic clock not available. Expect timing issues.
.././../../../src/posix/thread.c: In function 'vlc_threadid':
.././../../../src/posix/thread.c:151: error: 'SYS_gettid' undeclared (first use in this function)
.././../../../src/posix/thread.c:151: error: (Each undeclared identifier is reported only once
.././../../../src/posix/thread.c:151: error: for each function it appears in.)
.././../../../src/posix/thread.c: In function 'vlc_set_priority':
.././../../../src/posix/thread.c:826: warning: unused parameter 'th'
.././../../../src/posix/thread.c: In function 'vlc_cancel':
.././../../../src/posix/thread.c:859: error: implicit declaration of function 'pthread_cancel'
.././../../../src/posix/thread.c: In function 'vlc_savecancel':
.././../../../src/posix/thread.c:876: error: implicit declaration of function 'pthread_setcancelstate'
.././../../../src/posix/thread.c:876: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)
.././../../../src/posix/thread.c: In function 'vlc_restorecancel':
.././../../../src/posix/thread.c:896: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)
.././../../../src/posix/thread.c: In function 'vlc_testcancel':
.././../../../src/posix/thread.c:913: error: implicit declaration of function 'pthread_testcancel'
make[4]: *** [posix/thread.lo] Error 1
I've read similiar threads, and tried fixes from there, however it doesn't work for me
Help please.
.././../../../src/posix/thread.c:90:5: warning: #warning Monotonic clock not available. Expect timing issues.
.././../../../src/posix/thread.c: In function 'vlc_threadid':
.././../../../src/posix/thread.c:151: error: 'SYS_gettid' undeclared (first use in this function)
.././../../../src/posix/thread.c:151: error: (Each undeclared identifier is reported only once
.././../../../src/posix/thread.c:151: error: for each function it appears in.)
.././../../../src/posix/thread.c: In function 'vlc_set_priority':
.././../../../src/posix/thread.c:826: warning: unused parameter 'th'
.././../../../src/posix/thread.c: In function 'vlc_cancel':
.././../../../src/posix/thread.c:859: error: implicit declaration of function 'pthread_cancel'
.././../../../src/posix/thread.c: In function 'vlc_savecancel':
.././../../../src/posix/thread.c:876: error: implicit declaration of function 'pthread_setcancelstate'
.././../../../src/posix/thread.c:876: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)
.././../../../src/posix/thread.c: In function 'vlc_restorecancel':
.././../../../src/posix/thread.c:896: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)
.././../../../src/posix/thread.c: In function 'vlc_testcancel':
.././../../../src/posix/thread.c:913: error: implicit declaration of function 'pthread_testcancel'
make[4]: *** [posix/thread.lo] Error 1
I've read similiar threads, and tried fixes from there, however it doesn't work for me
Help please.