Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11629

Space in ndk path causes build failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • Qt Creator 3.1.0-rc1
    • Qt Creator 3.1.0-rc1
    • Android Support
    • None
    • Windows

      If the ndk path as set in the Android Options dialog contains spaces (in my case "f:\Qt\android ndk r9c\"), Qt Creator can handle that properly for toolchain detection and kit creation. When building a project, however, the build fails with these error messages.

      23:50:07: Running steps for project untitled3...
      23:50:07: Starting: "F:\Qt\5.2.1\android_armv5\bin\qmake.exe" C:\Users\Alessandro\Desktop\untitled3\untitled3.pro -r -spec android-g++ "CONFIG+=debug" "CONFIG+=declarative_debug" "CONFIG+=qml_debug"
      Der Befehl "F:\Qt\android" ist entweder falsch geschrieben oder
      konnte nicht gefunden werden.
      23:50:07: The process "F:\Qt\5.2.1\android_armv5\bin\qmake.exe" exited normally.
      ...
      makefile:176: recipe for target 'libuntitled3.so' failed
      arm-linux-androideabi-g++: error: ndk: No such file or directory
      arm-linux-androideabi-g++: error: r9c/platforms/android-19/arch-arm/: No such file or directory
      mingw32-make: *** [libuntitled3.so] Error 1
      23:50:09: The process "F:\Qt\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
      Error while building/deploying project untitled3 (kit: Android for armeabi (GCC 4.8, Qt 5.2.1))
      When executing step 'Make'
      ...
      

      The Android Options dialog could forbid NDK paths with spaces. Or even better, if possible, fix the build problems by proplerly quoting the ndk paths.

        For Gerrit Dashboard: QTCREATORBUG-11629
        # Subject Branch Project Status CR V

            dt Daniel Teske
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes