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. QtCreator and qmake for Android - producing Makefiles that do not work on Windows
Forum Update on Monday, May 27th 2025

QtCreator and qmake for Android - producing Makefiles that do not work on Windows

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 211 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.
  • O Offline
    O Offline
    oskotheim
    wrote on last edited by
    #1

    Hello. I am trying to build an application for Android using Qt Creator on Windows. This application depends on Qt 5.12, so I need to use that specific version. The build fails saying that "The syntax of the command is incorrect". It seems like qmake produces a Makefile with Linux-style paths, which doesn't play well with Windows.

    How can I fix this?

    See output below:

    15:51:30: Starting: "C:\Qt\5.12.9\android_x86\bin\qmake.exe" D:\git\qgroundcontrol\qgroundcontrol.pro -spec android-clang "CONFIG+=qtquickcompiler"
    15:51:47: Starting: "C:\Users\oyste\AppData\Local\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" -f D:/git/build-qgroundcontrol-Android_Qt_5_12_9_Clang_x86-Release/Makefile qmake_all
    15:51:47: Starting: "C:\Users\oyste\AppData\Local\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" -j12
    mkdir D:/git/build-qgroundcontrol-Android_Qt_5_12_9_Clang_x86-Release/ANDROID_PACKAGE_SOURCE_DIR && xcopy /s /q /y /i D:/git/qgroundcontrol/android/* D:/git/build-qgroundcontrol-Android_Qt_5_12_9_Clang_x86-Release/ANDROID_PACKAGE_SOURCE_DIR && xcopy /s /q /y /i D:/git/qgroundcontrol/custom/android/* D:/git/build-qgroundcontrol-Android_Qt_5_12_9_Clang_x86-Release/ANDROID_PACKAGE_SOURCE_DIR && C:\Qt\5.12.9\android_x86\bin\qmake.exe -install sed -i "s/package=\"org.mavlink.qgroundcontrol\"/package=\"org.custom.qgroundcontrol\"/" D:/git/build-qgroundcontrol-Android_Qt_5_12_9_Clang_x86-Release/ANDROID_PACKAGE_SOURCE_DIR/AndroidManifest.xml
    The syntax of the command is incorrect.
    
    1 Reply Last reply
    0

    • Login

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