[Solved] QT 5.3 error compiling for Android



  • 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...


  • Lifetime Qt Champion

    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 ?



  • 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


  • Lifetime Qt Champion

    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 ?



  • THANK YOUUUU!!!!
    Hi SGaist

    whit -no-dbus i have sucess !

    thank very much....


  • Lifetime Qt Champion

    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 :)


Log in to reply
 

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