[SOLVED] Problem calling libvlc_new from Qt5
-
wrote on 19 Feb 2014, 00:04 last edited by
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
-
Hi,
It sounds like a memory bug. Run your program in a debugger to see why the segfault occurs.
-
wrote on 19 Feb 2014, 18:32 last edited by
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.
-
I'm glad you've found a solution!
Please edit your original post and add "[SOLVED]" to the title.
3/4