Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-41012

Compiling 5.4 for Android with different case in configuration prefix cause QML imports problem on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.4.0 Beta
    • 5.4.0
    • QPA
    • None
    • Windows 8.1
    • Android
    • de1ef8eb53921181c88e9ebd23d9f3059b09d44a

      I've compiled for Android (on Windows):

      set ANDROID_SDK_ROOT=c:\AndroidSdk
      set ANDROID_API_VERSION=android-19
      set ANDROID_NDK_PLATFORM=android-9
      set ANDROID_TARGET_ARCH=armeabi-v7a
      set ANDROID_BUILD_TOOLS_REVISION=17.0.0
      set ANDROID_NDK_HOST=windows
      set JDK_ROOT=%JDK_HOME%

      ..\qt5\configure.bat -prefix c:/quati/develop/build/qt5.4/android_armv7 -developer-build -platform win32-g++ -opengl es2 -xplatform android-g++ -android-ndk C:\android-ndk-r9 -android-sdk C:\AndroidSdk -android-toolchain-version 4.8 -opensource -confirm-license -nomake tests -nomake examples

      After 'mingw32-make' and 'mingw32-make install', the kits in QtCreator was created.

      But new qml does not recognize imports correctly.
      If I type "impport QtQuick." + Ctrl+Space, QtCreator shows "QtQuick.Window 2.0" in the list, but informs error (attached).

      Building project works, but deploy do not works.
      It complains in androiddeployqt (qmlimportscanner):

      Import found outside of import paths C:/quati/develop/build/qt5.4/android_armv7/qml/QtQuick.2

        1. deploy.log
          10 kB
        2. screenshot_14.png
          screenshot_14.png
          56 kB
        3. screenshot_6.png
          screenshot_6.png
          88 kB
        4. screenshot_7.png
          screenshot_7.png
          105 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            quati Raphael Couto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes