Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Application generated in release folder is not static when it should be
Forum Updated to NodeBB v4.3 + New Features

Application generated in release folder is not static when it should be

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 807 Views 3 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.
  • W Offline
    W Offline
    wowy
    wrote on last edited by
    #1

    Hi,

    First i want to say that i am not the one with this problem right so i will maybe not be able to answer all the question about this issue right now.

    The one with the problem installed qt source everywhere with the static option. This person created an application and added "CONFIG += static" to the .pro file of the application too. Up to this point i did the same thing personally when creating my applications and never had any issue generating static application.
    But my friend qt creator don't seems to generate them statically. (For example an application which should be 13MB in static is 155KB in dynamic (random numbers)...)

    Are we missing something ? I will have the system in my hands later and maybe will be able to give more informations.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi,

      CONFIG += static is a lib only option; not working for Apps

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wowy
        wrote on last edited by
        #3

        So all the library needed will already be in the executable file. I mean, when i was creating my executables files and moving them to another system i only had to move the executable, not the lib used by it because they were in it. (maybe the word "application" was not the best i could use here)

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

          Hi,

          Are all your libraries built statically ? If not that's the first step to do in order to build a fully static application

          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