Wie man CMake 'Failed to find Qt component "SvgWidgets"' auf Ubuntu behebt
Problem:
Wenn Sie versuchen, Ihr CMake-Projekt zu kompilieren, sehen Sie eine Fehlermeldung wie
cmake_error_excerpt.txt
CMake Error at cMake/FreeCAD_Helpers/SetupQt.cmake:33 (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 "SvgWidgets".
Expected Config file at
"/usr/lib/x86_64-linux-gnu/cmake/Qt6SvgWidgets/Qt6SvgWidgetsConfig.cmake"
does NOT exist
Call Stack (most recent call first):
CMakeLists.txt:82 (include)Lösung
install_libqt6svg6_dev.sh
sudo apt -y install libqt6svg6-devGetestet auf Ubuntu 22.04
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow