Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Compile for Android on Windows got error
Forum Updated to NodeBB v4.3 + New Features

Compile for Android on Windows got error

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 388 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deleted313
    wrote on last edited by deleted313
    #1

    Hello,
    I'm using Qt 5.12.5 on Windows 10, 64 bit pro.
    kit: For Android armabi_v7a
    Android settings: (SDK Version: 26.1.1, NDK Version: 21.3.6528147)
    JDK: \jdk1.8.0_181

    I have tried to use !android-g++ {} to exclude the projects I don't want to build, but looks like it still build and complains that one of the projects have error: Project ERROR: Unknown module(s) in QT: webenginewidgets

    Here are the error output:

    15:22:54: Running steps for project abc...
    15:22:54: Starting: "C:\Qt\Qt5.12.5\5.12.5\android_armv7\bin\qmake.exe" C:\proj\abc\application\modules\presenters.pro -spec android-clang "CONFIG+=debug" "CONFIG+=qml_debug"
    15:22:54: The process "C:\Qt\Qt5.12.5\5.12.5\android_armv7\bin\qmake.exe" exited normally.
    15:22:54: Starting: "C:\Sdk\ndk\21.3.6528147\prebuilt\windows-x86_64\bin\make.exe" -f C:/proj/build-abc-Android_for_armeabi_v7a_Clang_Qt_5_12_5_for_Android_ARMv7-Debug/application/modules/Makefile qmake_all
    cd googlemaps\ && C:\Qt\Qt5.12.5\5.12.5\android_armv7\bin\qmake.exe -o Makefile C:\proj\abc\application\modules\googlemaps\googlemaps.pro -spec android-clang "CONFIG+=debug" "CONFIG+=qml_debug"
    Project ERROR: Unknown module(s) in QT: webenginewidgets
    make: *** [C:/proj/build-abc-Android_for_armeabi_v7a_Clang_Qt_5_12_5_for_Android_ARMv7-Debug/application/modules/Makefile:49: sub-googlemaps-qmake_all] Error 3
    15:22:55: The process "C:\Sdk\ndk\21.3.6528147\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
    Error while building/deploying project abc(kit: Android for armeabi-v7a (Clang Qt 5.12.5 for Android ARMv7))
    When executing step "qmake"

    Please help. Thanks

    1 Reply Last reply
    0
    • D Offline
      D Offline
      deleted313
      wrote on last edited by
      #2

      After googled a lot, I noticed they have changed to use clang instead of g++ as compiler.
      Therefore in the project file, all "android-g++" will be changed to "android-clang".

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved