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. how config LIBS += in .pro file with static version Qt?
Forum Update on Tuesday, May 27th 2025

how config LIBS += in .pro file with static version Qt?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 641 Views 2 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
    BobZ
    wrote on 11 Sept 2018, 06:32 last edited by
    #1

    hi
    every one ,I make my app with qt 4.8.7 source version on windows, when I deploy my app I have to include a third part dynamic dll named logger.dll(import libs by adding "LIBS += --LD:\LIBPATH\ -llogger" to .pro file) ,and some qt library such as QtCord4.dll and QtGui4.dll,to make the app clean I built static Qt with mingw-make ,when I build my app with that static qt kit ,I recived error "cannot find -llogger",I can not figure out why? Is that static vertion Qt can not import dynamic dll by "LIBS +="? could any body help me fix that problem ,thanks.
    BOB

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Sept 2018, 06:54 last edited by
      #2

      Hi,

      No there's no difference for third party libraries whether Qt is built statically or dynamically.

      Did you do any change to your .pro file in that regard ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply 11 Sept 2018, 08:08
      0
      • B Offline
        B Offline
        BobZ
        wrote on 11 Sept 2018, 07:56 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • S SGaist
          11 Sept 2018, 06:54

          Hi,

          No there's no difference for third party libraries whether Qt is built statically or dynamically.

          Did you do any change to your .pro file in that regard ?

          B Offline
          B Offline
          BobZ
          wrote on 11 Sept 2018, 08:08 last edited by
          #4

          @SGaist
          hi SGaist
          thank for your reply.Nothing had changed in my project,I guess the static version of qt not compile completely.Is that adding static library and dynamic library to the project in the same way by "LIBS += "?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 11 Sept 2018, 21:21 last edited by
            #5

            Yes it's exactly the same.

            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

            1/5

            11 Sept 2018, 06:32

            • Login

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