Page 1 of 1

'SYS_gettid' undeclared - Bulding for android

Posted: 31 Jan 2012 09:30
by dark666
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.

Re: 'SYS_gettid' undeclared - Bulding for android

Posted: 31 Jan 2012 11:10
by RĂ©mi Denis-Courmont
The official VLC does not support Android, since the official Android does not support POSIX.

You need to use some Android port.

Re: 'SYS_gettid' undeclared - Bulding for android

Posted: 31 Jan 2012 15:20
by dark666
I thought it was supported, since there is article in the official wiki http://wiki.videolan.org/AndroidCompile

Nevertheless, can you please point me at the best (in your opinion) port of VLC for Android ?

Thank you

Re: 'SYS_gettid' undeclared - Bulding for android

Posted: 18 Feb 2012 23:46
by XilasZ
The one mentioned by the wiki is the official android port of VLC : git://git.videolan.org/vlc-ports/android.git