[SOLVED] Problem calling libvlc_new from Qt5



  • 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


  • Moderators

    Hi,

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



  • 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.


  • Moderators

    I'm glad you've found a solution!

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.