compile vlc-android fail

VLC for Android and Chrome OS specific usage questions
aifeng.hong
New Cone
New Cone
Posts: 5
Joined: 05 Jul 2018 13:26

compile vlc-android fail

Postby aifeng.hong » 05 Jul 2018 17:02

Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
make: Entering directory `/usr/local/vlc/vlc-android/libvlc'
[armeabi-v7a] Gdbserver : [arm-linux-androideabi] libs/armeabi-v7a/gdbserver
[armeabi-v7a] Gdbsetup : libs/armeabi-v7a/gdb.setup
[armeabi-v7a] Compile thumb : vlcjni <= libvlcjni-modules.c
[armeabi-v7a] Compile thumb : vlcjni <= libvlcjni-symbols.c
[armeabi-v7a] Compile++ thumb: mla <= AndroidMediaLibrary.cpp
jni/../../medialibrary/jni/./AndroidMediaLibrary.cpp:377:59: error: reference to type 'const medialibrary::IMedia' could not bind to an lvalue of type 'int64_t' (aka 'long long')
return playlist == nullptr ? false : playlist->append(mediaId);
^~~~~~~
/usr/local/vlc/vlc-android/medialibrary/medialibrary/include/medialibrary/IPlaylist.h:52:40: note: passing argument to parameter 'media' here
virtual bool append( const IMedia& media ) = 0;
^
jni/../../medialibrary/jni/./AndroidMediaLibrary.cpp:383:56: error: reference to type 'const medialibrary::IMedia' could not bind to an lvalue of type 'int64_t' (aka 'long long')
return playlist == nullptr ? false : playlist->add(mediaId, position);
^~~~~~~
/usr/local/vlc/vlc-android/medialibrary/medialibrary/include/medialibrary/IPlaylist.h:60:37: note: passing argument to parameter 'media' here
virtual bool add( const IMedia& media, unsigned int position ) = 0;
^
2 errors generated.
make: *** [jni/obj/local/armeabi-v7a/objs-debug/mla/AndroidMediaLibrary.o] Error 1
make: Leaving directory `/usr/local/vlc/vlc-android/libvlc'
ndk-build failed

It appears to vlc source code! How can I fix it without modifying the code? Could anyone know what's wrong with it?
Last edited by aifeng.hong on 06 Jul 2018 03:10, edited 1 time in total.

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: ndk-build fail

Postby Jean-Baptiste Kempf » 05 Jul 2018 19:36

Update.
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.

aifeng.hong
New Cone
New Cone
Posts: 5
Joined: 05 Jul 2018 13:26

Re: ndk-build fail

Postby aifeng.hong » 06 Jul 2018 03:42

Update.
I have updated the NDK to 17,but it happened again.

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: compile vlc-android fail

Postby Jean-Baptiste Kempf » 07 Jul 2018 18:25

No. Buildbot go through every night and they work fine. Read the documentaiton.
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.

User avatar
rom1v
Developer
Developer
Posts: 36
Joined: 02 Jul 2012 13:37

Re: compile vlc-android fail

Postby rom1v » 09 Jul 2018 11:32

Your medialibrary git is probably not up to date. From your vlc-android root project:

Code: Select all

cd medialibrary/medialibrary git pull

aifeng.hong
New Cone
New Cone
Posts: 5
Joined: 05 Jul 2018 13:26

Re: compile vlc-android fail

Postby aifeng.hong » 13 Jul 2018 05:35

Your medialibrary git is probably not up to date. From your vlc-android root project:

Code: Select all

cd medialibrary/medialibrary git pull
Yes,You are right!Thanks for your reply!


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 3 guests