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. Qt Creator: creating Static- and Shared-friendly libraries
Forum Updated to NodeBB v4.3 + New Features

Qt Creator: creating Static- and Shared-friendly libraries

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.7k 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.
  • C Offline
    C Offline
    Code_ReaQtor
    wrote on last edited by
    #1

    Hi!

    I am using Qt Creator in developing Qt libraries. I want to develop my libraries in both static and shared.
    However when you use Qt creator, there are different sets of output files with the 2 types. The produced static library has 2 files and the shared library has 3 files (with an extra *_global.h).

    I know how to use the CONFIG in the pro file, however when compiling a library from shared to static or static to shared produces some linking errors. How can I make my library be static- and shared-friendly?

    Please visit my open-source projects at https://github.com/Code-ReaQtor.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dotK
      wrote on last edited by
      #2

      Hi,

      I'm starting now on Qt, and I don't know how I can do this, but, I think you need add something on the file .pro

      [.k] - A Mad Programmer

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Which build system are you using? Qmake?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Code_ReaQtor
          wrote on last edited by
          #4

          [quote author="dotK" date="1359023381"]Hi,

          I'm starting now on Qt, and I don't know how I can do this, but, I think you need add something on the file .pro[/quote]

          I know about that... CONFIG
          but i think it is a linker error.

          [quote author="Tobias Hunger" date="1359027717"]Which build system are you using? Qmake?[/quote]

          Yes, my Qt Creator uses Qmake

          Please visit my open-source projects at https://github.com/Code-ReaQtor.

          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