[Interest] Qt6 on Ubuntu 22

Andreas Cord-Landwehr cordlandwehr at kde.org
Thu Dec 29 15:03:29 CET 2022


Hi Nuno, just install qt6-declarative-dev, which should provide all CMake 
configs also for QtQuick and QtQuickControls.

Cheers,
Andreas

On Donnerstag, 29. Dezember 2022 11:44:57 CET Nuno Santos wrote:
> Hi,
> 
> I’m trying to install and run Qt projects on Linux Ubuntu 22
> 
> I’ve used apt to install qt6-base-dev, qtcreator and libqt6quick6 packages.
> 
> But when I run Qt Creator and try a test project it always fails to find
> QtQuick packages:
> 
> Running /usr/bin/cmake -S /home/nsantos/workspace/qt6-test -B
> /home/nsantos/workspace/build-qt6-test-Desktop-Debug in
> /home/nsantos/workspace/build-qt6-test-Desktop-Debug. -- Could NOT find
> Qt6Quick (missing: Qt6Quick_DIR)
> CMake Error at CMakeLists.txt:8 (find_package):
>   Found package configuration file:   
> /usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake  but it set Qt6_FOUND
> to FALSE so package "Qt6" is considered to be NOT FOUND.  Reason given by
> package:  Failed to find Qt component "Quick".  Expected Config file at
> "/usr/lib/x86_64-linux-gnu/cmake/Qt6Quick/Qt6QuickConfig.cmake" does NOT
> exist-- Configuring incomplete, errors occurred!
> See also
> "/home/nsantos/workspace/build-qt6-test-Desktop-Debug/CMakeFiles/CMakeOutpu
> t.log". CMake process exited with exit code 1.
> 
> The directory /usr/lib/x86_64-linux-gnu/cmake/Qt6Quick is actually missing,
> so what package should I need to install in order to have it?
> 
> Thanks!
> 
> Regards,
> 
> Nuno
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest






More information about the Interest mailing list