Thanks for your post. Are you sure that vlc-qt libs could not compile on QT5 in Ubuntu ?You can´t have two versions of Qt in the same process. Since Ubuntu currently compiles VLC with Qt4, you need to do likewise.
Thanks for your reply. Do you able to link vlc-qt libs with QT5 in Ubuntu at your end ?You could link your libvlc application with qt5, but you have to remove libqt4_plugin.so to be able to run it.
Thanks for your answer. Can you please let me know which wrapper you have used in QT5 in Xubunutu 14 instead of vlc-qt libs ?Yes, I do. On Xubuntu 14, but not vlc-qt - my own wrapper. But it doesn't matter, since problem is in compatibility between qt4 and qt5.
I never wrote or implied that. It is just a fact that all released versions (as of today) of Ubuntu provide (Lib)VLC compiled with Qt4, not with Qt5.Are you sure that vlc-qt libs could not compile on QT5 in Ubuntu ?
Thanks for your post. Yes you are right. In research I also found the same.and again, problem is not with vlc-qt (or any other wrapper). Problem is Vlc uses Qt for gui on Linux. And this day it's usually Qt4. When you link your own application with Qt5 and libvlc, on start libvlc anyway loads all plugins (even if some of them will not be used), and GUI plugin is one of them. And you get crash.
So, finally solution is just remove libvlc's Qt GUI plugin = libqt4_plugin.so
Actually the issue I am facing is that when I build the vlc-qt libs in QT 4.8.6 then it built and run successfully in Ubuntu but getting some efficiency issue during setting the volume of vlc media by setVolume() method.I never wrote or implied that. It is just a fact that all released versions (as of today) of Ubuntu provide (Lib)VLC compiled with Qt4, not with Qt5.Are you sure that vlc-qt libs could not compile on QT5 in Ubuntu ?
That being said, the only reason why it crashes is a bug in Debian/Ubuntu packaging: https://bugs.debian.org/cgi-bin/bugrepo ... bug=755154
Can you please let me know on Ubuntu and QT version on which it worked at your end ? I am using QT 5.4 and Ubuntu 14.04, 64bit.move libqt4_plugin.so away from Vlc plugins folder should be enough.
at least for me it worked. Maybe you have some another problem too.
I downloaded the code from the above link but I get the empty folder QmlVlcDemo-master/deps/libvlc-sdk and mlVlcDemo-master/deps/QmlVlc so I am getting the error QmlVlc.h file not found while I run this project into QT creater.Checked right now on latest Linux Mint x64 + qt 5.4 + https://github.com/RSATom/QmlVlcDemo:
With libqt4_plugin.so it's crushed on start, after rename it to libqt4_plugin.so_ - it runs ok.
Code: Select all
sudo /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
Thanks RSATom for your post. FYI I have already done with this command and tried it again now but still geting the same issue.I've found the way how to build application with Qt5 and libvlc on linux and don't get crash on start:It will rebuild plugins cache and Qt4 gui plugin will not load on libvlc init.Code: Select all
sudo /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
Return to “Development around libVLC”
Users browsing this forum: No registered users and 24 guests