I modified .pro:
QT += core gui multimedia multimediawidgets
And I include <QMediaPlayer>
, <QVideoWidgets>
in main.cpp
Then I tried to build. It gives me following errors:
cannot find -lpulse-mainloop-glib
cannot find -lpulse
collect2:error:ld returned 1 exit status
Can anyone help me? My system is Ubuntu 16.04 LTS.
Try sudo apt-get install libpulse-dev
From http://www.qtcentre.org/threads/50938-QT-error-usr-bin-ld-cannot-find-lpulse-mainloop-glib:
From: norobro
Default Re: QT error /usr/bin/ld: cannot find -lpulse-mainloop-glib On my Debian box that lib is in the libpulse-dev package. Do you have it installed?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With