简体   繁体   中英

Qt Phonon on Linux - No such file or directory

The following includes work fine in Windows but is giving errors in Linux:

#include <Phonon/MediaObject>
#include <Phonon/MediaSource>
#include <Phonon/AudioOutput>

What is MediaOutput? I can't find it even in the documentation. Maybe you're looking for MediaObject?

For the rest:

  1. check your build actually contains the phonon module;
  2. check you added QT += phonon in the .pro file;
  3. in my build the directory containing those headers is "phonon" (without the quotes), with the lower case "p", and Linux is not case insensitive like windows.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM