[vlc-devel] We are getting the compile error

pcoent at korrisoft.com pcoent at korrisoft.com
Thu May 10 10:02:27 CEST 2012


I had a similar problem because of the git client version that was not up-to-date on ubuntu 11.10.
but this has been fixed last week and the compile script should now stop if a git error occurs


Le 10 mai 2012 à 09:47, ScottLin a écrit :

> 
> 
> 2012/5/10 Baran Cem Barazi <bcbarazi at gmail.com>
> Hi,
> 
> When we try to compile VLC for Android we are getting following error.
> 
> ../../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
> 
> 
> _______________________________________________
> 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/3d319c21/attachment.html>


More information about the vlc-devel mailing list