Unable to build VLC-Android

This forum is about all development around libVLC.
charly1811
New Cone
New Cone
Posts: 3
Joined: 16 Jun 2015 00:59

Unable to build VLC-Android

Postby charly1811 » 16 Jun 2015 01:03

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 ?

Ltty
Blank Cone
Blank Cone
Posts: 15
Joined: 13 Jan 2014 15:51

Re: Unable to build VLC-Android

Postby Ltty » 16 Jun 2015 09:50

Same issue here. All tools are up to date. Any help will be appreciated.

leykan
New Cone
New Cone
Posts: 7
Joined: 18 May 2015 14:23

Re: Unable to build VLC-Android

Postby leykan » 16 Jun 2015 12:25

Same issue for me... any help ?

charly1811
New Cone
New Cone
Posts: 3
Joined: 16 Jun 2015 00:59

Re: Unable to build VLC-Android

Postby charly1811 » 16 Jun 2015 13:17

Try to build again. They applied a patch
https://github.com/videolan/vlc/commit/ ... 7d2f703279

leykan
New Cone
New Cone
Posts: 7
Joined: 18 May 2015 14:23

Re: Unable to build VLC-Android

Postby leykan » 16 Jun 2015 14:06

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

charly1811
New Cone
New Cone
Posts: 3
Joined: 16 Jun 2015 00:59

Re: Unable to build VLC-Android

Postby charly1811 » 16 Jun 2015 14:45

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

leykan
New Cone
New Cone
Posts: 7
Joined: 18 May 2015 14:23

Re: Unable to build VLC-Android

Postby leykan » 16 Jun 2015 14:58

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

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

Re: Unable to build VLC-Android

Postby Rémi Denis-Courmont » 16 Jun 2015 15:56

No, the error message rather seems like a bug in your C++ compiler headers. PRId64 is defined in <inttypes.h>.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

leykan
New Cone
New Cone
Posts: 7
Joined: 18 May 2015 14:23

Re: Unable to build VLC-Android

Postby leykan » 17 Jun 2015 11:12

Ok I'm gona look what was the problem then

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Unable to build VLC-Android

Postby Jean-Baptiste Kempf » 09 Jul 2015 22:00

Fixed.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests