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. Qt compile problem
Forum Updated to NodeBB v4.3 + New Features

Qt compile problem

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 3.0k 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.
  • M Offline
    M Offline
    magalmamir
    wrote on last edited by
    #1

    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 for first'.
    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
    @

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      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.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        magalmamir
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          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.

          Vote the answer(s) that helped you to solve your issue(s)

          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