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?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.