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. C4Droid - Compile & run Qt 5.3 using only Android Phone/Tablet!
QtWS25 Last Chance

C4Droid - Compile & run Qt 5.3 using only Android Phone/Tablet!

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 6.4k Views
  • 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
    pSupaNova
    wrote on last edited by
    #1

    I have been exploring QT for a couple weeks and have noticed that C4Droid can compile & run many of the examples from the QT 5.3 SDK.

    I'm especially impressed that the Opengl ES examples work.

    "Play store link":https://play.google.com/store/apps/details?id=com.n0n3m4.droidc&hl=en_GB

    So go ahead and try it!

    I'm not the Author just a fan.

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

      Hi and welcome to devnet,

      Interesting ! Thanks for sharing ! :)

      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
      • D Offline
        D Offline
        DaReal_ApacheOmega
        wrote on last edited by
        #3

        Hello!
        I'm using C4droid and learning qt for the first time. I just want to know if:
        A. Could I still use qt 3 or qt 4 gui and programming examples? The reason I ask because I typed in this basic of all codes example

        @#include <qapplication.h>
        #include <qlabel>

        int main(int argc, char *argv[])
        {
        QApplication app(argc, argv);
        QLabel *label = new QLabel("Hello Qt!", 0);
        app.setMainWidget(label);
        label->show();
        return app.exec();
        }@

        And got this Message:
        No such file or directory #include <qapplication.h>

        I even tryed to remove the dot h and still the same results

        question B.
        Where can I get all the examples on qt 5.3 Gui desidn and programming and also tutorials on how to intergrate c++ code with qml code also

        Thank You
        AO!

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DaReal_ApacheOmega
          wrote on last edited by
          #4

          Hello!
          I'm using C4droid and learning qt for the first time. I just want to know if:
          A. Could I still use qt 3 or qt 4 gui and programming examples? The reason I ask because I typed in this basic of all codes example

          @#include <qapplication.h>
          #include <qlabel>

          int main(int argc, char *argv[])
          {
          QApplication app(argc, argv);
          QLabel *label = new QLabel("Hello Qt!", 0);
          app.setMainWidget(label);
          label->show();
          return app.exec();
          }@

          And got this Message:
          No such file or directory #include <qapplication.h>

          I even tryed to remove the dot h and still the same results

          question B.
          Where can I get all the examples on qt 5.3 Gui desidn and programming and also tutorials on how to intergrate c++ code with qml code also

          Thank You
          AO!

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pSupaNova
            wrote on last edited by
            #5

            Hi Sorry for replying late,

            I'm also learning this great toolkit.

            What I did was Download QT and install it on PC and then copy all the examples onto Android SDCard and try to get them to run most will actually compile and run.

            Lets go through the steps.

            1. Download QT 5.3 and install on a desktop computer.
            2. Copy the Examples Folder onto a Android device
            3. Launch C4Droid
            4. File->Open and navigate to Examples/Qt-5.3/gui/rasterwindow folder
            5. select and open main.cpp
            6. select Compilation settings and under Compilation mode: select Use Make file.
            7. Under Result binary filename: type librasterwindow.so
            8. Under Select run mode select Qt Application and press ok.
            9. press Run.

            note that under Result binary filename: you most prefix it with lib and the folder the code resides in.followed by .so
            So for gui/openglwindow you would enter libopenglwindow.so

            These examples are on the present shipping QT release so I would use and learn by them.

            Also the new Canvas3D works on android too but you have to compile that yourself at the moment.

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

              Hi Sorry for replying late,

              I'm also learning this great toolkit.

              What I did was Download QT and install it on PC and then copy all the examples onto Android SDCard and try to get them to run most will actually compile and run.

              Lets go through the steps.

              1. Download QT 5.3 and install on a desktop computer.
              2. Copy the Examples Folder onto a Android device
              3. Launch C4Droid
              4. File->Open and navigate to Examples/Qt-5.3/gui/rasterwindow folder
              5. select and open main.cpp
              6. select Compilation settings and under Compilation mode: select Use Make file.
              7. Under Result binary filename: type librasterwindow.so
              8. Under Select run mode select Qt Application and press ok.
              9. press Run.

              note that under Result binary filename: you most prefix it with lib and the folder the code resides in.followed by .so
              So for gui/openglwindow you would enter libopenglwindow.so

              These examples are on the present shipping QT release so I would use and learn by them.

              Also the new Canvas3D works on android too but you have to compile that yourself at the moment.

              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