libvlc in Qt Android app
-
Hi,
I'm trying to integrate libvlc in a Qt android App.
I have a precompiled libvlc.so library, I tried to add it to LIBS+= as I do in Linux application, but it doesn't work.
I just need to add a compiled library and use the libvlc methods within the C++ source code, I don't need any wrappers for Qt/VLC.
Qt version : 5.6
Android SDK : 5.1
Android NDK : 9Any suggestions?
-
Hi,
What exactly doesn't work ?
-
Did you add the path to the includes to
INCLUDEPATHS
? -
-
The vlc repo doesn't contains the headers in that way.. it looks that the whole thing is done differently there.
it looks that its not evident to integrate libvlc in android with qt, as it is with linux.
I think the compiled libvlc library must be included in the jni folder and accessed within the java part, I don't see how to access those libraries from Qt C++ sources.
Anyway, thank you Gaist. -
Ok, I see, then I'd ask the VLC folks about that.
AFAIK, you should be able to link against these libs. What I'd try is to clone the standard libVLC repository to get the includes and link directly to that lib.
-
I got the headers elswhere, it worked for compilation, as for the runtime it get crashed as it strangly depends on another .so lib which is not included.. all the libvlc apps that I found contains just a libvlcjni.so file.
Compilation from the official repo was tricky. -
Which lib is missing ?