Page 1 of 1

Unable to build VLC-Android

Posted: 16 Jun 2015 01:03
by charly1811
I am trying to compile VLC for Android. During compilation I get the following error:

Code: Select all

In file included from ../../modules/demux/hls/playlist/HLSSegment.cpp:25:0: ../../include/vlc_gcrypt.h:72:37: warning: 'gcry_thread_cbs' is deprecated (declared at /home/charles-eugene/Android/vlc/vlc/contrib/arm-linux-androideabi/include/gcrypt.h:213) [-Wdeprecated-declarations] static const struct gcry_thread_cbs gcry_threads_vlc = ^ ../../include/vlc_gcrypt.h:81:1: error: too many initializers for 'const gcry_thread_cbs' }; ^ Makefile:16814: recipe for target 'demux/hls/playlist/libhls_plugin_la-HLSSegment.lo' failed make[4]: *** [demux/hls/playlist/libhls_plugin_la-HLSSegment.lo] Error 1 make[4]: Leaving directory '/home/charles-eugene/Android/vlc/vlc/build-android-arm-linux-androideabi/modules' Makefile:17339: recipe for target 'all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/home/charles-eugene/Android/vlc/vlc/build-android-arm-linux-androideabi/modules' Makefile:7738: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/home/charles-eugene/Android/vlc/vlc/build-android-arm-linux-androideabi/modules' Makefile:2245: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/charles-eugene/Android/vlc/vlc/build-android-arm-linux-androideabi' Makefile:2130: recipe for target 'all' failed make: *** [all] Error 2 vlc: make failed
I am building the master branch and my Android NDK is NDK-r10e-rc4
How to fix this issue ?

Re: Unable to build VLC-Android

Posted: 16 Jun 2015 09:50
by Ltty
Same issue here. All tools are up to date. Any help will be appreciated.

Re: Unable to build VLC-Android

Posted: 16 Jun 2015 12:25
by leykan
Same issue for me... any help ?

Re: Unable to build VLC-Android

Posted: 16 Jun 2015 13:17
by charly1811
Try to build again. They applied a patch
https://github.com/videolan/vlc/commit/ ... 7d2f703279

Re: Unable to build VLC-Android

Posted: 16 Jun 2015 14:06
by leykan
No change for me style the same error..

Code: Select all

In file included from /home/edouard/3DSoundLabs/android_dev/android/vlc/contrib/arm-linux-androideabi/include/gcrypt.h:32:0, from ../../modules/demux/hls/playlist/HLSSegment.hpp:30, from ../../modules/demux/hls/playlist/Parser.cpp:25: /home/edouard/3DSoundLabs/android_dev/android/vlc/contrib/arm-linux-androideabi/include/gpg-error.h:32:7: warning: "_MSC_VER" is not defined [-Wundef] #elif _MSC_VER >= 1300 ^ /home/edouard/3DSoundLabs/android_dev/android/vlc/contrib/arm-linux-androideabi/include/gpg-error.h:34:7: warning: "__STDC_VERSION__" is not defined [-Wundef] #elif __STDC_VERSION__ >= 199901L ^ CXX demux/hls/playlist/libhls_plugin_la-Representation.lo CXX demux/hls/playlist/libhls_plugin_la-HLSSegment.lo In file included from /home/edouard/3DSoundLabs/android_dev/android/vlc/contrib/arm-linux-androideabi/include/gcrypt.h:32:0, from ../../modules/demux/hls/playlist/HLSSegment.hpp:30, from ../../modules/demux/hls/playlist/HLSSegment.cpp:20: /home/edouard/3DSoundLabs/android_dev/android/vlc/contrib/arm-linux-androideabi/include/gpg-error.h:32:7: warning: "_MSC_VER" is not defined [-Wundef] #elif _MSC_VER >= 1300 ^ /home/edouard/3DSoundLabs/android_dev/android/vlc/contrib/arm-linux-androideabi/include/gpg-error.h:34:7: warning: "__STDC_VERSION__" is not defined [-Wundef] #elif __STDC_VERSION__ >= 199901L ^ CXX demux/hls/playlist/libhls_plugin_la-Tags.lo CXX demux/hls/libhls_plugin_la-HLSManager.lo CXX demux/hls/libhls_plugin_la-hls.lo ../../modules/demux/hls/HLSManager.cpp: In member function 'virtual adaptative::logic::AbstractAdaptationLogic* hls::HLSManager::createLogic(adaptative::logic::AbstractAdaptationLogic::LogicType)': ../../modules/demux/hls/HLSManager.cpp:49:12: warning: unused variable 'bps' [-Wunused-variable] size_t bps = var_InheritInteger(stream, "hls-prefbw") * 8192; ^ In file included from ../../include/vlc_common.h:907:0, from ../../modules/demux/hls/../adaptative/logic/IDownloadRateObserver.h:32, from ../../modules/demux/hls/../adaptative/logic/AbstractAdaptationLogic.h:28, from ../../modules/demux/hls/../adaptative/PlaylistManager.h:25, from ../../modules/demux/hls/HLSManager.hpp:23, from ../../modules/demux/hls/HLSManager.cpp:25: ../../modules/demux/hls/HLSManager.cpp: In member function 'virtual bool hls::HLSManager::updatePlaylist()': ../../modules/demux/hls/HLSManager.cpp:144:58: error: expected ')' before 'PRId64' msg_Dbg(stream, "Updated playlist, next update in %" PRId64 "s " ^ ../../include/vlc_messages.h:78:23: note: in definition of macro 'msg_Generic' __func__, __VA_ARGS__) ^ ../../modules/demux/hls/HLSManager.cpp:144:5: note: in expansion of macro 'msg_Dbg' msg_Dbg(stream, "Updated playlist, next update in %" PRId64 "s " ^ ../../include/vlc_messages.h:78:34: warning: spurious trailing '%' in format [-Wformat=] __func__, __VA_ARGS__) ^ ../../include/vlc_messages.h:86:5: note: in expansion of macro 'msg_Generic' msg_Generic(p_this, VLC_MSG_DBG, __VA_ARGS__) ^ ../../modules/demux/hls/HLSManager.cpp:144:5: note: in expansion of macro 'msg_Dbg' msg_Dbg(stream, "Updated playlist, next update in %" PRId64 "s " ^ ../../include/vlc_messages.h:78:34: warning: too many arguments for format [-Wformat-extra-args] __func__, __VA_ARGS__) ^ ../../include/vlc_messages.h:86:5: note: in expansion of macro 'msg_Generic' msg_Generic(p_this, VLC_MSG_DBG, __VA_ARGS__) ^ ../../modules/demux/hls/HLSManager.cpp:144:5: note: in expansion of macro 'msg_Dbg' msg_Dbg(stream, "Updated playlist, next update in %" PRId64 "s " ^ make[4]: *** [demux/hls/libhls_plugin_la-HLSManager.lo] Erreur 1 make[4]: *** Attente des tâches non terminées.... make[4]: quittant le répertoire « /home/edouard/3DSoundLabs/android_dev/android/vlc/build-android-arm-linux-androideabi/modules » make[3]: *** [all-recursive] Erreur 1 make[3]: quittant le répertoire « /home/edouard/3DSoundLabs/android_dev/android/vlc/build-android-arm-linux-androideabi/modules » make[2]: *** [all] Erreur 2 make[2]: quittant le répertoire « /home/edouard/3DSoundLabs/android_dev/android/vlc/build-android-arm-linux-androideabi/modules » make[1]: *** [all-recursive] Erreur 1 make[1]: quittant le répertoire « /home/edouard/3DSoundLabs/android_dev/android/vlc/build-android-arm-linux-androideabi » make: *** [all] Erreur 2 vlc: make failed

Re: Unable to build VLC-Android

Posted: 16 Jun 2015 14:45
by charly1811
I noticed this line:

Code: Select all

../../modules/demux/hls/HLSManager.cpp:144:58: error: expected ')' before 'PRId64'
Maybe a syntax error. Try to close the parenthesizes on file vlc/modules/demux/hls/HLSManager.cpp, line 144

If there's no error at the line, try to update your local repo

Code: Select all

git pull VLC_REMOTE master

Re: Unable to build VLC-Android

Posted: 16 Jun 2015 14:58
by leykan
Yes and no the problem is that they are missing '+' on this line and that 'PRId64' does not exist so I deleted this line (it was a call for a message debug) and it compile.
Thx charly1811

Re: Unable to build VLC-Android

Posted: 16 Jun 2015 15:56
by Rémi Denis-Courmont
No, the error message rather seems like a bug in your C++ compiler headers. PRId64 is defined in <inttypes.h>.

Re: Unable to build VLC-Android

Posted: 17 Jun 2015 11:12
by leykan
Ok I'm gona look what was the problem then

Re: Unable to build VLC-Android

Posted: 09 Jul 2015 22:00
by Jean-Baptiste Kempf
Fixed.