Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Issues in building QT for android
Qt 6.11 is out! See what's new in the release blog

Issues in building QT for android

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 2.8k 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
    RahulRaj
    wrote on last edited by
    #1

    I am trying to build the android QT as explained in http://qt-project.org/wiki/Qt5ForAndroidBuilding

    I could successfully clone the git .. The first error i got was
    ————————————————————————————————————————————————————————-
    ‘configure’ is not recognized as an internal or external command,
    operable program or batch file.
    —————————————————————————————————————————————————————————
    I changed the ‘./configure’ to just ‘configure’ and could see the progress , but again got the following error

    —————————————
    -android-ndk-host is not a valid option : So removed this parameters from the commad
    —————————————

    afterwards selected to build it as “open source edition” pressed the “y” option. then the following error
    is produced
    ————————————-

    Running configuration tests…
    Could not find output file: No such file or directory
    ——————————————————————————————-
    Unable to make out what does this mean .. any help would be appreciated

    Is this the only way to setup QT for android on my windows machine ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What OS exactly are you on ? Did you install the dependencies for android development ? Did you consider using on the provided pre-built package ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        You followed the instructions for Linux/OS X

        "This":http://qt-project.org/wiki/building_qt-android_on_windows link on the second line is what you should have followed

        Happy coding

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RahulRaj
          wrote on last edited by
          #4

          [quote author="SGaist" date="1383682983"]You followed the instructions for Linux/OS X

          "This":http://qt-project.org/wiki/building_qt-android_on_windows link on the second line is what you should have followed

          Happy coding[/quote]

          Thanks for the help. I tried the steps. Everything was fine till step "Build Steps". i was able to configure the build. But the following messages were thrown on doing a 'mingw32-make.exe'

          D:/Qt/AndroidNDK/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/w
          indows-x86_64/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat
          -abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno
          -short-enums -DANDROID -Wa,--noexecstack -std=gnu++0x -O2 -mthumb -Os -fomit-fra
          me-pointer -fno-strict-aliasing -finline-limit=64 -Wno-psabi -fvisibility=hidden
          -fvisibility-inlines-hidden -fno-exceptions -D_REENTRANT -fPIC -DQT_NO_PRINTER
          -DQT_NO_PRINTDIALOG -DQT_NO_XKBCOMMON -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_INTEG
          ER_EVENT_COORDINATES -DQT_BUILD_QML_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -
          DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_
          WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DWTF_EXPORT_PRIVATE= -DJS_EXPO
          RT_PRIVATE= -DENABLE_LLINT=0 -DENABLE_DFG_JIT=0 -DENABLE_DFG_JIT_UTILITY_METHODS
          =1 -DENABLE_JIT_CONSTANT_BLINDING=0 -DBUILDING_QT__ -DWTF_USE_UDIS86=0 -DNDEBUG
          -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -ID:\Qt\QT\qt5\q
          tbase\mkspecs\android-g++ -I. -ID:\Qt\QT\qt5\qtbase\include -ID:\Qt\QT\qt5\qtbas
          e\include\QtQml -ID:\Qt\QT\qt5\qtbase\include\QtQml\5.2.0 -ID:\Qt\QT\qt5\qtbase
          include\QtQml\5.2.0\QtQml -I..\3rdparty\masm\jit -I..\3rdparty\masm\assembler -I
          ..\3rdparty\masm\runtime -I..\3rdparty\masm\wtf -I..\3rdparty\masm\stubs -I..\3r
          dparty\masm\stubs\wtf -I..\3rdparty\masm -I..\3rdparty\masm\disassembler -I..\3r
          dparty\masm\disassembler\udis86 -Icompiler -I. -Ijsruntime -I. -I..\3rdparty\dou
          ble-conversion -Ianimations -ID:\Qt\QT\qt5\qtbase\include\QtNetwork -ID:\Qt\QT\q
          t5\qtbase\include\QtCore\5.2.0 -ID:\Qt\QT\qt5\qtbase\include\QtCore\5.2.0\QtCore
          -ID:\Qt\QT\qt5\qtbase\include\QtCore -I.moc -ID:\Qt\AndroidNDK\android-ndk-r8e
          sources\cxx-stl\gnu-libstdc++\4.7\include -ID:\Qt\AndroidNDK\android-ndk-r8e\sou
          rces\cxx-stl\gnu-libstdc++\4.7\libs\armeabi-v7a\include -ID:\Qt\AndroidNDK\andro
          id-ndk-r8e\platforms\android-9\arch-arm\usr\include -IC:\Program\ Files\ (x86)\M
          icrosoft\ Visual\ Studio\ 10.0\VC\INCLUDE -IC:\Program\ Files\ (x86)\Microsoft
          Visual\ Studio\ 10.0\VC\ATLMFC\INCLUDE -IC:\Program\ Files\ (x86)\Microsoft\ SDK
          s\Windows\v7.0A\include -o .obj\YarrPattern.obj ..\3rdparty\masm\yarr\YarrPatter
          n.cpp
          arm-linux-androideabi-g++: error: Files: No such file or directory
          arm-linux-androideabi-g++: error: (x86)\Microsoft: No such file or directory
          arm-linux-androideabi-g++: error: Visual: No such file or directory
          arm-linux-androideabi-g++: error: Studio: No such file or directory
          arm-linux-androideabi-g++: error: 10.0\VC\INCLUDE: No such file or directory
          arm-linux-androideabi-g++: error: Files: No such file or directory
          arm-linux-androideabi-g++: error: (x86)\Microsoft: No such file or directory
          arm-linux-androideabi-g++: error: Visual: No such file or directory
          arm-linux-androideabi-g++: error: Studio: No such file or directory
          arm-linux-androideabi-g++: error: 10.0\VC\ATLMFC\INCLUDE: No such file or direct
          ory
          arm-linux-androideabi-g++: error: Files: No such file or directory
          arm-linux-androideabi-g++: error: (x86)\Microsoft: No such file or directory
          arm-linux-androideabi-g++: error: SDKs\Windows\v7.0A\include: No such file or di
          rectory
          Makefile:46744: recipe for target '.obj\YarrPattern.obj' failed
          mingw32-make[3]: *** [.obj\YarrPattern.obj] Error 1
          mingw32-make[3]: Leaving directory 'D:/Qt/QT/qt5/qtdeclarative/src/qml'
          Makefile:44: recipe for target 'sub-qml-make_first-ordered' failed
          mingw32-make[2]: *** [sub-qml-make_first-ordered] Error 2
          mingw32-make[2]: Leaving directory 'D:/Qt/QT/qt5/qtdeclarative/src'
          Makefile:41: recipe for target 'sub-src-make_first' failed
          mingw32-make[1]: *** [sub-src-make_first] Error 2
          mingw32-make[1]: Leaving directory 'D:/Qt/QT/qt5/qtdeclarative'
          Makefile:213: recipe for target 'module-qtdeclarative-make_first' failed
          mingw32-make: *** [module-qtdeclarative-make_first] Error 2

          Is that expected behavior ? Or is it an error ?

          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