Public bug reported: A simple audio file player like below need qtmultimedia5-dev. And as linking, it has "-lpulse" needs libpulse-dev.
=== main.cc #include <QCoreApplication> #include <QTimer> #include <QDebug> #include <QtMultimedia/QMediaPlayer> int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); QMediaPlayer *player; if (argc != 2) { qDebug() << "usage: " << argv[0] << " audiofile"; return 0; } player = new QMediaPlayer(0, 0); player->setMedia(QUrl::fromLocalFile(argv[1])); player->setVolume(50); // player->setPlaybackRate(1.2); player->play(); QObject::connect(player, SIGNAL(stateChanged(QMediaPlayer::State)),&app, SLOT(quit())); // as state change, quit app. // QTimer::singleShot(1000, &app, SLOT(quit())); //stop after 5 seconds return app.exec(); } === playaudio.pro QT += core QT += multimedia QT -= gui TARGET = playaudio CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp ** Affects: qtmultimedia-opensource-src (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1219656 Title: qtmultimedia5-dev needs depend on libpulse-dev To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtmultimedia-opensource-src/+bug/1219656/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs