Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt multimedia: cannot find -lpulse

Tags:

video

ubuntu

qt

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.

like image 961
Anna yang Avatar asked Feb 09 '17 15:02

Anna yang


1 Answers

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?

like image 90
sashoalm Avatar answered Nov 13 '22 08:11

sashoalm