Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Solved] Switch Qt Creator project file from static to dynamic library?
Forum Updated to NodeBB v4.3 + New Features

[Solved] Switch Qt Creator project file from static to dynamic library?

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 1.5k 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.
  • B Offline
    B Offline
    bovilexic
    wrote on last edited by
    #1

    I've got a project file that makes a static lib. If I want to switch it to creating a dynamic/shared lib, what steps would I need to take to do this properly? And, I suppose, for the other direction?

    Sorry for the n00bish question, but I am a somewhat sporadic user of Qt Creator...

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

      Hi,

      In the project panel, Build Steps, qmake, additional arguments, you can add/remove "CONFIG += static"

      Or you can add build configurations for the static/dynamic build with the additional CONFIG argument

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

        Thanks. Seems to do the trick...

        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