Qt compile problem



  • Hello,

    I followed the wikipage http://qt-project.org/wiki/Qt5ForAndroidBuilding for building qt

    Make complains that -lQt5Designer is not found. I do not understand where qt5Designer should be found and I cannot find the other libraries in my qt5 build directory either.

    Thanks for your help.

    The output is:
    @
    cd qmldbg_tcp_qtquick1/ && ( test -e Makefile || /home/maxmus/Downloads/qt5/qtbase/bin/qmake /home/maxmus/Downloads/qt5/qtquick1/src/plugins/qmltooling/qmldbg_tcp_qtquick1/qmldbg_tcp_qtquick1.pro -o Makefile ) && make -f Makefile
    make[5]: Entering directory /home/maxmus/Downloads/qt5/qtquick1/src/plugins/qmltooling/qmldbg_tcp_qtquick1' make[5]: Nothing to be done forfirst'.
    make[5]: Leaving directory /home/maxmus/Downloads/qt5/qtquick1/src/plugins/qmltooling/qmldbg_tcp_qtquick1' make[4]: Leaving directory/home/maxmus/Downloads/qt5/qtquick1/src/plugins/qmltooling'
    cd qdeclarativeview/ && ( test -e Makefile || /home/maxmus/Downloads/qt5/qtbase/bin/qmake /home/maxmus/Downloads/qt5/qtquick1/src/plugins/qdeclarativeview/qdeclarativeview.pro -o Makefile ) && make -f Makefile
    make[4]: Entering directory /home/maxmus/Downloads/qt5/qtquick1/src/plugins/qdeclarativeview' rm -f libqdeclarativeview.so /home/maxmus/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ --sysroot=/home/maxmus/android-ndk-r8e/platforms/android-9/arch-arm/ -Wl,--no-undefined -Wl,-rpath=/home/maxmus/Downloads/qt5/qtbase/lib -Wl,-rpath-link=/home/maxmus/Downloads/qt5/qtbase/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libqdeclarativeview.so .obj/debug-shared/qdeclarativeview_plugin.o .obj/debug-shared/moc_qdeclarativeview_plugin.o -L/home/maxmus/android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi-v7a -L/home/maxmus/android-ndk-r8e/platforms/android-9/arch-arm//usr/lib -L/home/maxmus/Downloads/qt5/qtbase/lib -lQt5Designer -lQt5Declarative -lQt5XmlPatterns -lQt5Network -lQt5Sql -lQt5Widgets -lQt5Xml -lQt5Script -lQt5Gui -lQt5Core -lgnustl_shared -lsupc++ -llog -lz -lm -ldl -lc -lgcc -lGLESv2 /home/maxmus/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lQt5Designer collect2: error: ld returned 1 exit status make[4]: *** [/home/maxmus/Downloads/qt5/qtbase/plugins/designer/libqdeclarativeview.so] Error 1 make[4]: Leaving directory/home/maxmus/Downloads/qt5/qtquick1/src/plugins/qdeclarativeview'
    make[3]: *** [sub-qdeclarativeview-make_first] Error 2
    make[3]: Leaving directory /home/maxmus/Downloads/qt5/qtquick1/src/plugins' make[2]: *** [sub-plugins-make_first-ordered] Error 2 make[2]: Leaving directory/home/maxmus/Downloads/qt5/qtquick1/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/home/maxmus/Downloads/qt5/qtquick1'
    make: *** [module-qtquick1-make_first] Error 2
    @

    my configure line was:
    @
    ./configure -developer-build -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/maxmus/android-ndk-r8e -android-sdk /home/maxmus/android-sdk-linux -android-ndk-host linux-x86 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples
    @
    and I set the environment variables:
    @
    PATH=/home/maxmus/Downloads/jdk1.7.0_25/bin:$PATH
    export PATH

    export JAVA_HOME=/home/maxmus/Downloads/jdk1.7.0_25
    export ANDROID_SDK_ROOT=/home/maxmus/android-sdk-linux
    export ANDROID_API_VERSION=android-11
    @


  • Moderators

    welcome to devnet

    please check out the "forum help and the way to use code wrappings":http://qt-project.org/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01

    I added them for you this time.



  • Thanks for the changes to my previous post!

    I started the whole thing again, this time using the opensdk6 (and not the offical one in version 7) and not setting

    @
    export ANDROID_SDK_ROOT=/home/maxmus/android-sdk-linux
    export ANDROID_API_VERSION=android-11
    @

    I did it EXACTLY like explained in http://qt-project.org/wiki/Qt5ForAndroidBuilding

    the first error was that ANDROID_BUILD_TOOLS_REVISION was not set, so I added that

    @
    export ANDROID_BUILD_TOOLS_REVISION=18.0.0
    @

    after that the build worked

    I am a newbie with qt on android, so the question is if the wiki entry should be changed?

    Also I would be willing to create a virtual machine with Ubuntu 12.04 and the result of the build instructions in it. If you want this, let me know (post here).
    It might be useful for newbies


  • Moderators

    If this setting is required, you should update the wiki. If you feel a bit uncertain about it, you can add a note that it was required on your system. The android stuff is very fresh in the distribution and the wikis are typically after someone has successfully setup the system. There is always a chance that something important is forgotten.


Log in to reply
 

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