Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. libvlc in Qt Android app

libvlc in Qt Android app

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
10 Posts 2 Posters 4.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kornava
    wrote on last edited by
    #1

    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 : 9

    Any suggestions?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What exactly doesn't work ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kornava
        wrote on last edited by
        #3

        Hi SGaist,
        it doesn't recognize my #include <vlc/vlc.h>

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you add the path to the includes to INCLUDEPATHS ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kornava
            wrote on last edited by
            #5

            I have only th .so
            https://github.com/mrmaffen/vlc-android-sdk/tree/master/src/main/jniLibs/armeabi-v7a

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Then clone the vlc repository. You can see the command to use at the end of the README.md

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kornava
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kornava
                    wrote on last edited by
                    #9

                    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.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Which lib is missing ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved