[vlc-devel] We are getting the compile error

ScottLin scottlin at condel-tech.com
Thu May 10 09:47:39 CEST 2012


2012/5/10 Baran Cem Barazi <bcbarazi at gmail.com>

> Hi,
>
> When we try to compile VLC for Android we are getting following error.
>
> <http://forum.videolan.org/viewtopic.php?f=13&t=97622>../../src/posix/thread.c:
> In function 'vlc_cancel':
> ../../src/posix/thread.c:846: error: implicit declaration of function
> 'pthread_cancel'
> ../../src/posix/thread.c: In function 'vlc_savecancel':
> ../../src/posix/thread.c:863: error: implicit declaration of function
> 'pthread_setcancelstate'
> ../../src/posix/thread.c:863: error: 'PTHREAD_CANCEL_DISABLE' undeclared
> (first use in this function)
> ../../src/posix/thread.c:863: error: (Each undeclared identifier is
> reported only once
> ../../src/posix/thread.c:863: error: for each function it appears in.)
> ../../src/posix/thread.c: In function 'vlc_restorecancel':
> ../../src/posix/thread.c:883: error: 'PTHREAD_CANCEL_DISABLE' undeclared
> (first use in this function)
> ../../src/posix/thread.c: In function 'vlc_testcancel':
> ../../src/posix/thread.c:900: error: implicit declaration of function
> 'pthread_testcancel'
> make[4]: *** [posix/thread.lo] Error 1
> make[4]: Leaving directory `../android/vlc/android/src'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `../android/vlc/android/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `../android/vlc/android/src'
> make[1]: *** [all-recursive] Error 1
>
> you lost the android-threads-support patch for android.
and I think maybe you did not patch at all to your android port, either.
here is a code snippet in the compile.sh. you may find it useful.

cd vlc
git reset --hard origin
git pull origin master
git checkout -B android 5069692bfb
git am ../patches/*

if nothing goes wrong, execute "sh compile.sh" again.
you shall see a VLC-debug.apk in vlc-android/bin.

Best regards,
Scott


> Can you please tell us how did you get it solved?
>
> Thanks in advance,
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120510/ea8ab88d/attachment.html>


More information about the vlc-devel mailing list