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. Android: Compile failure on Windows
Forum Updated to NodeBB v4.3 + New Features

Android: Compile failure on Windows

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 4.7k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    Rahul Das
    wrote on last edited by
    #1

    Hello All,

    I am facing the compilation errors of the form " i686-linux-android-g++: error: CreateProcess: No such file or directory“.

    Build system is Qt 5.3.1 for Android on windows vista 32-bit, and Creator 3.1.2
    @
    13:11:38: Running steps for project untitled1...
    13:11:38: Configuration unchanged, skipping qmake step.
    13:11:38: Starting: "C:\Qt\Qt5.3.1\Tools\mingw482_32\bin\mingw32-make.exe"
    C:\Users\HARITHAM\Downloads\AndroidSDK\android-ndk-r10/toolchains/x86-4.8/prebuilt/windows/bin/i686-linux-android-g++ -c -ffunction-sections -funwind-tables -O2 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -DANDROID -Wa,--noexecstack -std=gnu++0x -O2 -O2 -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I........\5.3\android_x86\mkspecs\android-g++ -I. -I........\5.3\android_x86\include -I........\5.3\android_x86\include\QtWidgets -I........\5.3\android_x86\include\QtGui -I........\5.3\android_x86\include\QtCore -I. -I. -IC:\Users\HARITHAM\Downloads\AndroidSDK\android-ndk-r10\sources\cxx-stl\gnu-libstdc++\4.8\include -IC:\Users\HARITHAM\Downloads\AndroidSDK\android-ndk-r10\sources\cxx-stl\gnu-libstdc++\4.8\libs\x86\include -IC:\Users\HARITHAM\Downloads\AndroidSDK\android-ndk-r10\platforms\android-19\arch-x86\usr\include -o main.obj main.cpp
    i686-linux-android-g++: error: CreateProcess: No such file or directory
    Makefile:1162: recipe for target 'main.obj' failed
    mingw32-make: *** [main.obj] Error 1
    13:11:40: The process "C:\Qt\Qt5.3.1\Tools\mingw482_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project untitled1 (kit: Android for x86 (GCC 4.8, Qt 5.3.1))
    When executing step 'Make'
    13:11:40: Elapsed time: 00:02.@

    ADT,NDK,ANT are configured with creator and are updated. I am not able to figure out why!
    If it is related to Path length "issue ":https://bugreports.qt-project.org/browse/QTBUG-37113, what is the workaround ?


    Declaration of (Platform) independence.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      topse
      wrote on last edited by
      #2

      Have you installed the NDK/SDK directly into the c:\ ? Without any subdirectory?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rahul Das
        wrote on last edited by
        #3

        No, its in sub dir. Does it matter ?


        Declaration of (Platform) independence.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          topse
          wrote on last edited by
          #4

          It should be like that:

          c:\android-ndk-r10\build
          c:\android-ndk-r10\docs
          c:\android-ndk-r10\platforms
          ...

          c:\android-sdk-windows\add-ons
          c:\android-sdk-windows\build-tools
          c:\android-sdk-windows\extras
          ...

          And yes -- I think it matters...

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rahul Das
            wrote on last edited by
            #5

            Thank you topse. Unfortunately, that didn't help. Ended up in same error.

            @15:46:55: Running steps for project untitled1...
            15:46:55: Starting: "C:\Qt\Qt5.3.1\5.3\android_x86\bin\qmake.exe" C:\Users\HARITHAM\Desktop\untitled1\untitled1.pro -r -spec android-g++ "CONFIG+=debug"
            15:46:58: The process "C:\Qt\Qt5.3.1\5.3\android_x86\bin\qmake.exe" exited normally.
            15:46:58: Starting: "C:\Qt\Qt5.3.1\Tools\mingw482_32\bin\mingw32-make.exe"
            C:\Qt\Qt5.3.1\5.3\android_x86\bin\uic.exe mainwindow.ui -o ui_mainwindow.h
            C:\android-ndk-r10/toolchains/x86-4.8/prebuilt/windows/bin/i686-linux-android-g++ -c -ffunction-sections -funwind-tables -O2 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -DANDROID -Wa,--noexecstack -std=gnu++0x -g -g -gdwarf-2 -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I........\Qt\Qt5.3.1\5.3\android_x86\mkspecs\android-g++ -I. -I........\Qt\Qt5.3.1\5.3\android_x86\include -I........\Qt\Qt5.3.1\5.3\android_x86\include\QtWidgets -I........\Qt\Qt5.3.1\5.3\android_x86\include\QtGui -I........\Qt\Qt5.3.1\5.3\android_x86\include\QtCore -I. -I. -I........\android-ndk-r10\sources\cxx-stl\gnu-libstdc++\4.8\include -I........\android-ndk-r10\sources\cxx-stl\gnu-libstdc++\4.8\libs\x86\include -I........\android-ndk-r10\platforms\android-9\arch-x86\usr\include -o main.obj main.cpp
            i686-linux-android-g++: error: CreateProcess: No such file or directory
            Makefile:1162: recipe for target 'main.obj' failed
            mingw32-make: *** [main.obj] Error 1
            15:47:01: The process "C:\Qt\Qt5.3.1\Tools\mingw482_32\bin\mingw32-make.exe" exited with code 2.
            Error while building/deploying project untitled1 (kit: Android for x86 (GCC 4.8, Qt 5.3.1))
            When executing step 'Make'
            15:47:01: Elapsed time: 00:06.@


            Declaration of (Platform) independence.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              topse
              wrote on last edited by
              #6

              You have anything in your project called "CreateProcess"?

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Rahul Das
                wrote on last edited by
                #7

                No, I afraid its similar to this "issue":http://stackoverflow.com/questions/7651374/arm-linux-androideabi-g-exe-createprocess-no-such-file-or-directory-error

                But Even a shorter path didn't help me. :(


                Declaration of (Platform) independence.

                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