cmake:
Код: Выделить всё
find_package(Qt6 COMPONENTS CorePrivate Core Network Sql HttpServer REQUIRED)
...
add_executable(${PROJECT_NAME} ${HEADERS} ${SOURCES})
target_link_libraries(${PROJECT_NAME} Qt6::CorePrivate Qt6::Core Qt6::Network Qt6::Sql Qt6::HttpServer)
Код: Выделить всё
CMake Error at CMakeLists.txt:12 (find_package):
Found package configuration file:
/usr/local/opt/qt/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 Qt component "CorePrivate" config file at ""
Failed to find Qt component "Core" config file at ""
Failed to find Qt component "Network" config file at ""
Failed to find Qt component "Sql" config file at ""
Failed to find Qt component "HttpServer" config file at ""
Подробнее здесь: https://stackoverflow.com/questions/670 ... e-from-qt6
Мобильная версия