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. [Solved] QT 5.3 error compiling for Android

[Solved] QT 5.3 error compiling for Android

Scheduled Pinned Locked Moved Mobile and Embedded
6 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.
  • P Offline
    P Offline
    projetoslinux
    wrote on last edited by
    #1

    Hi for all

    I have success in compile Qt 5.2.1 from sources, but with 5.3.0 have error

    rm -f libqtaccessiblewidgets.a
    /home/fuinha/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-ar cqs libqtaccessiblewidgets.a .obj/main.o .obj/simplewidgets.o .obj/rangecontrols.o .obj/complexwidgets.o .obj/qaccessiblewidgets.o .obj/qaccessiblemenu.o .obj/itemviews.o
    /home/fuinha/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-ranlib libqtaccessiblewidgets.a
    rm -f ../../../../plugins/accessible/libqtaccessiblewidgets.a
    mv -f libqtaccessiblewidgets.a ../../../../plugins/accessible/
    make[5]: Leaving directory /home/fuinha/QTfinal/5.3.0/Src/qtbase/src/plugins/accessible/widgets' make[4]: Leaving directory /home/fuinha/QTfinal/5.3.0/Src/qtbase/src/plugins/accessible'
    make[3]: Leaving directory /home/fuinha/QTfinal/5.3.0/Src/qtbase/src/plugins' make[2]: *** [sub-plugins-make_first] Error 2 make[2]: Leaving directory /home/fuinha/QTfinal/5.3.0/Src/qtbase/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/home/fuinha/QTfinal/5.3.0/Src/qtbase'
    make: *** [module-qtbase-make_first] Error 2

    i use this ./config

    ./configure -developer-build -opensource -confirm-license -xplatform android-g++ -no-gtkstyle -nomake tests -nomake examples -android-ndk ~/android-ndk -android-sdk ~/android-sdk -android-ndk-host linux-x86 -android-toolchain-version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors -static

    thanks for helpe me...

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

      Hi,

      You are not showing the exact error you have, only the end of the compilation. Can you re-run the build calling only make and post the exact error lines ?

      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
      • P Offline
        P Offline
        projetoslinux
        wrote on last edited by
        #3

        Hi thanks for this

        qibustypes.cpp:67:24: required from here
        ../../../../include/QtCore/../../src/corelib/tools/qhash.h:564:9: error: 'QHash<QString, QDBusArgument>::Node' has no member named 'value'
        (void) new (newNode) Node(concreteNode->key, concreteNode->value, concreteNode->h, 0);
        ^
        make[5]: *** [.obj/qibustypes.o] Error 1

        /home/fuinha/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/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 -g -g -gdwarf-2 -marm -O0 -fno-omit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/android-g++ -I. -I../../../../include/QtWidgets/5.3.0 -I../../../../include/QtWidgets/5.3.0/QtWidgets -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui/5.3.0 -I../../../../include/QtGui/5.3.0/QtGui -I../../../../include/QtCore/5.3.0 -I../../../../include/QtCore/5.3.0/QtCore -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I/home/fuinha/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/include -I/home/fuinha/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -isystem /home/fuinha/android-ndk/platforms/android-9/arch-arm/usr/include -o .obj/itemviews.o itemviews.cpp
        make[4]: *** [sub-ibus-make_first] Error 2
        make[4]: Leaving directory `/home/fuinha/QTfinal/5.3.0/Src/qtbase/src/plugins/platforminputcontexts'
        make[3]: *** [sub-platforminputcontexts-make_first] Error 2

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

          There's something strange… It means that you have dbus activated, and AFAIK, this is not available for Android. Might be a configuration bug. In between can you try to reconfigure your build explicitly disabling dbus ?

          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
          • P Offline
            P Offline
            projetoslinux
            wrote on last edited by
            #5

            THANK YOUUUU!!!!
            Hi SGaist

            whit -no-dbus i have sucess !

            thank very much....

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

              You're welcome !

              Still wondering why you got dbus activated though…

              Since it's working for you now, can you please also update the thread title prepending [solved] so other forum users may know a solution has been found :)

              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

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved