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

Problem in building qt 5.0.2 for android

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.6k 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.
  • A Offline
    A Offline
    AmirKh
    wrote on last edited by
    #1

    Hi guys,

    I am using Qt 5.0.2 and am trying to build Qt for android. I am following the instruction in this page: http://qt-project.org/wiki/building_qt-android_on_windows.

    Everything went fine except the very last part (i.e. Build Steps). After I enter the command "mingw32-make.exe". It doesn't go through anymore and throws and error. Following I will post the whole comments after I entered the above command:

    c:\myAndroid\build\qt5>mingw32-make
    cd qtbase/ && ( test -e Makefile || C:/myAndroid/build/qt5/qtbase/bin/qmake C:/m
    yAndroid/build/qt5/qtbase/qtbase.pro -o Makefile ) && mingw32-make -f Makefile
    mingw32-make[1]: Entering directory 'c:/myAndroid/build/qt5/qtbase'
    c:/myAndroid/build/qt5/qtbase/bin/qmake.exe -o Makefile qtbase.pro
    mingw32-make[1]: Leaving directory 'c:/myAndroid/build/qt5/qtbase'
    mingw32-make[1]: Entering directory 'c:/myAndroid/build/qt5/qtbase'
    cd src/ && ( test -e Makefile || c:/myAndroid/build/qt5/qtbase/bin/qmake.exe C:/
    myAndroid/build/qt5/qtbase/src/src.pro -o Makefile ) && mingw32-make -f Makefile

    mingw32-make[2]: Entering directory 'c:/myAndroid/build/qt5/qtbase/src'
    c:/myAndroid/build/qt5/qtbase/bin/qmake.exe -o Makefile src.pro
    mingw32-make[2]: Leaving directory 'c:/myAndroid/build/qt5/qtbase/src'
    mingw32-make[2]: Entering directory 'c:/myAndroid/build/qt5/qtbase/src'
    cd tools/bootstrap/ && ( test -e Makefile || c:/myAndroid/build/qt5/qtbase/bin/q
    make.exe C:/myAndroid/build/qt5/qtbase/src/tools/bootstrap/bootstrap.pro -o Make
    file ) && mingw32-make -f Makefile
    Project MESSAGE: perl -w 'C:\myAndroid\build\qt5\qtbase\bin\syncqt.pl' -minimal
    -module QtCore -module QtDBus -module QtXml -version 5.3.2 -outdir C:/myAndroid/
    build/qt5/qtbase C:/myAndroid/build/qt5/qtbase
    Can't open perl script "'C:\myAndroid\build\qt5\qtbase\bin\syncqt.pl'": Invalid
    argument
    Project ERROR: Failed to run: perl -w 'C:\myAndroid\build\qt5\qtbase\bin\syncqt.
    pl' -minimal -module QtCore -module QtDBus -module QtXml -version 5.3.2 -outdir
    C:/myAndroid/build/qt5/qtbase C:/myAndroid/build/qt5/qtbase
    Makefile:57: recipe for target 'sub-bootstrap-make_first' failed
    mingw32-make[2]: *** [sub-bootstrap-make_first] Error 3
    mingw32-make[2]: Leaving directory 'c:/myAndroid/build/qt5/qtbase/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 'c:/myAndroid/build/qt5/qtbase'
    Makefile:63: recipe for target 'module-qtbase-make_first' failed
    mingw32-make: *** [module-qtbase-make_first] Error 2

    I'm badly stuck in this!! Any help is much appreciated!

    Thanks,
    Amir

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AmirKh
      wrote on last edited by
      #2

      Also here is the list of my environment variables:

      C:\mingw-builds\msys\mingw32\bin;
      C:\Strawberry\c\bin;
      C:\Strawberry\perl\site\bin;
      C:\Strawberry\perl\bin;
      C:\Program Files (x86)\Git\bin;
      C:\Program Files (x86)\Git\cmd;
      C:\Program Files\Java\jdk1.8.0_31\bin;
      C:\Program Files (x86)\Java\jdk1.8.0_31;
      C:\ProgramData\Oracle\Java\javapath;
      C:\Windows\System32;
      %INTEL_DEV_REDIST%redist\intel64\compiler;
      %INTEL_DEV_REDIST%redist\ia32\compiler;
      C:\Program Files\Internet Explorer;
      C:\Program Files\MiKTeX 2.9\miktex\bin\x64;
      C:\Program Files (x86)\Aperio\Common;
      C:\Program Files (x86)\MATLAB\R2013a\runtime\win32;
      C:\Program Files (x86)\MATLAB\R2013a\bin;
      C:\Program Files\TortoiseGit\bin;
      C:\Program Files\TortoiseSVN\bin;
      C:\Program Files\MATLAB\MATLAB Compiler Runtime\v716\runtime\win64;
      %systemroot%\System32\WindowsPowerShell\v1.0;
      %systemroot%\System32\WindowsPowerShell\v1.0;
      C:\Android\tools;
      C:\Android\platform-tools;
      C:\QT\Qt5.2.0\5.2.0\mingw48_32\bin;
      C:\AndroidNDK

      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