Android: Compile failure on Windows



  • 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 ?



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



  • No, its in sub dir. Does it matter ?



  • 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...



  • 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.@



  • You have anything in your project called "CreateProcess"?



  • 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. :(


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.