Erro ao tentar compilar 5.1.1



  • Olá a todos, eu estou tentando compilar novamente qt5.1.1 para android.

    E mais uma vez eu tenho erros que não sei como resolver.

    Fiz o que ele diz em:

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

    Eu fiz com sucesso passos:

    http://qt-project.org/wiki/Qt5ForAndroidBuilding

    Mas eu tenho erros fazer passos:

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

    Alguém poder ajudar?

    Alguém teve os mesmos problemas?



  • Eu fiz com sucesso

    set path=C:\Program Files (x86)\Git\bin;C:\strawberry\perl\bin;

    cd c:\qt
    git clone git://gitorious.org/qt/qt5.git qt5android
    cd c:\qt\qt5android
    perl init-repository



  • Eu estou com problema em:

    set path=C:\strawberry\perl\bin
    set path=%path%;C:\mingw32\bin
    set path=%path%;C:\Program Files (x86)\Java\jdk1.7.0_17\bin

    set ANDROID_BUILD_TOOLS_REVISION=17.0.0
    set ANDROID_NDK_HOST=windows
    set ANDROID_NDK_PLATFORM=android-9
    set ANDROID_NDK_ROOT=C:\Qt\android-ndk-r8e
    set ANDROID_NDK_TOOLCHAIN_VERSION=4.7
    set ANDROID_TARGET_ARCH=armeabi-v7a

    cd
    cd C:\Qt\qt5android

    configure -developer-build -xplatform android-g++ -android-ndk C:\Qt\android-ndk-r8e -android-sdk C:\qt.sdk\android-software\android-sdk -android-ndk-host windows -android-toolchain-version 4.8.1 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -nomake tests -nomake examples



  • Aqui o log com erro vindo do configure:

    C:\Qt\qt5android>build.bat
    C:\Qt\qt5android>set path=C:\strawberry\perl\bin
    C:\Qt\qt5android>set path=C:\strawberry\perl\bin;C:\mingw32\bin
    C:\Qt\qt5android>set path=C:\strawberry\perl\bin;C:\mingw32\bin;C:\Program Files (x86)\Java\jdk1.7.0_17\bin
    C:\Qt\qt5android>set ANDROID_BUILD_TOOLS_REVISION=17.0.0
    C:\Qt\qt5android>set ANDROID_NDK_HOST=windows
    C:\Qt\qt5android>set ANDROID_NDK_PLATFORM=android-10
    C:\Qt\qt5android>set ANDROID_NDK_ROOT=C:\Qt\android-ndk-r8e
    C:\Qt\qt5android>set ANDROID_NDK_TOOLCHAIN_VERSION=4.7
    C:\Qt\qt5android>set ANDROID_TARGET_ARCH=armeabi-v7a
    C:\Qt\qt5android>cd
    C:>cd C:\Qt\qt5android

    C:\Qt\qt5android>set path
    Path=C:\strawberry\perl\bin;C:\mingw32\bin;C:\Program Files (x86)\Java\jdk1.7.0_
    17\bin
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

    C:\Qt\qt5android>configure -developer-build -xplatform android-g++ -android-ndk
    C:\Qt\android-ndk-r8e -android-sdk C:\qt.sdk\android-software\android-sdk -andro
    id-ndk-host windows -android-toolchain-version 4.8.1 -skip qttranslations -skip
    qtwebkit -skip qtserialport -skip qtwebkit-examples -nomake tests -nomake exampl
    es

    • cd qtbase
    • C:\Qt\qt5android\qtbase\configure.bat -top-level -developer-build -xplatform a
      ndroid-g++ -android-ndk C:\Qt\android-ndk-r8e -android-sdk C:\qt.sdk\android-sof
      tware\android-sdk -android-ndk-host windows -android-toolchain-version 4.8.1 -sk
      ip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -nom
      ake tests -nomake examples
      Please wait while bootstrapping configure ...
      <srcbase> = C:/Qt/qt5android/qtbase
      <outbase> = C:/Qt/qt5android/qtbase
      'findstr' não é reconhecido como um comando interno
      ou externo, um programa operável ou um arquivo em lotes.
      g++ -include configure_pch.h -fno-rtti -fno-exceptions -mthreads -Wall -Wextra -
      DUNICODE -DQT_NO_DATASTREAM -DQT_NO_CODECS -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABL
      ES -DQT_LITE_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_G
      EOM_VARIANT -D_CRT_SECURE_NO_DEPRECATE -DQT_BOOTSTRAPPED -DQT_BUILD_CONFIGURE -D
      COMMERCIAL_VERSION -I"../../include" -I"../../include/QtCore" -I"../../include/Q
      tCore/" -I"../../include/QtCore//QtCore" -I"C:/Qt/qt5android/qtbase/tools/shared
      " -I"C:/Qt/qt5android/qtbase/mkspecs/win32-g++" -c -o qarraydata.o C:/Qt/qt5an
      droid/qtbase/src/corelib/tools/qarraydata.cpp
      C:/Qt/qt5android/qtbase/src/corelib/tools/qarraydata.cpp:43:37: fatal error: QtC
      ore/private/qtools_p.h: No such file or directory
      #include <QtCore/private/qtools_p.h>
      ^
      compilation terminated.
      <builtin>: recipe for target 'qarraydata.o' failed
      mingw32-make: *** [qarraydata.o] Error 1

    C:\Qt\qt5android>



  • Deve ser o SET PATH .

    Você não pode apagar PATH que estava antes:

    Tem que adicionar os PATH's.

    Por exemplo:

    SET PATH=%PATH%;C:\strawberry\perl\bin;C:\mingw32\bin..........



  • entendi, eu fazia assim Qt4, pelo visto Qt5 é diferente.

    eu limpar PATH para evitar justamente mais de mingw ou mais de um sdk.

    pois tenho varios no meu PC

    eu vou tentar da forma que você disse.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.