Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Build fails: "QCameraInfo: No such file or directory" after clean install on Windows and Docker
Forum Updated to NodeBB v4.3 + New Features

Build fails: "QCameraInfo: No such file or directory" after clean install on Windows and Docker

Scheduled Pinned Locked Moved Unsolved The Lounge
3 Posts 2 Posters 39 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.
  • S Offline
    S Offline
    shidovishidovi
    wrote last edited by
    #1

    Hello,

    I am having a persistent build error and I am out of ideas. I cannot compile a simple project that uses Qt Multimedia.

    The Error:
    My project fails with the error: fatal error: QCameraInfo: No such file or directory when I try to #include <QCameraInfo>.

    Environments:
    I have tried this on two completely different clean systems, and the error is the same on both:

    1. Windows 11: Qt 6.9.1, Qt Creator 17.0.0, using MSVC 2019 64-bit compiler.
    2. Linux: Fresh ubuntu:22.04 Docker container, Qt 6.x.x, using GCC.

    What I have tried (Summary):
    I have spent a very long time troubleshooting this. Here is what I have already done on BOTH systems:

    1. Confirmed my .pro file contains QT += multimedia.
    2. Used the official Qt Online Installer to do a complete, clean installation of Qt.
    3. During installation, I carefully selected the components: Desktop (for my compiler, e.g., MSVC or GCC) and Additional Libraries > Qt Multimedia. I have double-checked this selection.
    4. Completely deleted all Qt folders (C:\Qt, ~/Qt, config files in %APPDATA%, etc.) before reinstalling.
    5. The key evidence: After a fresh install finishes, I searched for the header file. On Linux, find ~/Qt -name "QCameraInfo.h" returns nothing. This proves the file is physically not being installed.

    My Question:
    Why would the official Qt Online Installer fail to install the Qt Multimedia files on two different clean systems (Windows and Ubuntu Docker)? It seems the installer is completing without errors, but the files are missing.

    Is this a known issue? Is there anything else I can check?

    Thank you for any help.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote last edited by Christian Ehrlicher
      #2

      QCameraInfo ist not available in Qt6 as you can see e.g. here: https://doc.qt.io/qt-6/qtmultimedia-modules.html, I would guess it's https://doc.qt.io/qt-6/qcameradevice.html now

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • S Offline
        S Offline
        shidovishidovi
        wrote last edited by
        #3

        Thank you for your reply. Your suggestion was the key to solving a problem I had been struggling with for a very long time.

        You were completely correct. The root cause was a Qt 5 vs. Qt 6 API change. I was trying to use the obsolete QCameraInfo class in my Qt 6 project.

        As soon as I refactored my code to use QMediaDevices::videoInputs() and the QCameraDevice class, the "file not found" error was resolved. I had spent many hours trying to fix what I thought was a broken installation, so your insight was incredibly helpful.

        Thank you for sharing your knowledge!

        1 Reply Last reply
        0

        • Login

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