diff --git a/Linphone/CMakeLists.txt b/Linphone/CMakeLists.txt index aeadffb0..cd686707 100644 --- a/Linphone/CMakeLists.txt +++ b/Linphone/CMakeLists.txt @@ -34,10 +34,13 @@ set(APP_TARGETS ${LinphoneCxx_TARGET}) set(QT_DEFAULT_MAJOR_VERSION 6) set(QT_PACKAGES Core Quick Qml Widgets)# Search Core at first for initialize Qt scripts for next find_packages. -#find_package(Qt6 REQUIRED COMPONENTS Core) +find_package(Qt6 REQUIRED COMPONENTS Core) find_package(Qt6 REQUIRED COMPONENTS ${QT_PACKAGES}) -qt6_standard_project_setup() +#qt6_standard_project_setup() +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) set(_LINPHONEAPP_SOURCES main.cpp) set(_LINPHONEAPP_QML_FILES) diff --git a/README.md b/README.md index 43b28966..5c3aea47 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,10 @@ export PATH=$PATH:~/Qt/6.5.2/gcc_64/bin optional: export Qt6_DIR=~/Qt/6.5.2/gcc_64/lib/cmake/Qt6 -mkdir build -cd build -cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_BUILD_PARALLEL_LEVEL=10 -cmake --build . --target install --parallel 10 +mkdir build \ +cd build \ +cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_BUILD_PARALLEL_LEVEL=10 \ +cmake --build . --target install --parallel 10 \ - Linphone : Application code. @@ -34,3 +34,24 @@ cmake --build . --target install --parallel 10 - linphone-sdk + +- Qt install on Linux : +``` +sudo apt install qt6-base-dev +``` +- Problème à l'exécution : module "QtQuick.\*" is not installed + +- Install required packages : + + - qml-qt6 + - qml6-module-qtquick + - qml6-module-qtquick-layouts + - qml6-module-qtqml-workerscript + - qml6-module-qtquick-controls + - qml6-module-qtquick-templates + + and any other package missing when running exe\ + with +``` +sudo apt update && sudo apt install +```