vlc_GetCPUCount error when running the Android-install scrip

*nix specific usage questions
tux93
New Cone
New Cone
Posts: 4
Joined: 26 Oct 2011 13:41

vlc_GetCPUCount error when running the Android-install scrip

Postby tux93 » 26 Oct 2011 14:23

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?
Last edited by tux93 on 26 Oct 2011 17:32, edited 1 time in total.

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

Re: vlc_GetCPUCount error when running the Android-install s

Postby Rémi Denis-Courmont » 26 Oct 2011 16:43

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

tux93
New Cone
New Cone
Posts: 4
Joined: 26 Oct 2011 13:41

Re: vlc_GetCPUCount error when running the Android-install s

Postby tux93 » 26 Oct 2011 17:23

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?

bero7
Blank Cone
Blank Cone
Posts: 25
Joined: 11 May 2011 16:06

Re: vlc_GetCPUCount error when running the Android-install s

Postby bero7 » 27 Oct 2011 10:51


tux93
New Cone
New Cone
Posts: 4
Joined: 26 Oct 2011 13:41

Re: vlc_GetCPUCount error when running the Android-install s

Postby tux93 » 27 Oct 2011 15:21

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.

velutis
New Cone
New Cone
Posts: 1
Joined: 01 Nov 2011 17:16

Re: vlc_GetCPUCount error when running the Android-install s

Postby velutis » 01 Nov 2011 17:21

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

tux93
New Cone
New Cone
Posts: 4
Joined: 26 Oct 2011 13:41

Re: vlc_GetCPUCount error when running the Android-install s

Postby tux93 » 01 Nov 2011 22:49

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.

kaishu
New Cone
New Cone
Posts: 4
Joined: 29 Oct 2011 00:00

Re: vlc_GetCPUCount error when running the Android-install s

Postby kaishu » 05 Nov 2011 03:58

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?


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests