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. Building Qt examples for Android
Forum Updated to NodeBB v4.3 + New Features

Building Qt examples for Android

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

    Hello,

    I was trying to build Qt5.1 for android. I am successful in building QT libraries and examples, but notice that the built examples doesn't contain any binaries/apks to execute on the android target. However *.so files are generated in the corresponding examples dir.

    Can anyone please let me know how to build and run the available Qt examples on Android?

    Thanks,
    Aditya

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pathak85
      wrote on last edited by
      #2

      make: Entering directory /home/urotabpc3/qtspace/urokore/Qt-sankore3.1' cd /src/tools/bootstrap/ && /usr/bin/make -f Makefile make[1]: Entering directory /src/tools/bootstrap'
      make[1]: Leaving directory /src/tools/bootstrap' make[1]: *** No rule to make target bootstrap.pro', needed by Makefile'. Stop. make: *** [sub-tools-bootstrap-make_default-ordered] Error 2 make: Leaving directory /home/urotabpc3/qtspace/urokore/Qt-sankore3.1'
      Exited with code 2.
      Error while building project projects
      When executing build step 'Make'
      can any one please let me know how to remove all these error

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pathak85
        wrote on last edited by
        #3

        i m trying to compile sankore3.1 a qt project
        make: Entering directory /home/urotabpc3/qtspace/urokore/Qt-sankore3.1’ cd /src/tools/bootstrap/ && /usr/bin/make -f Makefile make1: Entering directory /src/tools/bootstrap’
        make1: Leaving directory /src/tools/bootstrap’ make1: *** No rule to make target bootstrap.pro’, needed by Makefile’. Stop. make: *** [sub-tools-bootstrap-make_default-ordered] Error 2 make: Leaving directory /home/urotabpc3/qtspace/urokore/Qt-sankore3.1’
        Exited with code 2.
        Error while building project projects
        When executing build step ‘Make’
        can any one please let me know how to remove all these error

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pathak85
          wrote on last edited by
          #4

          how can i fix the above problem

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Aditya
            wrote on last edited by
            #5

            Hi,

            Atleast I didn't come across the issue you mentioned above.

            I used following procedure to configure and build from qt root dir -

            1. ./configure -developer-build -prefix <PATH_TO_LIB_INSTALL_DIR> -xplatform android-g++ -android-ndk <PATH_TO_NDK> -android-sdk <PATH_TO_ANDROID_SDK> -nomake tools

            2. make

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pathak85
              wrote on last edited by
              #6

              isEmpty(QT_BUILD_PARTS) { #defaults symbian
              {
              QT_BUILD_PARTS = libs tools examples demos
              } else {
              QT_BUILD_PARTS = libs tools examples demos docs translations
              }
              } else { #make sure the order makes sense
              contains(QT_BUILD_PARTS, translations) {
              QT_BUILD_PARTS -= translations
              QT_BUILD_PARTS = translations $$QT_BUILD_PARTS
              }
              contains(QT_BUILD_PARTS, tools) {
              QT_BUILD_PARTS -= tools
              QT_BUILD_PARTS = tools $$QT_BUILD_PARTS
              }
              contains(QT_BUILD_PARTS, libs) {
              QT_BUILD_PARTS -= libs
              [quote author="Aditya" date="1368185227"]Hello,
              unexpected else error how to reove

              I was trying to build Qt5.1 for android. I am successful in building QT libraries and examples, but notice that the built examples doesn't contain any binaries/apks to execute on the android target. However *.so files are generated in the corresponding examples dir.

              Can anyone please let me know how to build and run the available Qt examples on Android?

              Thanks,
              Aditya[/quote]

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pathak85
                wrote on last edited by
                #7

                :-1: warning: qmake spec does not announce the compiler family. Guessed gcc.

                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