<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I had a similar problem because of the git client version that was up-to-date on ubuntu 11.10.<div>but this has been fixed last week and the compile script should now stop if a git error occurs</div><div><br><div><div>Le 10 mai 2012 à 09:47, ScottLin a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">2012/5/10 Baran Cem Barazi <span dir="ltr"><<a href="mailto:bcbarazi@gmail.com" target="_blank">bcbarazi@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br>When we try to compile VLC for Android we are getting following error.<br><br><a href="http://forum.videolan.org/viewtopic.php?f=13&t=97622" target="_blank"></a>../../src/posix/thread.c: In function 'vlc_cancel':<br>

../../src/posix/thread.c:846: error: implicit declaration of function 'pthread_cancel'<br>../../src/posix/thread.c: In function 'vlc_savecancel':<br>../../src/posix/thread.c:863: error: implicit declaration of function 'pthread_setcancelstate'<br>

../../src/posix/thread.c:863: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)<br>../../src/posix/thread.c:863: error: (Each undeclared identifier is reported only once<br>../../src/posix/thread.c:863: error: for each function it appears in.)<br>

../../src/posix/thread.c: In function 'vlc_restorecancel':<br>../../src/posix/thread.c:883: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)<br>../../src/posix/thread.c: In function 'vlc_testcancel':<br>

../../src/posix/thread.c:900: error: implicit declaration of function 'pthread_testcancel'<br>make[4]: *** [posix/thread.lo] Error 1<br>make[4]: Leaving directory `../android/vlc/android/src'<br>make[3]: *** [all-recursive] Error 1<br>

make[3]: Leaving directory `../android/vlc/android/src'<br>make[2]: *** [all] Error 2<br>make[2]: Leaving directory `../android/vlc/android/src'<br>make[1]: *** [all-recursive] Error 1<br><br></blockquote><div>you lost the android-threads-support patch for android.<br>
and I think maybe you did not patch at all to your android port, either.<br>here is a code snippet in the compile.sh. you may find it useful.<br><br>cd vlc<br>git reset --hard origin<br>git pull origin master<br>git checkout -B android 5069692bfb<br>
git am ../patches/*<br><br>if nothing goes wrong, execute "sh compile.sh" again.<br>you shall see a VLC-debug.apk in vlc-android/bin.<br><br>Best regards,<br>Scott<br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>Can you please tell us how did you get it solved?<br>
<br>Thanks in advance,
<br>_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
<br></blockquote></div><br>
_______________________________________________<br>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="http://mailman.videolan.org/listinfo/vlc-devel">http://mailman.videolan.org/listinfo/vlc-devel</a><br></blockquote></div><br>
<br></div></body></html>