Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt-linux-opensource-5.2.0-android-x86_64-offline Android problem
Forum Updated to NodeBB v4.3 + New Features

Qt-linux-opensource-5.2.0-android-x86_64-offline Android problem

Scheduled Pinned Locked Moved Installation and Deployment
13 Posts 2 Posters 6.7k 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
    pumper
    wrote on last edited by
    #1

    Hi
    I installed that version and added the android sdk and snk to Qtcreator and create AVD .
    but when i want to build with Android GCC(arm-4.8) and add the kit manualy I get this error :
    @
    The compiler 'Android GCC(arm-4.8)'(arm-linux-android-elf-32bit) cannot produce code for Qt version 'Qt 5.2.0 GCC 64bit' (x86-linux-generic-elf-64bit)
    @
    and if build the project :
    @
    09:01:49: Running steps for project qt_android...
    09:01:49: Starting: "/opt/Qt5.2.0/5.2.0/gcc_64/bin/qmake" /home/mohsen/qt_projects/qt_android/qt_android.pro -r -spec android-g++
    09:01:52: The process "/opt/Qt5.2.0/5.2.0/gcc_64/bin/qmake" exited normally.
    09:01:52: Starting: "/usr/bin/make"
    /opt/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -pipe -std=gnu++0x -O2 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/Qt5.2.0/5.2.0/gcc_64/mkspecs/android-g++ -I../qt_android -I/opt/Qt5.2.0/5.2.0/gcc_64/include -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtGui -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtCore -I. -I/opt/android/android-ndk-r9b/platforms//arch-arm//usr/include -I. -I/opt/android/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.8/include -I/opt/android/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.8/libs//include -I/opt/android/android-ndk-r9b/platforms//arch-arm//usr/include -I. -o main.o ../qt_android/main.cpp
    In file included from /opt/android/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.8/include/algorithm:60:0,
    from /opt/Qt5.2.0/5.2.0/gcc_64/include/QtCore/qglobal.h:82,
    from /opt/Qt5.2.0/5.2.0/gcc_64/include/QtGui/qwindowdefs.h:45,
    from /opt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets/qwidget.h:45,
    from /opt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets/qmainwindow.h:45,
    from /opt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets/QMainWindow:1,
    from ../qt_android/mainwindow.h:4,
    from ../qt_android/main.cpp:1:
    /opt/android/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.8/include/utility:68:28: fatal error: bits/c++config.h: No such file or directory
    #include <bits/c++config.h>
    ^
    compilation terminated.
    make: *** [main.o] Error 1
    09:01:52: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project qt_android (kit: Android)
    When executing step 'Make'
    09:01:52: Elapsed time: ۰:۰۰:۰۴.
    @

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

      nobody faced this type of error?

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

        Hi,

        I didn't but from the looks of it you seem to be using the arm compiler with the 64bit x86 version of Qt. Are you sure your Kit/Qt versions are correctly configured ?

        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
          pumper
          wrote on last edited by
          #4

          I downloaded the Qt version that metioned and fully installed it.
          But in the Kits tab i only have this Qt 5.2.0 GCC 64bit kit and if i add a kit manually and choose arm compiler(from ndk i think) i get this error .
          do i missed some thing

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

            You should add a kit that uses the Qt version built for Android so if you don't have any Android Qt version shown in Qt Creator, first add one then use it in your new kit

            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
              pumper
              wrote on last edited by
              #6

              where is that kit you mentioned ?
              where is the address and how to add it ?
              i fully installed sdk and only can find one qmake that is Qt 5.2.0 GCC 64bit kit
              where are others anyway?

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

                Look at Options->Build & Run-> Qt Versions
                and Options->Build & Run-> Kits

                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
                  pumper
                  wrote on last edited by
                  #8

                  in the Qt versions :
                  only Qt 5.2.0 GCC 64bit
                  and so on for the kits
                  but in the compiler i can see all 6 ndk compilers added to default compiler ?
                  i dont get whats wrong.
                  i installed qt on /opt

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

                    Then the most straightforward is to call

                    @find /opt/Qt5.2.0 -name qmake@

                    It should return all the available qmake (both desktop and android), add the androids to the Qt Versions

                    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
                      pumper
                      wrote on last edited by
                      #10

                      I installed it on my homme diretory and this is the command out put it seems there is no android version.
                      @
                      /home/mohsen/Qt5.2.0/5.2.0/Src/qtbase/tests/auto/tools/qmake
                      /home/mohsen/Qt5.2.0/5.2.0/Src/qtbase/examples/qmake
                      /home/mohsen/Qt5.2.0/5.2.0/Src/qtbase/qmake
                      /home/mohsen/Qt5.2.0/5.2.0/Src/qtbase/qmake/doc/snippets/qmake
                      /home/mohsen/Qt5.2.0/5.2.0/Src/qtwebkit/Tools/qmake
                      /home/mohsen/Qt5.2.0/5.2.0/gcc_64/bin/qmake
                      /home/mohsen/Qt5.2.0/5.2.0/gcc_64/examples/qmake
                      /home/mohsen/Qt5.2.0/5.2.0/gcc_64/doc/qmake
                      /home/mohsen/Qt5.2.0/Tools/QtCreator/share/qtcreator/templates/wizards/plaincppapp/qmake
                      /home/mohsen/Qt5.2.0/Tools/QtCreator/share/qtcreator/templates/wizards/plaincapp/qmake
                      @

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

                        Are you sure you installed the Android package ?

                        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
                          pumper
                          wrote on last edited by
                          #12

                          i downloaded this file:
                          @
                          qt-linux-opensource-5.2.0-android-x86_64-offline.run
                          @
                          run the installer and choosed full install .
                          no question aseked and after finishing i can see android in options menu.
                          but no qt/android version or android kit.
                          in the devices panel i can choose desktop /android device .

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

                            Then it seems that you didn't get everything installed

                            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