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. How to build minimum size QtCore without gui?
Forum Updated to NodeBB v4.3 + New Features

How to build minimum size QtCore without gui?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 Posters 303 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
    Pavel Romankov
    wrote on last edited by
    #1

    hello.
    I have a console qt application that uses websockets to send messages in json format. And I want to run it on single board computer. So I decide to create small size image for my board.
    When i build QtCore on my host I have a lib with size about 150Mb, it is too much!
    So can you explain me how to build small lib without any gui and other parts? I need only base functionality and websockets.

    jsulmJ 1 Reply Last reply
    0
    • alik_coA Offline
      alik_coA Offline
      alik_co
      wrote on last edited by
      #2

      Are you building QtCore as a static library? If yes, then the lib size does not matter much. Linker with full optimization enabled will get from the library only what is actually used. Your main concern should be the size of the final binary, not the lib.

      1 Reply Last reply
      0
      • P Pavel Romankov

        hello.
        I have a console qt application that uses websockets to send messages in json format. And I want to run it on single board computer. So I decide to create small size image for my board.
        When i build QtCore on my host I have a lib with size about 150Mb, it is too much!
        So can you explain me how to build small lib without any gui and other parts? I need only base functionality and websockets.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Pavel-Romankov said in How to build minimum size QtCore without gui?:

        When i build QtCore on my host I have a lib with size about 150Mb

        Sounds like you built in debug mode.
        Build in release mode.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved