Mqtt
-
@Sergey_85 Did you install Qt for Android?
-
@jsulm I can't build sources for Arm64-v8a
cmake .. \ -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.0/gcc_64 \ -DCMAKE_TOOLCHAIN_FILE=/home/ph/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake \ -DANDROID_ABI=arm64-v8a \ -DANDROID_NATIVE_API_LEVEL=21 -- The CXX compiler identification is Clang 17.0.2 -- The C compiler identification is Clang 17.0.2 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done CMake Error at CMakeLists.txt:14 (find_package): Could not find a package configuration file provided by "Qt6" (requested version 6.8.0) with any of the following names: Qt6Config.cmake qt6-config.cmake Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR" to a directory containing one of the above files. If "Qt6" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred!
Maybe I'm doing something wrong?
Qt6Config.cmake is located at the specified path@Sergey_85 said in Mqtt:
-DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.0/gcc_64
This doesn't look like a path to Qt for Android
-
@Sergey_85 said in Mqtt:
-DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.0/gcc_64
This doesn't look like a path to Qt for Android
-
@Sergey_85 And what happened? Does /home/ph/opt/Qt/6.8.0/gcc_64 contain Qt6Config.cmake or qt6-config.cmake like CMake requested in the error message?
-
@Sergey_85 And what happened? Does /home/ph/opt/Qt/6.8.0/gcc_64 contain Qt6Config.cmake or qt6-config.cmake like CMake requested in the error message?
@jsulm yes, the Qt6Config.cmake file is also in the folder
/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6/Qt6Config.cmakeI haven't compiled from sources before, what's in the kit was enough for me, so I apologize if I'm asking something wrong or providing incomplete information, I'm confused(
-
@jsulm yes, the Qt6Config.cmake file is also in the folder
/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6/Qt6Config.cmakeI haven't compiled from sources before, what's in the kit was enough for me, so I apologize if I'm asking something wrong or providing incomplete information, I'm confused(
@Sergey_85 The I think it should be
-DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
-
@Sergey_85 The I think it should be
-DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
@jsulm ```
cmake ..
-DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
-DCMAKE_TOOLCHAIN_FILE=/home/ph/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake
-DANDROID_ABI=arm64-v8a
-DANDROID_NATIVE_API_LEVEL=21
-- The CXX compiler identification is Clang 17.0.2
-- The C compiler identification is Clang 17.0.2
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:14 (find_package):
Could not find a package configuration file provided by "Qt6" (requested
version 6.8.1) with any of the following names:Qt6Config.cmake qt6-config.cmake
Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
to a directory containing one of the above files. If "Qt6" provides a
separate development package or SDK, be sure it has been installed.-- Configuring incomplete, errors occurred!
-
@jsulm ```
cmake ..
-DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
-DCMAKE_TOOLCHAIN_FILE=/home/ph/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake
-DANDROID_ABI=arm64-v8a
-DANDROID_NATIVE_API_LEVEL=21
-- The CXX compiler identification is Clang 17.0.2
-- The C compiler identification is Clang 17.0.2
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:14 (find_package):
Could not find a package configuration file provided by "Qt6" (requested
version 6.8.1) with any of the following names:Qt6Config.cmake qt6-config.cmake
Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
to a directory containing one of the above files. If "Qt6" provides a
separate development package or SDK, be sure it has been installed.-- Configuring incomplete, errors occurred!
@Sergey_85 Try with a clean build folder (best to create a fresh one)
-
@Sergey_85 Try with a clean build folder (best to create a fresh one)
-
-
-
@Sergey_85 Not sure why it is not working try:
export Qt6_DIR=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
before calling cmake.
-
@Sergey_85 Not sure why it is not working try:
export Qt6_DIR=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
before calling cmake.
@jsulm
everything is the same, under gcc-64 everything was assembled without problems and works, I don’t understand why there are such difficulties hereph@debian:~/git_clone/qtmqtt/build_android$ export Qt6_DIR=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6 ph@debian:~/git_clone/qtmqtt/build_android$ cmake .. -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6 -DCMAKE_TOOLCHAIN_FILE=/home/ph/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_NATIVE_API_LEVEL=21-- The CXX compiler identification is Clang 17.0.2 -- The C compiler identification is Clang 17.0.2 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done CMake Error at CMakeLists.txt:14 (find_package): Could not find a package configuration file provided by "Qt6" (requested version 6.8.1) with any of the following names: Qt6Config.cmake qt6-config.cmake Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR" to a directory containing one of the above files. If "Qt6" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred!