Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. fatal error: QtMultimedia/qaudioformat.h: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

fatal error: QtMultimedia/qaudioformat.h: No such file or directory

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 3 Posters 2.4k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Adit
    wrote on last edited by
    #1

    I'm trying a qt project using libdash from this link. When I try to compile,it gives me error:

    fatal error: QtMultimedia/qaudioformat.h: No such file or directory
    

    #include "QtMultimedia/qaudioformat.h"

    This project makes use of cmake.

    I tried ,

    1

    sudo apt-get install qtmultimedia5-dev

    2

    #include "QtMultimedia/QAudioformat.h"

    Simple #include "QtMultimedia" is also giving me error.

    When I gave locate qt,it gave me several lines which includes;
    /usr/include/x86_64-linux-gnu/qt5/QtMultimedia/qaudioformat.h.So it seems,the file which Im trying to access is present in the system;but it is not getting accessed;this project makes use of cmake;

    Any suggestions/inputs will be really useful!!Thanks in advance..

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      As the documentation states, you should use #include <QAudioFormat>.

      (Z(:^

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Adit
        wrote on last edited by
        #3

        Thanks for the reply @sierdzio ;I tried using it;it gives me error:
        fatal error: QAudioFormat.h: No such file or directory #include <QAudioFormat.h>

        sierdzioS 1 Reply Last reply
        0
        • A Adit

          Thanks for the reply @sierdzio ;I tried using it;it gives me error:
          fatal error: QAudioFormat.h: No such file or directory #include <QAudioFormat.h>

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @Adit said in fatal error: QtMultimedia/qaudioformat.h: No such file or directory:

          Thanks for the reply @sierdzio ;I tried using it;it gives me error:
          fatal error: QAudioFormat.h: No such file or directory #include <QAudioFormat.h>

          No ".h".

          (Z(:^

          1 Reply Last reply
          1
          • A Offline
            A Offline
            Adit
            wrote on last edited by
            #5

            I tried without .h also;it gives me eror!!

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Then your cmake files are wrong, probably. I don't know cmake so can't help here.

              (Z(:^

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Adit
                wrote on last edited by
                #7

                could you suggest me some resource for the qt-cmake stuff??

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Hi,

                  Qt's documentation has a chapter about cmake.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved