'SYS_gettid' undeclared - Bulding for android

VLC for Android and Chrome OS specific usage questions
dark666
New Cone
New Cone
Posts: 2
Joined: 31 Jan 2012 09:20

'SYS_gettid' undeclared - Bulding for android

Postby dark666 » 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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15148
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: 'SYS_gettid' undeclared - Bulding for android

Postby Rémi Denis-Courmont » 31 Jan 2012 11:10

The official VLC does not support Android, since the official Android does not support POSIX.

You need to use some Android port.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

dark666
New Cone
New Cone
Posts: 2
Joined: 31 Jan 2012 09:20

Re: 'SYS_gettid' undeclared - Bulding for android

Postby dark666 » 31 Jan 2012 15:20

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

XilasZ
Developer
Developer
Posts: 189
Joined: 16 Jun 2009 20:35

Re: 'SYS_gettid' undeclared - Bulding for android

Postby XilasZ » 18 Feb 2012 23:46

The one mentioned by the wiki is the official android port of VLC : git://git.videolan.org/vlc-ports/android.git


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 8 guests