[Solved]Missing QCameraInfo header



  • I'm putting together a test program to check the camera info on mobile device. The build is giving an error that #include <QCameraInfo> can't be found. Indeed, in my /usr/include/qt5/QtMultimedia folder, there is no QCameraInfo header. The other multimedia headers seem to be there.

    I'm using Ubuntu 14.04 and the Ubuntu SDK.

    Is there anyway to update Qt to get the header or should I reinstall?



  • Which Qt version do you have? QCameraInfo is in Qt since 5.3 version.



  • @diabolic You're right, I don't have the right Qt version. I installed the Ubuntu SDK from the software center in late Dec 2014 and assumed that it came with 5.3. However, it actually comes with Qt 5.2.1. Removing the Ubuntu SDK in the software center doesn't get rid of Qt 5.2.1 though.

    $qmake --version
    QMake version 3.0
    Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.