Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Trying to include library
Forum Updated to NodeBB v4.3 + New Features

Trying to include library

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 373 Views
  • 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.
  • N Offline
    N Offline
    NordinCoding
    wrote on last edited by
    #1

    Im super new to Qt and C++ in general and im trying to include the QMediaPlayer library however its telling me "no such file in directory" I havnt had this issue with any other libraries so im very confused why its happening with this one and also very confused how its expecting me to install it or something

    JonBJ 1 Reply Last reply
    0
    • N NordinCoding

      Im super new to Qt and C++ in general and im trying to include the QMediaPlayer library however its telling me "no such file in directory" I havnt had this issue with any other libraries so im very confused why its happening with this one and also very confused how its expecting me to install it or something

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @NordinCoding

      @NordinCoding said in Trying to include library:

      "no such file in directory"

      You get this rather than No such file or directory do you? When, e.g. when compiling and it hits a #include line, in which case show the line, or when linking, in which case show the .pro or CMakelists.txt file? Are you using qmake or cmake? Which platform are you on? What version of Qt?

      N 1 Reply Last reply
      3
      • aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        In addition to what @JonB said, the docu: https://doc.qt.io/qt-6/qmediaplayer.html has a table that lists the needed additions in the .pro or CMakeLists.txt.

        Qt has to stay free or it will die.

        1 Reply Last reply
        1
        • JonBJ JonB

          @NordinCoding

          @NordinCoding said in Trying to include library:

          "no such file in directory"

          You get this rather than No such file or directory do you? When, e.g. when compiling and it hits a #include line, in which case show the line, or when linking, in which case show the .pro or CMakelists.txt file? Are you using qmake or cmake? Which platform are you on? What version of Qt?

          N Offline
          N Offline
          NordinCoding
          wrote on last edited by
          #4

          @JonB @aha_1980 Thank you guys i managed to figure it out, i was very confused at first on where to add it to and how but after a little bit of messing around it seems to work

          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