Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Error build qt5.1 on windows
Forum Updated to NodeBB v4.3 + New Features

Error build qt5.1 on windows

Scheduled Pinned Locked Moved Mobile and Embedded
24 Posts 2 Posters 12.1k 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.
  • F Offline
    F Offline
    flaviomarcio
    wrote on last edited by
    #1

    I did all the steps in the link:

    http://qt-project.org/wiki/building_qt-android_on_windows

    I'm including the shellscript and the log generated by the attempt to build the Qt5.1sdk

    Anyone ever tried to do it and also not successful?

    Flavio Portela

    1 Reply Last reply
    0
    • F Offline
      F Offline
      flaviomarcio
      wrote on last edited by
      #2

      shell commands:

      set MINGW_ROOT=C:\MinGW64
      set PERL_ROOT=C:\strawberry
      set JDK_ROOT=C:\Program Files (x86)\Java\jdk1.7.0_17
      set ANDROID_NDK_ROOT=C:\Qt\Qt5.1\android-ndk-r8e
      set ANDROID_SDK=C:\Qt\Qt5.1\android-sdk
      set MINGW_ROOT=C:\MinGW
      set DXSDK_DIR=C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)

      set PATH=%PERL_ROOT%\perl\bin;%JDK_ROOT%\bin;%MINGW_ROOT%\bin;

      set MINGW_ROOT
      set PERL_ROOT
      set JDK_ROOT
      set ANDROID_NDK_ROOT
      set ANDROID_SDK
      set MINGW_ROOT

      cd
      cd C:\Qt\Qt5.1\Qt5.1\qtbase

      configure.bat -developer-build -platform win32-g++ -xplatform android-g++ -nomake demos -nomake examples

      mingw32-make.exe -j8

      cd ..
      cd ..
      cd C:\Qt\Qt5.1

      Flavio Portela

      1 Reply Last reply
      0
      • F Offline
        F Offline
        flaviomarcio
        wrote on last edited by
        #3

        Log build

        C:\Qt\Qt5.1>buildqt5.1.bat

        C:\Qt\Qt5.1>set MINGW_ROOT=C:\MinGW64

        C:\Qt\Qt5.1>set PERL_ROOT=C:\strawberry

        C:\Qt\Qt5.1>set JDK_ROOT=C:\Program Files (x86)\Java\jdk1.7.0_17

        C:\Qt\Qt5.1>set ANDROID_NDK_ROOT=C:\Qt\Qt5.1\android-ndk-r8e

        C:\Qt\Qt5.1>set ANDROID_SDK=C:\Qt\Qt5.1\android-sdk

        C:\Qt\Qt5.1>set MINGW_ROOT=C:\MinGW

        C:\Qt\Qt5.1>set DXSDK_DIR=C:\Program Files (x86)\Microsoft DirectX SDK (June 201
        0)

        C:\Qt\Qt5.1>set PATH=C:\strawberry\perl\bin;C:\Program Files (x86)\Java\jdk1.7.0
        _17\bin;C:\MinGW\bin;

        C:\Qt\Qt5.1>set MINGW_ROOT
        MINGW_ROOT=C:\MinGW

        C:\Qt\Qt5.1>set PERL_ROOT
        PERL_ROOT=C:\strawberry

        C:\Qt\Qt5.1>set JDK_ROOT
        JDK_ROOT=C:\Program Files (x86)\Java\jdk1.7.0_17

        C:\Qt\Qt5.1>set ANDROID_NDK_ROOT
        ANDROID_NDK_ROOT=C:\Qt\Qt5.1\android-ndk-r8e

        C:\Qt\Qt5.1>set ANDROID_SDK
        ANDROID_SDK=C:\Qt\Qt5.1\android-sdk

        C:\Qt\Qt5.1>set MINGW_ROOT
        MINGW_ROOT=C:\MinGW

        C:\Qt\Qt5.1>cd \

        C:>cd C:\Qt\Qt5.1\Qt5.1\qtbase

        C:\Qt\Qt5.1\Qt5.1\qtbase>configure.bat -developer-build -platform win32-g++ -xpl
        atform android-g++ -nomake demos -nomake examples
        Which edition of Qt do you want to use ?
        Type 'c' if you want to use the Commercial Edition.
        Type 'o' if you want to use the Open Source Edition.
        o

        This is the Qt for Windows Open Source Edition.

        You are licensed to use this software under the terms of
        the GNU Lesser General Public License (LGPL) version 2.1.

        Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
        Type 'y' to accept this license offer.
        Type 'n' to decline this license offer.

        Do you accept the terms of the license?
        y
        Running syncqt...
        <srcbase> = C:/Qt/Qt5.1/Qt5.1/qtbase
        <outbase> = C:/Qt/Qt5.1/Qt5.1/qtbase
        Creating qmake...
        mingw32-make: Nothing to be done for `first'.
        Running configuration tests...
        WARNING: The DirectX SDK could not be detected:

        Disabling the ANGLE backend.
        (Press any key to continue...)C:/Qt/Qt5.1/Qt5.1/qtbase/mkspecs/android-g++/qmake
        .conf:9: WARNING: Include file C:/Qt/Qt5.1/Qt5.1/qtbase/mkspecs/qdevice.pri not
        found
        O sistema não pode encontrar o caminho especificado.
        process_begin: CreateProcess(NULL, C:\Qt\Qt5.1\android-ndk-r8e/toolchains/arm-li
        nux-androideabi-/prebuilt//bin/arm-linux-androideabi-g++ -c -pipe -std=gnu++0x -
        g -g -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -fPIE -DQT_NO_PRINTDI
        ALOG -IC:\Qt\Qt5.1\Qt5.1\qtbase\mkspecs\android-g++ -I. -IC:\Qt\Qt5.1\android-nd
        k-r8e/sources/cxx-stl/gnu-libstdc++//include -IC:\Qt\Qt5.1\android-ndk-r8e/sourc
        es/cxx-stl/gnu-libstdc++//libs//include -IC:\Qt\Qt5.1\android-ndk-r8e/platforms/
        /arch-arm//usr/include -o arch.obj arch.cpp, ...) failed.
        make (e=2): O sistema não pode encontrar o arquivo especificado.
        mingw32-make: *** [arch.obj] Error 2
        Could not find output file: No such file or directory
        C:\Qt\Qt5.1\Qt5.1\qtbase>

        Flavio Portela

        1 Reply Last reply
        0
        • F Offline
          F Offline
          flaviomarcio
          wrote on last edited by
          #4

          I am now getting help in another forum:

          https://groups.google.com/forum/?fromgroups=#!topic/android-qt/LdlhT0Xo-wc

          When possible giving back news.

          Flavio Portela

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

            I don't believe one can build Qt5 for Android!! I have followed the tutorial exactly and got all types of errors! I am getting the same error in the configuration step for "No Such file or Directory"! Unfortunately, the online support is terrible for building Qt for Android! It has been 4 days I am struggling with the building steps, I am now frustrated and passing by! Maybe in the future I get back to developing Android App with Qt.

            I am using Qt 5.0.2 and did exactly as instructed in this page: (http://qt-project.org/wiki/building_qt-android_on_windows). All my Environmental Variables are corrected and my Path variable is correct too (The checks run fine). Yesterday I managed to configure correctly, I was stopped in the making step. You can see what errors I got in this thread (http://qt-project.org/forums/viewthread/52788/#218618).
            However today when I try to re-configure I cannot and get the following error: (This information might not be useful but I am pasting it anyways)

            This is the Qt for Android Open Source Edition.

            You have already accepted the terms of the license.

            Running syncqt...
            <srcbase> = C:/myAndroid/build/qt5/qtbase
            <outbase> = C:/myAndroid/build/qt5/qtbase
            Creating qmake...
            g++ -c -o qlibraryinfo.o -DUNICODE -ffunction-sections -g -IC:\myAndroid\build
            qt5\qtbase/qmake -IC:\myAndroid\build\qt5\qtbase/qmake/library -IC:\myAndroid\bu
            ild\qt5\qtbase/qmake/generators -IC:\myAndroid\build\qt5\qtbase/qmake/generators
            /unix -IC:\myAndroid\build\qt5\qtbase/qmake/generators/win32 -IC:\myAndroid\buil
            d\qt5\qtbase/qmake/generators/mac -IC:\myAndroid\build\qt5\qtbase/qmake/generato
            rs/integrity -IC:\myAndroid\build\qt5\qtbase\include -IC:\myAndroid\build\qt5\qt
            base\include/QtCore -IC:\myAndroid\build\qt5\qtbase\include/QtCore/5.3.2 -IC:\my
            Android\build\qt5\qtbase\include/QtCore/5.3.2/QtCore -IC:\myAndroid\build\qt5\qt
            base/src/corelib/global -DHAVE_QCONFIG_CPP -IC:\myAndroid\build\qt5\qtbase\mkspe
            cs\win32-g++ -IC:\myAndroid\build\qt5\qtbase/tools/shared -DQT_BUILD_QMAKE -DQT_
            BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO
            _COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT
            -DQT_NO_DATASTREAM -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY C:\myAndr
            oid\build\qt5\qtbase/src/corelib/global/qlibraryinfo.cpp
            g++ -o "C:\myAndroid\build\qt5\qtbase/bin/qmake.exe" project.o option.o property
            .o main.o ioutils.o proitems.o qmakevfs.o qmakeglobals.o qmakeparser.o qmakeeval
            uator.o qmakebuiltins.o makefile.o unixmake2.o unixmake.o mingw_make.o winmakefi
            le.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilde
            r_pbx.o msvc_vcproj.o msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_obj
            ectmodel.o gbuild.o cesdkhandler.o qtextcodec.o qutfcodec.o qstring.o qstring_co
            mpat.o qstringbuilder.o qtextstream.o qiodevice.o qmalloc.o qglobal.o qarraydata
            .o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfiledevice.
            o qfile.o qfilesystementry.o qfilesystemengine.o qfsfileengine.o qfsfileengine_i
            terator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o
            qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qma
            p.o qmetatype.o qsettings.o qsystemerror.o qlibraryinfo.o qvariant.o qvsnprintf.
            o qlocale.o qlocale_tools.o qlinkedlist.o qnumeric.o qcryptographichash.o qxmlst
            ream.o qxmlutils.o qlogging.o qjson.o qjsondocument.o qjsonparser.o qjsonarray.o
            qjsonobject.o qjsonvalue.o qfilesystemengine_win.o qfilesystemiterator_win.o qf
            sfileengine_win.o qlocale_win.o qsettings_win.o qsystemlibrary.o registry.o -sta
            tic -s -lole32 -luuid -ladvapi32 -lkernel32
            Running configuration tests...
            The system cannot find the path specified.
            process_begin: CreateProcess(NULL, C:/AndroidNDK/toolchains/arm-linux-androideab
            i-4.8/prebuilt/windows/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-
            a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-prote
            ctor -fno-short-enums -DANDROID -Wa,--noexecstack -std=gnu++0x -g -g -gdwarf-2 -
            marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -fPIE -IC:\myAndroid\build
            qt5\qtbase\mkspecs\android-g++ -I. -IC:\AndroidNDK\sources\cxx-stl\gnu-libstdc++
            \4.8\include -IC:\AndroidNDK\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi-v7a
            include -IC:\AndroidNDK\platforms\android-9\arch-arm\usr\include -o arch.obj arc
            h.cpp, ...) failed.
            make (e=2): The system cannot find the file specified.
            mingw32-make: *** [arch.obj] Error 2
            Could not find output file: No such file or directory.

            Any idea of what I am doing wrong?

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

              I don't believe one can build Qt5 for Android!! I have followed the tutorial exactly and got all types of errors! I am getting the same error in the configuration step for "No Such file or Directory"! Unfortunately, the online support is terrible for building Qt for Android! It has been 4 days I am struggling with the building steps, I am now frustrated and passing by! Maybe in the future I get back to developing Android App with Qt.

              I am using Qt 5.0.2 and did exactly as instructed in this page: (http://qt-project.org/wiki/building_qt-android_on_windows). All my Environmental Variables are corrected and my Path variable is correct too (The checks run fine). Yesterday I managed to configure correctly, I was stopped in the making step. You can see what errors I got in this thread (http://qt-project.org/forums/viewthread/52788/#218618).
              However today when I try to re-configure I cannot and get the following error: (This information might not be useful but I am pasting it anyways)

              This is the Qt for Android Open Source Edition.

              You have already accepted the terms of the license.

              Running syncqt...
              <srcbase> = C:/myAndroid/build/qt5/qtbase
              <outbase> = C:/myAndroid/build/qt5/qtbase
              Creating qmake...
              g++ -c -o qlibraryinfo.o -DUNICODE -ffunction-sections -g -IC:\myAndroid\build
              qt5\qtbase/qmake -IC:\myAndroid\build\qt5\qtbase/qmake/library -IC:\myAndroid\bu
              ild\qt5\qtbase/qmake/generators -IC:\myAndroid\build\qt5\qtbase/qmake/generators
              /unix -IC:\myAndroid\build\qt5\qtbase/qmake/generators/win32 -IC:\myAndroid\buil
              d\qt5\qtbase/qmake/generators/mac -IC:\myAndroid\build\qt5\qtbase/qmake/generato
              rs/integrity -IC:\myAndroid\build\qt5\qtbase\include -IC:\myAndroid\build\qt5\qt
              base\include/QtCore -IC:\myAndroid\build\qt5\qtbase\include/QtCore/5.3.2 -IC:\my
              Android\build\qt5\qtbase\include/QtCore/5.3.2/QtCore -IC:\myAndroid\build\qt5\qt
              base/src/corelib/global -DHAVE_QCONFIG_CPP -IC:\myAndroid\build\qt5\qtbase\mkspe
              cs\win32-g++ -IC:\myAndroid\build\qt5\qtbase/tools/shared -DQT_BUILD_QMAKE -DQT_
              BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO
              _COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT
              -DQT_NO_DATASTREAM -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY C:\myAndr
              oid\build\qt5\qtbase/src/corelib/global/qlibraryinfo.cpp
              g++ -o "C:\myAndroid\build\qt5\qtbase/bin/qmake.exe" project.o option.o property
              .o main.o ioutils.o proitems.o qmakevfs.o qmakeglobals.o qmakeparser.o qmakeeval
              uator.o qmakebuiltins.o makefile.o unixmake2.o unixmake.o mingw_make.o winmakefi
              le.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilde
              r_pbx.o msvc_vcproj.o msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_obj
              ectmodel.o gbuild.o cesdkhandler.o qtextcodec.o qutfcodec.o qstring.o qstring_co
              mpat.o qstringbuilder.o qtextstream.o qiodevice.o qmalloc.o qglobal.o qarraydata
              .o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfiledevice.
              o qfile.o qfilesystementry.o qfilesystemengine.o qfsfileengine.o qfsfileengine_i
              terator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o
              qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qma
              p.o qmetatype.o qsettings.o qsystemerror.o qlibraryinfo.o qvariant.o qvsnprintf.
              o qlocale.o qlocale_tools.o qlinkedlist.o qnumeric.o qcryptographichash.o qxmlst
              ream.o qxmlutils.o qlogging.o qjson.o qjsondocument.o qjsonparser.o qjsonarray.o
              qjsonobject.o qjsonvalue.o qfilesystemengine_win.o qfilesystemiterator_win.o qf
              sfileengine_win.o qlocale_win.o qsettings_win.o qsystemlibrary.o registry.o -sta
              tic -s -lole32 -luuid -ladvapi32 -lkernel32
              Running configuration tests...
              The system cannot find the path specified.
              process_begin: CreateProcess(NULL, C:/AndroidNDK/toolchains/arm-linux-androideab
              i-4.8/prebuilt/windows/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-
              a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-prote
              ctor -fno-short-enums -DANDROID -Wa,--noexecstack -std=gnu++0x -g -g -gdwarf-2 -
              marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -fPIE -IC:\myAndroid\build
              qt5\qtbase\mkspecs\android-g++ -I. -IC:\AndroidNDK\sources\cxx-stl\gnu-libstdc++
              \4.8\include -IC:\AndroidNDK\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi-v7a
              include -IC:\AndroidNDK\platforms\android-9\arch-arm\usr\include -o arch.obj arc
              h.cpp, ...) failed.
              make (e=2): The system cannot find the file specified.
              mingw32-make: *** [arch.obj] Error 2
              Could not find output file: No such file or directory.

              Any idea of what I am doing wrong?

              1 Reply Last reply
              0
              • F Offline
                F Offline
                flaviomarcio
                wrote on last edited by
                #7

                I tried to like you, but I will show you how

                Flavio Portela

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  flaviomarcio
                  wrote on last edited by
                  #8

                  I tried to like you, but I will show you how

                  Flavio Portela

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    flaviomarcio
                    wrote on last edited by
                    #9

                    Você pode fazer a instalação off-line e sem a compilação do código-fonte

                    Flavio Portela

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      flaviomarcio
                      wrote on last edited by
                      #10

                      Você pode fazer a instalação off-line e sem a compilação do código-fonte

                      Flavio Portela

                      1 Reply Last reply
                      0
                      • F Offline
                        F Offline
                        flaviomarcio
                        wrote on last edited by
                        #11

                        first, open source tools are not as Micorsoft or pier that work very well.

                        knowing that sometimes third party tools even hinder the compiler.

                        so if you run the build qtbase do in pc without any thing installed, example.

                        I create a qtdev chamamado user and install it because I need to install Qt4 and Qt5.

                        Flavio Portela

                        1 Reply Last reply
                        0
                        • F Offline
                          F Offline
                          flaviomarcio
                          wrote on last edited by
                          #12

                          first, open source tools are not as Micorsoft or pier that work very well.

                          knowing that sometimes third party tools even hinder the compiler.

                          so if you run the build qtbase do in pc without any thing installed, example.

                          I create a qtdev chamamado user and install it because I need to install Qt4 and Qt5.

                          Flavio Portela

                          1 Reply Last reply
                          0
                          • F Offline
                            F Offline
                            flaviomarcio
                            wrote on last edited by
                            #13

                            In present day I do not need more to do so much, I just need to install and configure Qt NDK, SDK, and Apache-Ant, and works well only I could not test sending to iOS, but I have reports confirming that works well.

                            Flavio Portela

                            1 Reply Last reply
                            0
                            • F Offline
                              F Offline
                              flaviomarcio
                              wrote on last edited by
                              #14

                              In present day I do not need more to do so much, I just need to install and configure Qt NDK, SDK, and Apache-Ant, and works well only I could not test sending to iOS, but I have reports confirming that works well.

                              Flavio Portela

                              1 Reply Last reply
                              0
                              • F Offline
                                F Offline
                                flaviomarcio
                                wrote on last edited by
                                #15

                                syncronize Android-USB. In QtCreator I run compile, so that I see, that does not tell me androidAPI compatible with android, confirm device and concludes with installed apk.

                                Thus with me all right

                                Flavio Portela

                                1 Reply Last reply
                                0
                                • F Offline
                                  F Offline
                                  flaviomarcio
                                  wrote on last edited by
                                  #16

                                  syncronize Android-USB. In QtCreator I run compile, so that I see, that does not tell me androidAPI compatible with android, confirm device and concludes with installed apk.

                                  Thus with me all right

                                  Flavio Portela

                                  1 Reply Last reply
                                  0
                                  • F Offline
                                    F Offline
                                    flaviomarcio
                                    wrote on last edited by
                                    #17

                                    Download in https://www.qt.io/download-open-source/

                                    select view all, then download offline

                                    http://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-windows-x86-android-5.4.0.exe.

                                    Flavio Portela

                                    1 Reply Last reply
                                    0
                                    • F Offline
                                      F Offline
                                      flaviomarcio
                                      wrote on last edited by
                                      #18

                                      Download in https://www.qt.io/download-open-source/

                                      select view all, then download offline

                                      http://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-windows-x86-android-5.4.0.exe.

                                      Flavio Portela

                                      1 Reply Last reply
                                      0
                                      • F Offline
                                        F Offline
                                        flaviomarcio
                                        wrote on last edited by
                                        #19

                                        Tip:

                                        1. Build on qtbase, only pays off if static.
                                        2. Forget static for android, there is.
                                        3. Use the source code exists in offline installer

                                        Flavio Portela

                                        1 Reply Last reply
                                        0
                                        • F Offline
                                          F Offline
                                          flaviomarcio
                                          wrote on last edited by
                                          #20

                                          Tip:

                                          1. Build on qtbase, only pays off if static.
                                          2. Forget static for android, there is.
                                          3. Use the source code exists in offline installer

                                          Flavio Portela

                                          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