Is it possible to build QtMqtt on Windows 10 for Android ARM v7?
I try to build the QtMqtt module for Android, but failed.
I have the following environment:
- Windows 10 Host
- Qt 5.12.3 from the Online Open Source installer
- Android NDK 19.2.5345600 with SDK 26.1.1 (installed with the Android Studio installer)
I cloned the 5.12 branch and tried the following in a "cmd" shell:
set ANDROID_NDK_ROOT=C:\Users\MAK\AppData\Local\Android\Sdk\ndk-bundle C:\Qt\5.12.3\android_armv7\bin\qmake.exe
But it stops directly with the following error:
Project ERROR: Cannot run target compiler 'C:\Users\MAK\AppData\Local\Android\Sdk\ndk-bundle/toolchains/llvm/prebuilt/windows/bin/clang++'. Output: =================== =================== Maybe you forgot to setup the environment?
How can I setup the environment?
Thanks a lot for every tip!
Does this path exist and can you call the compiler manually?
Sorry, that I answer so late, but I didn't get a notification.
The path does not exist.
The following path does exist, but where should I adjust this?: C:\Users\MAK\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe
Hi and welcome to devnet,
One maybe simpler way to do that would be to open the module in Qt Creator and build it using the Android Kit.