Results 1 to 4 of 4

Thread: libVLC integration in Qt

  1. #1
    Join Date
    Aug 2012
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default libVLC integration in Qt

    I'm using Qt 5.2 and want to integrate vlclib in my own project. So I downloaded the source of vlclib (for Qt) and also the VLC player itself. I'm stuck in the integration, because I don't have experience with integration of third party components into Qt Creator. So what are the next steps? I know that I have to edit the pro file with libs and headers but don't know exactly how.

    Thank you.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: libVLC integration in Qt

    Build and install the library then adapt your PRO file using paths that match your installed library:
    Declaring Other Libraries
    QMake Variable Reference: LIBS
    QMake Variable Reference: INCLUDEPATH

  3. #3
    Join Date
    Aug 2012
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: libVLC integration in Qt

    Thank you for the hints. I don't how to build the library out of the source. Which tool do I have to use? I see that there's a CMakeLists.txt, but as far as I know I can not use CMake to build pro file for QT Creator, but only a sln file for Microsoft VS (which I don't use).
    Thanks in advance.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: libVLC integration in Qt

    Building the library has nothing to do with Qt Creator.

    Assuming you are using MingW for compiling your projects.
    You will need the full MSys/Mingw suite (I do not think the cut-down version in the Qt binary download is sufficient)
    https://wiki.videolan.org/Win32CompileMSYS/

    BTW: I see no CMakelists.txt in the source: http://git.videolan.org/?p=vlc.git;a=tree

Similar Threads

  1. Play RTMP in libvlc (video in QWidget)
    By braders2 in forum Qt Programming
    Replies: 15
    Last Post: 6th January 2014, 20:59
  2. How to use libVLC in Qt4
    By JuanC in forum Qt Programming
    Replies: 7
    Last Post: 12th February 2013, 19:55
  3. [Qt Widget + libvlc] catching mouse events
    By mentalmushroom in forum Qt Programming
    Replies: 9
    Last Post: 6th March 2012, 13:39
  4. LibVLC into an opengl QGraphicsScene
    By bunjee in forum Qt Programming
    Replies: 0
    Last Post: 20th January 2012, 12:33
  5. Replies: 1
    Last Post: 3rd March 2011, 11:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.