Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. [Problem][semi-solved] with linking libvlc to qt
Forum Updated to NodeBB v4.3 + New Features

[Problem][semi-solved] with linking libvlc to qt

Scheduled Pinned Locked Moved 3rd Party Software
17 Posts 2 Posters 8.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 Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #8

    IIRC, MinGW 4.6 is not compatible with 4.8

    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
    • P Offline
      P Offline
      prawdziwy-sok
      wrote on last edited by
      #9

      Ok, so I have discovered, that libvlc is compatible only with qt4.6 7 and 8. In order to run it with qt5, you need to recompile it. I failed at that on windows, but on ubuntu (and for ubuntu- my cross compile attempt also failed miserably) I managed to compile and run it :)
      links to relevant things in the internet:
      http://ubuntuforums.org/showthread.php?t=2141949
      https://forum.videolan.org/viewtopic.php?f=32&t=119194
      https://forum.videolan.org/viewtopic.php?f=32&t=119141

      But now i have a Qt (even without using libvlc) problem- i have downloaded Qt 4.8, installed it, but when i try to build with it, i get GDB error
      "The gdb process terminated unexpectedly (code 0)". I made a new kit in build&run menu, and my settings are:
      Compiler- MinGW 4.8 32 bit (same as in working Qt5.2.1 kit)
      Debugger- extracted from Kit desktop Qt5.2.1 (the working one)
      Qt version 4.8.6
      Is the debugger the source of my problem? Should I download a newer version of gdb?
      I am not sure that the debugger is the source of my problem - if I build and then run program without debug, or just plain remove debugger from kit, the program just doesn't do anything -
      @int main(int argc, char *argv[])
      {
      QCoreApplication a(argc, argv);
      std::cout<<"test";
      int e = 0;
      std::cin>>e;

      return a.exec&#40;&#41;;
      

      }@
      does nothing. (since this is a qt issue, should i post about that elsewhere?)

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

        Just to rule out the obvious, you installed the 4.8.6 MinGW version ?

        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
        • P Offline
          P Offline
          prawdziwy-sok
          wrote on last edited by
          #11

          Yep;)

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

            How many versions of Qt do you have installed ? Also which version of Qt Creator do you currently use ?

            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
            • P Offline
              P Offline
              prawdziwy-sok
              wrote on last edited by
              #13

              I have Qt Creator 3.1.0, and my qt versions are: 4.8.6 and 5.2.1
              And sorry, i missed one thing- i don't just get one error when trying to debug my program, i get three:
              “The gdb process terminated unexpectedly (code 0)”
              "Cannot continue debugged process:
              The program is not being run." and
              "During startup program exited with code 0xc0000139."
              If I just run it without debug, it exits without doing anything.

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

                That means it can't find one or more dll at startup. Are you sure you have all paths set in your PATH environment 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
                • P Offline
                  P Offline
                  prawdziwy-sok
                  wrote on last edited by
                  #15

                  Well, the only difference between the paths from the two kits( 5.2.1 and 4.8.6) are the locations of the qt libraries themselves... should there be any other differences? can these two kits use the same compiler (mingw that came with qt 5.2.1)?

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

                    Then you need to add the path to the vlc lib dlls so they can be found at startup

                    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
                    • P Offline
                      P Offline
                      prawdziwy-sok
                      wrote on last edited by
                      #17

                      Well, I'm having a Qt issue now, because i was talking about simple emtpy program. So I'll say that this topic is answered, and start a new one in approporiate place:) Thanks for your help!

                      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