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 to pass pkg-config static option with .pro file
QtWS25 Last Chance

how to pass pkg-config static option with .pro file

Scheduled Pinned Locked Moved Unsolved General and Desktop
pkg-configstatic linking
2 Posts 2 Posters 381 Views
  • 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
    PhysicsX
    wrote on 15 Nov 2022, 18:45 last edited by
    #1

    Hello

    The equivalent command for this:

    pkg-config --libs library
    

    there is an PKGCONFIG option :

    CONFIG += link_pkgconfig
    
    PKGCONFIG = \
    
    gstreamer-full-1.0
    

    but I do not know what is the equal option for

    pkg-config --libs --static library
    

    What is the way to link statically with pkg-config using .pro file ?

    Thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Nov 2022, 18:59 last edited by
      #2

      Hi,

      I am not aware of an equivalent. One thing you can do is to manually call pkg-config and add the output to LIB.

      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/2

      15 Nov 2022, 18:45

      • Login

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