TOffline
TOffline
Tom asso
wrote on last edited by
#1
I install Qt with the online installer. I build my Qt6 app with cmake, on ubuntu 22.04.3. My CMakeLists.txt:
find_package(Qt6 COMPONENTS Gui Quick REQUIRED)
Previously I built successfully with Qt6.8.0
I just installed Qt6.8.2 with the online installer, into directory /home/oreilly/Qt6.8. Now my cmake file fails to find Qt6 components - Grrrr... What am I doing wrong?
Thanks!By not providing "FindQt6QmlTools.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt6QmlTools", but CMake did not find one. Could not find a package configuration file provided by "Qt6QmlTools" (requested version 6.8.0) with any of the following names: Qt6QmlToolsConfig.cmake qt6qmltools-config.cmake Add the installation prefix of "Qt6QmlTools" to CMAKE_PREFIX_PATH or set "Qt6QmlTools_DIR" to a directory containing one of the above files. If "Qt6QmlTools" provides a separate development package or SDK, be sure it has been installed.Call Stack (most recent call first): /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6QuickTools/Qt6QuickToolsDependencies.cmake:12 (find_dependency) /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6QuickTools/Qt6QuickToolsConfig.cmake:36 (include) /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:97 (find_package) /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:38 (_qt_internal_find_tool_dependencies) /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:43 (include) /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package) src/qt-guilib/CMakeLists.txt:25 (find_package)CMake Warning at /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:97 (find_package): Found package configuration file: /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6QuickTools/Qt6QuickToolsConfig.cmake but it set Qt6QuickTools_FOUND to FALSE so package "Qt6QuickTools" is considered to be NOT FOUND. Reason given by package: Qt6QuickTools could not be found because dependency Qt6QmlTools could not be found.Call Stack (most recent call first): /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:38 (_qt_internal_find_tool_dependencies) /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:43 (include) /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package) src/qt-guilib/CMakeLists.txt:25 (find_package)CMake Warning at /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package): Found package configuration file: /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake but it set Qt6Quick_FOUND to FALSE so package "Qt6Quick" is considered to be NOT FOUND. Reason given by package: Qt6Quick could not be found because dependency Qt6QuickTools could not be found. Configuring with --debug-find-pkg=Qt6QuickTools might reveal details why the package was not found. Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some of the path variables that find_package uses to try and find the package.Call Stack (most recent call first): src/qt-guilib/CMakeLists.txt:25 (find_package)CMake Error at src/qt-guilib/CMakeLists.txt:25 (find_package): Found package configuration file: /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/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 required Qt component "Quick". Expected Config file at "/home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake" exists
1 ReplyLast reply
TOffline
TOffline
Tom asso
wrote on last edited by Tom asso
#17
OK I was using online-installer and MaintenanceTool incorrectly. For my own edification/notes, the "correct" way for Qt desktop seems to be:
- Run installer, specify "Qt" as Qt destination directory, then specify "Qt 6.8 for desktop development"
- Run downloaded Qt/MaintenanceTool , select Add or remove components
Qt->Qt6.8.2->Additional libraries->Qt Graphs (plus preselected libraries)
Thanks for your help everyone.
1 ReplyLast reply
SOffline
SOffline
SGaist
Lifetime Qt Champion
wrote on last edited by
#2
Hi,
Any chances you have a cache lying around from the previous build ?
Interested in AI ? www.idiap.ch
Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conductT1 ReplyLast reply
1
SSGaist
Hi,
Any chances you have a cache lying around from the previous build ?
TOffline
TOffline
Tom asso
wrote on last edited by Tom asso
#3
@SGaist - I removed the cache file, problem still persists. cmake output says:
Found package configuration file: /home/oreilly/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/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 required Qt component "Quick".
Why is component "Quick" not found? Is it not installed by default by the online installer?
1 ReplyLast reply
SOffline
SOffline
SGaist
Lifetime Qt Champion
See AlsoQt Designer/Creator/Design Studio - Which Should I Use?Es wurden keine gültigen Kits gefundenQt graph vs Qt chart[SOLVED] Qt - This application failed to start because it could not find or load the qt platform plugin windowswrote on last edited by
#4
Wait...
Why is it searching in Design Studio ?
Are you sure the kit you are trying to use is pointing to the Qt 6.8.2 that you installed ?Interested in AI ? www.idiap.ch
Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conductT1 ReplyLast reply
1
SSGaist
Wait...
Why is it searching in Design Studio ?
Are you sure the kit you are trying to use is pointing to the Qt 6.8.2 that you installed ?TOffline
TOffline
Tom asso
wrote on last edited by Tom asso
#5
@SGaist I installed Qt 6.8.2 into /home/oreilly/Qt6.8.
I set CMAKE_PREFIX_PATH to /home/oreilly/Qt6.8/6.8.2/gcc_64/lib/cmake/Qt6CoreTools/ - that seems correct, right?1 ReplyLast reply
SOffline
SOffline
SGaist
Lifetime Qt Champion
wrote on last edited by
#6
No, you should have stopped at the cmake level.
Interested in AI ? www.idiap.ch
Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conductT1 ReplyLast reply
1
SSGaist
No, you should have stopped at the cmake level.
TOffline
TOffline
Tom asso
wrote on last edited by Tom asso
#7
@SGaist EDIT: I see, thanks now cmake works!
CMAKE_PREFIX_PATH=/home/oreilly/Qt6.8/6.8.2/gcc_64/lib/cmake/1 ReplyLast reply
TOffline
TOffline
Tom asso
wrote on last edited by
#8
But now I want to add Graphs component:
find_package(Qt6 COMPONENTS Gui Quick Graphs REQUIRED)
But cmake fails:
-- Could NOT find Qt6Graph (missing: Qt6Graph_DIR)CMake Error at src/qt-guilib/CMakeLists.txt:25 (find_package): Found package configuration file: /home/oreilly/Qt6.8/6.8.2/gcc_64/lib/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 required Qt component "Graph". Expected Config file at "/home/oreilly/Qt6.8/6.8.2/gcc_64/lib/cmake/Qt6Graph/Qt6GraphConfig.cmake" does NOT exist
I looked in the online installer, didn't see any "custom" installation for Graphs - How can I install it?
Thanks!
1 ReplyLast reply
SOffline
SOffline
SGaist
Lifetime Qt Champion
wrote on last edited by
#9
There's something wrong somewhere. Your components show graphs yet cmake is warning about graph. Did you forget the s in your
CMakeLists.txt
?Interested in AI ? www.idiap.ch
Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conductT1 ReplyLast reply
SSGaist
There's something wrong somewhere. Your components show graphs yet cmake is warning about graph. Did you forget the s in your
CMakeLists.txt
?TOffline
TOffline
Tom asso
wrote on last edited by
#10
@SGaist
I tried both "Graph" and "Graphs" - here is output from "Graphs":Found package configuration file: /home/oreilly/Qt6.8/6.8.2/gcc_64/lib/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 required Qt component "Graphs". Expected Config file at "/home/oreilly/Qt6.8/6.8.2/gcc_64/lib/cmake/Qt6Graphs/Qt6GraphsConfig.cmake" does NOT exist
1 ReplyLast reply
TOffline
TOffline
Tom asso
wrote on last edited by Tom asso
#11
The problem is that in Qt 6.8.2, the Graphs headers, cmake and libraries components are only found in the Tools/QtDesignStudio directory; e.g. on my system in $HOME/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version. But I do not use QtDesignStudio as I've found it to be very buggy in ubuntu 22.04.3.
It's a pain-in-the-neck but I had to manually create symbolic links in order to build with Qt6 Graphs on my system:ln -s ~/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/cmake/Qt6Graphs ~/Qt6.8/6.8.2/gcc_64/lib/Qt6Graphsln -s ~/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/lib/libQt6Graphs.so.6.8.0 ~/Qt6.8/6.8.2/gcc_64/lib/libQt6Graphs.so.6.8.0ln -s ~/Qt6.8/Tools/QtDesignStudio/qt6_design_studio_reduced_version/include/QtGraphs ~/Qt6.8/6.8.2/gcc_64/include/QtGraphs
Perhaps I could avoid making these symbolic links through clever use of environment variables, but the above seems to work now.
I assume and hope that the Graphs components will be moved from Tools/QtDesignStudio into the "standard" directory (e.g 6.8.x/) in future releases.
1 ReplyLast reply
TOffline
TOffline
Tom asso
wrote on last edited by Tom asso
#12
Almost there...
I add the following to my app's qml file as described here:import QtGraphs
I build my app with cmake as described above but when I run it, it generates an error and segfaults:
module "QtGraphs" is not installedSegmentation fault (core dumped)
What am I missing now?
Thanks!1 ReplyLast reply
SOffline
SOffline
SGaist
Lifetime Qt Champion
wrote on last edited by
#13
Did you check that you installed the optional components in the installer ?
Interested in AI ? www.idiap.ch
Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conductT1 ReplyLast reply
SSGaist
Did you check that you installed the optional components in the installer ?
TOffline
TOffline
Tom asso
wrote on last edited by Tom asso
#14
@SGaist - I selected "Qt 6.8 for desktop development" in the online installer. As noted above the downloaded components included Qt Graphs code and libraries under the Tools/QtDesignStudio/ directory - I had to make some symbolic links to those in order to build my code (I do not use QtDesignStudio). I can compile and link my application, but "import QtGraphs" fails at runtime. Where are the "optional components" you refer to? If I select "Custom Installation" instead of "Qt 6.8 for desktop development" I don't see options obviously related to Qt Graphs.
J1 ReplyLast reply
TTom asso
@SGaist - I selected "Qt 6.8 for desktop development" in the online installer. As noted above the downloaded components included Qt Graphs code and libraries under the Tools/QtDesignStudio/ directory - I had to make some symbolic links to those in order to build my code (I do not use QtDesignStudio). I can compile and link my application, but "import QtGraphs" fails at runtime. Where are the "optional components" you refer to? If I select "Custom Installation" instead of "Qt 6.8 for desktop development" I don't see options obviously related to Qt Graphs.
JOffline
JOffline
jsulm
Lifetime Qt Champion
wrote on last edited by
#15
@Tom-asso said in Installed Qt6.8.2 - now cmake cannot find Qt6 components:
I had to make some symbolic links to those in order to build my code (I do not use QtDesignStudio)
This is wrong Qt modules are not installed in Tools/QtDesignStudio!
"Where are the "optional components" you refer to?" - in the Qt installer or Qt maintenance tool.https://forum.qt.io/topic/113070/qt-code-of-conduct
T1 ReplyLast reply
Jjsulm
@Tom-asso said in Installed Qt6.8.2 - now cmake cannot find Qt6 components:
I had to make some symbolic links to those in order to build my code (I do not use QtDesignStudio)
This is wrong Qt modules are not installed in Tools/QtDesignStudio!
"Where are the "optional components" you refer to?" - in the Qt installer or Qt maintenance tool.TOffline
TOffline
Tom asso
wrote on last edited by Tom asso
#16
OK double-checking that I'm using correct version of the installer...
1 ReplyLast reply
TOffline
TOffline
Tom asso
wrote on last edited by Tom asso
#17
OK I was using online-installer and MaintenanceTool incorrectly. For my own edification/notes, the "correct" way for Qt desktop seems to be:
- Run installer, specify "Qt" as Qt destination directory, then specify "Qt 6.8 for desktop development"
- Run downloaded Qt/MaintenanceTool , select Add or remove components
Qt->Qt6.8.2->Additional libraries->Qt Graphs (plus preselected libraries)
Thanks for your help everyone.
1 ReplyLast reply
T Tom asso has marked this topic as solved on
Installed Qt6.8.2 - now cmake cannot find Qt6 components (2025)
Top Articles
Will Seitokai Yakuin Toshite Mondaiji Wo Kousei Saseteitara Nazeka Love Comedy Ni Natteita Ken Continue
25 Strongest 'One Piece' Characters (Ranked)
When Is Next Season Of Pokemon Diamond & Pearl: Genei No Hasha Zoroark
Latest Posts
Recommended Articles
- The Best Essential Oil Diffusers to Refresh Your Home
- Domino's Pizza Canberra ACT | Order Pizza Delivery & Takeaway
- Die 5. Sinfonie von Beethoven
- How to regain access to HMRC Government Gateway
- De top 5 bezienswaardigheden van Karachi die je niet mag missen. - Reisver.nl
- Friesische Fliesen, alte holländische Fliesen handgemacht und bemalt
- Change Minimum Password Length for Local Accounts in Windows 10 - Windows 10 Help Forums
- Amino Acids- Properties, Structure, Classification, Functions
- The Plot Of A New Pixar Movie Is Almost Exactly James Cameron's Avatar (But Cuter) - SlashFilm
- Test du jeu Elden Ring Nightreign
- Raw SQL parameters placeholders | Query Builder
- News – Hollywood Life
- Raufoss Demontagewerkzeug aus Aluminium RF-LW AL NL, € 112,15
- Type & edit with your voice
- Top 20 Hospitals in the Philippines | ProudlyFilipino.com
- Laser à ligne pour applications industrielles - SL-Laser GmbH
- The Legacy and Bravery of the 75th Ranger Regiment
- Pizza Delivery Near Me in Dallas | Domino's Pizza
- X1 G9 ThinkPad Thunderbolt 3 dock Gen2 / Workstation dock Firmware Update Tool - 10 [64]
- Who is Julia Louis-Dreyfus? Everything You Need to Know
- 10 cách dùng ChatGPT - OpenAI Chat miễn phí tại Việt Nam
- How do I contact Apple Support?
- ¿Cómo se le dice al durazno en Argentina? ✔ [Actualizado 2025]
- Gmail: Private and secure email at no cost | Google Workspace
- Autos online kaufen und deutschlandweit liefern lassen
- I need my tax number | South African Revenue Service
- efficacité - Définitions, synonymes, prononciation, exemples | Dico en ligne Le Robert
- Barry Staffel 4 Episodenguide
- England 2-1 Netherlands LIVE: Watkins proves hero with last-minute winner
- Troponin Test: What it Is and Normal Range
- Online-Weiterbildung mit Zertifikat
- Herunterladen von Treibern und Firmware für Surface
- Be ready to find a lost Android device
- AnimeciX - Türkçe Anime for Android - Free App Download
- The best cocktail bars in London
- Best Manicures near me in Staten Island, New York | Fresha
- Désintox : Maroc, Sahara occidental et Google Maps
- CESAR DAVILA ANDRADE en CUENCA - Opiniones e información.
- OFF ROAD Erlebnistouren
- Mac - Apple Community
- BLOCOTELHA - STEEL CONSTRUCTIONS, S.A.: NIF, Endereço e Vendas
- Querry, Query, Querries or Queries: Which is Correct?
- Google Drive voor desktop gebruiken
- [SPOIL] Antre d’araignées sur le forum Hogwarts Legacy - 11-02-2023 14:54:48
- Compte leboncoin bloqué
- Margit Auer - Bücher in Reihenfolge
- A Beginner’s Guide To Fertility Treatments
- Cameroun - Jeune Afrique.com
- La porta di accesso alla tua mail e ai servizi di Libero
- 30 dinners for when you don’t know what to cook
- Autos usagées à vendre à Montreal, QC
- Bing homepage quiz - Bing
- Wat te doen in Schiedam: de leukste tips voor de jeneverstad
- What Is ChatGPT? (and How to Use It)
- Show your ads in mobile apps
- Plan d'Epargne Populaire (PEP) : fiscalité et fonctionnement
- Free Stock Videos of Waxing, Stock Footage in 4K and Full HD
- Bangkok Trivia Quiz Questions and Answers
- Zenni promo codes - 10% OFF for July 2025
- Rango Exchange | A simple guide for using a cross-chain DEX aggregator
- Inloggen met Google-prompts - Android
- Luxury Nail - Burien, WA 98166 - Services and Reviews
- PC erkennt iPhone nicht – Mit 7 Lösungen beheben
- Dachdämmung: Kosten, Förderung & Arten für beste Isolierung
- Glasierende Keramik | 27 Verglasungstipps für Anfänger – – Gluten Cafe
- Form Center | Retail Banking and Corporate & Institutional Banking Forms | Emirates NBD
- e-SIR: el nuevo procedimiento electrónico podrá emplearse desde el 17 de marzo
- Nail Drill with Bits Buying Guide: How to Choose the Perfect Nail Drill and Accessories for You
- Facial Light Therapy: a Beginner's Guide to Getting Started | REDDOT LED
- FASHION FLOORING @ HOME LTD
- Download Free Antivirus Software for PC | AVG
- Background Removal / Virtual Green-screen & Low-Light Enhance
- How to Weatherproof Outdoor Wooden Signs | DoItYourself.com
- Experience the Power of AI with Windows 11 OS, Computers, & Apps | Microsoft Windows
- Gwiezdne wojny: Skywalker. Odrodzenie | Film | 2019
- Vibratoren einfach online kaufen | MediaMarkt
- Tantra Massage Services in Den Haag - Zuid-Holland
- Get AI-powered responses with AI Mode in Google Search - Computer
- Como obter ajuda no Windows 10 ▷➡️
- Légumes sautés à la thaïlandaise/Phad Phag Ruam Mit
- Как открыть файл DWG
- How to Fix SSL Certificate Errors: Common Issues & Solutions
- Offerte e promozioni del mese online e in negozio
- Stampa 3D nel settore alimentare - Progettazione 3D
- This is fine with/by/for me
- Come riscattare un codice su Steam
- Introducing flexible sections in SharePoint Pages and News | Microsoft Community Hub
- Los mejores hoteles baratos en Londres desde 48 € la noche | Skyscanner
- Making America Healthy Means Keeping Water Fluoridated
- Zermatt: attrazioni, attività e consigli per una visita perfetta
- Cholesterol-lowering supplements may be helpful
- Городская больница №9 на Крестовском (Санкт-Петербург): контакты, отзывы, врачи
- Musk gründet Partei wegen Trump: Große Chance für USA?
- Die 18 besten Wiener Pizzerien im Test
- 29 COMMON Birds Found in Uganda! (2025)
- رابط موقع نتيجة الشهادة الإعدادية في ليبيا 2025
- $327 Cheap Flights to Singapore - Expedia
- Best Magnetic Eyelashes for an Eye-Popping Look
- 7 Best Free Checking Accounts For July 2025 | One Smart Dollar
- How the Human Eye Works - Step by Step
Article information
Author: Barbera Armstrong
Last Updated:
Views: 6327
Rating: 4.9 / 5 (59 voted)
Reviews: 82% of readers found this page helpful
Author information
Name: Barbera Armstrong
Birthday: 1992-09-12
Address: Suite 993 99852 Daugherty Causeway, Ritchiehaven, VT 49630
Phone: +5026838435397
Job: National Engineer
Hobby: Listening to music, Board games, Photography, Ice skating, LARPing, Kite flying, Rugby
Introduction: My name is Barbera Armstrong, I am a lovely, delightful, cooperative, funny, enchanting, vivacious, tender person who loves writing and wants to share my knowledge and understanding with you.