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?