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

Android: Shadow building on Windows broken with Qt 5.2.1 packages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • None
    • Qt Creator 3.0.0
    • Android Support
    • None

      With the current Qt 5.2.1 packages on Windows, it's impossible to build a Qt application. I tested with the widgets/mainwindows/application example (by clicking on its icon in the example overview and hit run). I am using the r9b NDK.

      This is the output from Qt Creator:

      15:30:26: Running steps for project application...
      15:30:26: Configuration unchanged, skipping qmake step.
      15:30:26: Starting: "D:\releasetesting\5.2.1-240\Tools\mingw48_32\bin\mingw32-make.exe" 
      mingw32-make: *** No rule to make target '../../../../../../../../android-ndk/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi/include/bits/cpu_defines.h', needed by 'main.obj'.  Stop.
      15:30:26: The process "D:\releasetesting\5.2.1-240\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
      Error while building/deploying project application (kit: Android for armeabi (GCC 4.8, Qt 5.2.1))
      When executing step 'Make'
      15:30:26: Elapsed time: 00:00.
      

      Note that the file it's looking for exists:

      D:\android-ndk\android-ndk-r9b\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi\include\bits>dir cpu_defines.h
       Volume in drive D has no label.
       Volume Serial Number is 693A-A8D5
      
       Directory of D:\android-ndk\android-ndk-r9b\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi\include\bits
      
      18.10.2013  13:43             1 333 cpu_defines.h
                     1 File(s)          1 333 bytes
                     0 Dir(s)  280 432 992 256 bytes free
      

      When I open a command line and set the following:

      set PATH=D:\releasetesting\5.2.1-240\5.2.1\android_armv5\bin;%PATH%
      set ANDROID_NDK_HOST=windows-x86_64
      set ANDROID_NDK_ROOT=d:\android-ndk\android-ndk-r9b
      

      And then run:

      cd D:\releasetesting\5.2.1-240\5.2.1\mingw48_32\examples\widgets\mainwindows\application
      qmake
      D:\releasetesting\5.2.1-240\Tools\mingw48_32\bin\mingw32-make.exe
      

      Then the project compiles just fine, so Qt Creator is doing something different from this.

      Turning off shadow builds in Qt Creator also fixes it.

      Note that from the command line, the following also works:

      cd D:\releasetesting\5.2.1-240\5.2.1\mingw48_32\examples\widgets\mainwindows\build-application-Android_for_armeabi_GCC_4_8_Qt_5_2_1-Debug
      qmake ..\application\application.pro
      D:\releasetesting\5.2.1-240\Tools\mingw48_32\bin\mingw32-make.exe
      

      Is that the way shadow builds are done by Qt Creator?

        1. Makefile.broken
          172 kB
          Eskil Abrahamsen Blomfeldt
        2. Makefile.working
          158 kB
          Eskil Abrahamsen Blomfeldt
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            dt Daniel Teske
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes