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. [SOLVED] Problem calling libvlc_new from Qt5
Forum Update on Monday, May 27th 2025

[SOLVED] Problem calling libvlc_new from Qt5

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.0k 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.
  • C Offline
    C Offline
    Chrisw01
    wrote on 19 Feb 2014, 00:04 last edited by
    #1

    Hi,

    I'm developing a Qt5 app that uses libvlc, the following line will generate a sigsegv error.

    Taken from an example on the internet.
    @
    mediaPlayerInstance = libvlc_new(sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args);
    @

    Worked fine in Qt4.x with libvlc 1.x Qt5 with 2.x throws segfaults.

    Thanks

    1 Reply Last reply
    0
    • J Online
      J Online
      JKSH
      Moderators
      wrote on 19 Feb 2014, 00:33 last edited by
      #2

      Hi,

      It sounds like a memory bug. Run your program in a debugger to see why the segfault occurs.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Chrisw01
        wrote on 19 Feb 2014, 18:32 last edited by
        #3

        Hi,

        After HOURS of googling, I found one thread on the internet which I cannot find again, sorry, however, libvlc on unbuntu (and I'm sure other distros as well) is compiled against Qt in my case Qt4 and must be compiled against Qt5 or without Qt support all together. I chose to compile without Qt support and everything works as designed now.

        1 Reply Last reply
        0
        • J Online
          J Online
          JKSH
          Moderators
          wrote on 20 Feb 2014, 01:01 last edited by
          #4

          I'm glad you've found a solution!

          Please edit your original post and add "[SOLVED]" to the title.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0

          3/4

          19 Feb 2014, 18:32

          • Login

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