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. Shadow build qt for android.
Forum Updated to NodeBB v4.3 + New Features

Shadow build qt for android.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
18 Posts 2 Posters 4.9k Views 2 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.
  • C Offline
    C Offline
    Chris_at_cfdrc
    wrote on last edited by
    #7

    Basically taking and old c++ application that has QT and OSG dependencies and making it run on an android. I've searched around the web and found this which requires Mingw or ninja, so we don't have to re-make all of the cmakeLists.txt's. So it "made sense" to stop building, successfully i might add, OSG and QT with MSVS 2014 compiler, with cmake, and compile everything with mingw.

    So i need to compile QT and OSG together because we're using cmake (currently to build everything) and when it's all said and done i need all of my cmakeLists to work with the android NDK to build. Like i said i dont really know what all i'm doing so correct me where i'm wrong or ignorant.

    At the end of the day i want an APK from my c++ application that currently targets UNIX and Windows.

    Sorry for all the redundancy.

    environment:
    building qt 5.5 or newest stuff in git repo targeting android 21
    windows 7 pro sp1, 64-bit
    i5-2400
    8GB ram

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

      Qt 5 is already well supported by CMake and there's also the Android package that provides a ready to use Qt for Android.

      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
      • C Offline
        C Offline
        Chris_at_cfdrc
        wrote on last edited by
        #9

        So i'm not using QT creator just to be clear;

        However you're saying i won't/don't need to compile qt for android to do what i'm trying to do?

        i should follow this example? and presumably i'll be able to group all of my Open scene graph and c++ dependencies with the androiddeployqt dev tool?

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

          Qt Creator does simplify your life a lot to handle the projects but it's by no mean mandatory even for Android development.

          You would only end up with a Qt version similar to the one provided by the Qt Android package.

          Since I don't know what your software is made of, I can't comment on how would androiddeployqt would work. But it should be its primary goal yes.

          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
          • C Offline
            C Offline
            Chris_at_cfdrc
            wrote on last edited by
            #11

            So really what i wanted was .a or .so for all of the libraries for OSG and QT 5.5 and from the looks of it androiddeployqt would just take the place of the android NDK which is not want i wanted. Anyway, thanks for trying. :)

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

              So you expected some kind of "super-lib" made of all Qt modules ?

              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
              • C Offline
                C Offline
                Chris_at_cfdrc
                wrote on last edited by
                #13

                I expected it to add another perspective on how to do something, specifically creating the static and shared libraries, nothing else. Plus i don't know alot about the field so i'm game for learning anything that might help :).

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

                  There are not many perspectives:

                  • shared libraries
                  • static libraries
                  • mix of both

                  In the end your package has to contain the dependencies of your application. What you might not see is that Android is a special case in the sense that you don't build an executable like you would for OS X or any other desktop environment.

                  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
                  • C Offline
                    C Offline
                    Chris_at_cfdrc
                    wrote on last edited by
                    #15

                    Yah, i know what i must do, or at least think i do, but i had a LOT of difficulties building the application for a windows environment, so i knew i would run into a lot of issues when attempting to build the application targeting android os.

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      Chris_at_cfdrc
                      wrote on last edited by
                      #16
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        Chris_at_cfdrc
                        wrote on last edited by
                        #17

                        So i changed versions of MinGW and it seems to have worked, if anyone else runs into my issue. Apparently the version of MinGW i was linked to was incomplete, i assume this was an error on my part. Thread is free to be closed imho. Thanks for the help again :)

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

                          Glad you found out and thanks for sharing !

                          You can mark it yourself :) For that you have to first convert it to a question and then mark it as solved using the "Topic Tool" button.

                          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