Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

QSound and error 2019

$
0
0
Hi, I got a problem when I try to use the QSound or QMediaPlayer QTCreator throws a “error LNK2019: external symbol not solved”. here’s my code: #include "mainwindow.h" #include <QApplication> /*#include <QtMultimedia/QMediaContent> #include <QtMultimedia/QMediaPlayer> #include <QUrl>*/ #include <QtMultimedia/QSound> int main(int argc, char *argv[]) {     QApplication a(argc, argv);     MainWindow w;     w.show();    /* QMediaContent media(QUrl::fromLocalFile("pan.wav"));     QMediaPlayer player;     player.setMedia(media);     player.play();*/     QSound::play("pan.wav");         return a.exec(); } I put “pan.wav” in each “release” and “source” folder. When I take out all the lines that have to deal with the sound processing it all compiles fine. I really need a little help here. Thanks :)

Viewing all articles
Browse latest Browse all 18427

Trending Articles