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. How to turn off major portions of Qt?
Qt 6.11 is out! See what's new in the release blog

How to turn off major portions of Qt?

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 2.6k 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.
  • R Offline
    R Offline
    RogueWarrior
    wrote on last edited by
    #1

    This is somewhat of a followup to an earlier post but it's a bit more general.
    I'm attempting to cross-compile Qt Everywhere 4.8.4 for an ARM system that has no GUI. I'm trying various things in ./configure and make to strip it down to eliminate WebKit and QtGUI but I'm not making much progress. The last attempt was

    ./configure -embedded arm -xplatform linux-arm-gnueabi-g++ -prefix /mydir/QtTest -little-endian -no-opengl -no-mouse-linuxtp -no-kbd-linuxinput -no-gfx-linuxfb -no-webkit

    followed by:

    make sub-src

    That craps out trying to build qmnghandler.cpp saying qcolor.h doesn't exist. So did I not turn off something? Any other suggestions?

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

      Hi,

      You need to add -no-gui

      Look at configure --help, you'll see all what you can disable

      Hope it helps

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

        You can use qconfig which can be compiled from the tools directory. Then you can easily remove features you don't need for smaller Qt libraries.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RogueWarrior
          wrote on last edited by
          #4

          That's a bit of a Catch-22 though. I'm attempting to cross-compile the libraries. So if I built qconfig, after running /configure and make, I'd be building qconfig for my ARM system. I guess I could build everything twice and just move the qconfig executable somewhere safe during the second pass. Kinda sucks that there isn't a make menuconfig method for doing this.

          But I have managed to build the libraries and run a simple QTimer-based hello world on the ARM system.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Locutus
            wrote on last edited by
            #5

            No, qconfigure is built using the standard windows Qt libraries. You then use it to set up a configuration file for your cross compile. It is in the Qt docs under the tuning heading for windows ce installation.

            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