Page 1 of 1

vlc_GetCPUCount error when running the Android-install scrip

Posted: 26 Oct 2011 14:23
by tux93
Hello,
when trying to build the VLC-Android Package with the provided Script i run into the following error:

Code: Select all

../../extras/package/android/../../../src/posix/thread.c:97:5: warning: #warning Monotonic clock not available. Expect timing issues. ../../extras/package/android/../../../src/posix/thread.c: In function 'vlc_set_priority': ../../extras/package/android/../../../src/posix/thread.c:833: warning: unused parameter 'th' ../../extras/package/android/../../../src/posix/thread.c: In function 'vlc_cancel': ../../extras/package/android/../../../src/posix/thread.c:866: error: implicit declaration of function 'pthread_cancel' ../../extras/package/android/../../../src/posix/thread.c: In function 'vlc_savecancel': ../../extras/package/android/../../../src/posix/thread.c:883: error: implicit declaration of function 'pthread_setcancelstate' ../../extras/package/android/../../../src/posix/thread.c:883: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function) ../../extras/package/android/../../../src/posix/thread.c:883: error: (Each undeclared identifier is reported only once ../../extras/package/android/../../../src/posix/thread.c:883: error: for each function it appears in.) ../../extras/package/android/../../../src/posix/thread.c: In function 'vlc_restorecancel': ../../extras/package/android/../../../src/posix/thread.c:903: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function) ../../extras/package/android/../../../src/posix/thread.c: In function 'vlc_testcancel': ../../extras/package/android/../../../src/posix/thread.c:920: error: implicit declaration of function 'pthread_testcancel' ../../extras/package/android/../../../src/posix/thread.c:1223:5: warning: #warning "vlc_GetCPUCount is not implemented for your platform" make[4]: *** [posix/thread.lo] Error 1 make[4]: Leaving directory `/Daten/Android/VLC/vlc/android/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/Daten/Android/VLC/vlc/android/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/Daten/Android/VLC/vlc/android/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/Daten/Android/VLC/vlc/android' make: *** [all] Error 2 Building Android make: *** No rule to make target `distclean'. Stop. make: *** No targets specified and no makefile found. Stop.
Has anyone else encountered this error or any tips how to work around this?

Re: vlc_GetCPUCount error when running the Android-install s

Posted: 26 Oct 2011 16:43
by RĂ©mi Denis-Courmont
vlc_GetCPUCount() is warning that it's not implemented, and thus defaults to always ONE. That's not good, but it's not an error.

Re: vlc_GetCPUCount error when running the Android-install s

Posted: 26 Oct 2011 17:23
by tux93
Well thanks for pointing that out, i just assumed its an error since it stopped right after that.
Now how do i get it over that point without aborting?

Re: vlc_GetCPUCount error when running the Android-install s

Posted: 27 Oct 2011 10:51
by bero7

Re: vlc_GetCPUCount error when running the Android-install s

Posted: 27 Oct 2011 15:21
by tux93
Thanks for your help so far, i got over it after executing the script step for step like suggested in the thread bero7 linked, but now i run into this:

Code: Select all

make[6]: Entering directory `/Daten/Android/VLC/android/vlc/android/modules/stream_filter/dash' CXX libstream_filter_dash_plugin_la-AbstractAdaptationLogic.lo CXX libstream_filter_dash_plugin_la-AdaptationLogicFactory.lo CXX libstream_filter_dash_plugin_la-AlwaysBestAdaptationLogic.lo CXX libstream_filter_dash_plugin_la-RateBasedAdaptationLogic.lo CXX libstream_filter_dash_plugin_la-Chunk.lo CXX libstream_filter_dash_plugin_la-HTTPConnection.lo In file included from ../../../../extras/package/android/../../../modules/stream_filter/dash/http/HTTPConnection.h:35, from ../../../../extras/package/android/../../../modules/stream_filter/dash/http/HTTPConnection.cpp:28: ../../../../extras/package/android/../../../include/vlc_fixups.h:283: error: previous declaration of 'int vlc_poll(pollfd*, unsigned int, int)' with 'C++' linkage ../../../../extras/package/android/../../../include/vlc_network.h:170: error: conflicts with new declaration with 'C' linkage make[6]: *** [libstream_filter_dash_plugin_la-HTTPConnection.lo] Error 1 make[6]: Leaving directory `/Daten/Android/VLC/android/vlc/android/modules/stream_filter/dash' make[5]: *** [all] Error 2 make[5]: Leaving directory `/Daten/Android/VLC/android/vlc/android/modules/stream_filter/dash' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/Daten/Android/VLC/android/vlc/android/modules/stream_filter' make[3]: *** [all] Error 2 make[3]: Leaving directory `/Daten/Android/VLC/android/vlc/android/modules/stream_filter' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/Daten/Android/VLC/android/vlc/android/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/Daten/Android/VLC/android/vlc/android' make: *** [all] Error 2
If more info is needed please ask.

Re: vlc_GetCPUCount error when running the Android-install s

Posted: 01 Nov 2011 17:21
by velutis
Hi, how did you managed to overcome vlc_GetCPUCount problem. i am trying to do step by step install script but i get same problems with vlc_GetCPUCount and other errors from thread.c

Re: vlc_GetCPUCount error when running the Android-install s

Posted: 01 Nov 2011 22:49
by tux93
Like in the thread bero7 posted explained, the two export steps in the skript somehow weren't executed, executing the script step-by-step including these steps solved the vlc_GetCPUCount problem, but now theres the above problem.

Re: vlc_GetCPUCount error when running the Android-install s

Posted: 05 Nov 2011 03:58
by kaishu
It looks like that RECENT "vlc" gits has src/posix/thread.c problem and makes build failure.
(try to remove these function? Build successes but .apk running fails)
Is the problem fixed?