Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. include vlc in qt application

include vlc in qt application

Scheduled Pinned Locked Moved Unsolved General and Desktop
22 Posts 3 Posters 6.0k Views 1 Watching
  • 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.
  • SGaistS SGaist

    Which OS are you targeting ?

    A Offline
    A Offline
    abhay
    wrote on last edited by
    #5

    @SGaist linux only.I am working on linuxmint

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

      Then follow the Linux deployment guide.

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

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Then follow the Linux deployment guide.

        A Offline
        A Offline
        abhay
        wrote on last edited by
        #7

        @SGaist I deployed my app by linuxdeployqt tool.My app is working perfectly.But it's running only on machines which have vlc or libvlc.I want to bind the app into my appimage.But I am not able to do so.Can you tell me briefly how can I bind libvlc and my app,so that users without vlc also can run my app?Thanks!

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

          Did you use the -bundle-non-qt-libs option of that tool ?

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

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            Did you use the -bundle-non-qt-libs option of that tool ?

            A Offline
            A Offline
            abhay
            wrote on last edited by
            #9

            @SGaist Yes.But no luck :(

            1 Reply Last reply
            0
            • A abhay

              @SGaist I deployed my app by linuxdeployqt tool.My app is working perfectly.But it's running only on machines which have vlc or libvlc.I want to bind the app into my appimage.But I am not able to do so.Can you tell me briefly how can I bind libvlc and my app,so that users without vlc also can run my app?Thanks!

              T Offline
              T Offline
              Tikani
              wrote on last edited by
              #10

              @abhay you can do a static link in case you are writing app under GPL licence and your code is open sourced.

              A 1 Reply Last reply
              0
              • T Tikani

                @abhay you can do a static link in case you are writing app under GPL licence and your code is open sourced.

                A Offline
                A Offline
                abhay
                wrote on last edited by
                #11

                @Tikani I am sorry.I don't know how to create a static link.Can you tell me how to do this? Thanks! and my code is under GPL license

                T 1 Reply Last reply
                0
                • A abhay

                  @Tikani I am sorry.I don't know how to create a static link.Can you tell me how to do this? Thanks! and my code is under GPL license

                  T Offline
                  T Offline
                  Tikani
                  wrote on last edited by Tikani
                  #12

                  @abhay At first you need a static version of Qt environment. To get this one you need to build a Qt from source with -static parameter. Start from this link. Perhaps, you will have to get the sources of libvlc and recompile it as a static library, but I do not quite sure. Depends on what you will find in libvlc-dev package if you use sources from official mint repos. But you can download the freshest sources tarball from VLC site. In official repos packages are slightly outdated, usually.

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

                    @Tikani, @abhay doesn't struggle with Qt, it's vlc that is giving him a hard time to bundle.

                    @abhay, are you only missing the vlc libraries or is there anything else that is not pulled in ?

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

                    A 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      @Tikani, @abhay doesn't struggle with Qt, it's vlc that is giving him a hard time to bundle.

                      @abhay, are you only missing the vlc libraries or is there anything else that is not pulled in ?

                      A Offline
                      A Offline
                      abhay
                      wrote on last edited by
                      #14

                      @SGaist only vlc libraries.Qt is fine

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

                        Did you increase the log level of linuxdeployqt ? That might give you hints of what is happening.

                        You may have to tweak the tool a bit to make it include the vlc libraries.

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

                        A 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          Did you increase the log level of linuxdeployqt ? That might give you hints of what is happening.

                          You may have to tweak the tool a bit to make it include the vlc libraries.

                          A Offline
                          A Offline
                          abhay
                          wrote on last edited by
                          #16

                          @SGaist Did you mean --verbose? I set the default value only.

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

                            Put it at 4

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

                            A 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Put it at 4

                              A Offline
                              A Offline
                              abhay
                              wrote on last edited by
                              #18

                              @SGaist Same error man :(

                              A 1 Reply Last reply
                              0
                              • A abhay

                                @SGaist Same error man :(

                                A Offline
                                A Offline
                                abhay
                                wrote on last edited by
                                #19

                                @abhay and I think range is from 0-3 only I think.Although if you give more than 3 it will take same as 3 I think

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

                                  Setting the verbosity up won't fix the problem, however it should help you get information on what is happening. Maybe tell you why what dependency is ignored.

                                  From a quick look at linuxdeployqt, it might be because vlc is installed in a system folder which will be avoided by the tool.

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

                                  A 1 Reply Last reply
                                  0
                                  • SGaistS SGaist

                                    Setting the verbosity up won't fix the problem, however it should help you get information on what is happening. Maybe tell you why what dependency is ignored.

                                    From a quick look at linuxdeployqt, it might be because vlc is installed in a system folder which will be avoided by the tool.

                                    A Offline
                                    A Offline
                                    abhay
                                    wrote on last edited by
                                    #21

                                    @SGaist can you tell me how to link vlc if I install it in a custom manner?I mean downloading the source code and building it.

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

                                      The same as now except that you'll have to add the path to your custom VLC build in the LIBS variable.

                                      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