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. Linking to multiple dll and lib files in qt

Linking to multiple dll and lib files in qt

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 300 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.
  • AhtiA Offline
    AhtiA Offline
    Ahti
    wrote on last edited by Ahti
    #1

    Hi
    I would like to know what is the proper way to link to multiple dll and lib files and how would I test if they are properly linked or not.

    This is how I did it:

    myproject . pro:

    LIBS += -L$$PWD/dependencies -lole32 -ldxva2 -lwbemuuid
    
    INCLUDEPATH += $$PWD/dependencies
    DEPENDPATH += $$PWD/dependencies
    

    I have created a folder namely dependencies inside my project directory and placed all the dll and lib files in it.

    dependencies folder:

    0_1559471091217_Capture.PNG

    what is a signature ?? Lol

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

      Hi
      Looks ok but you are telling it to look for include files in
      INCLUDEPATH += $$PWD/dependencies
      which seems not to be the case.

      Also, for system DLLs, like ole32, one normally does not copy it around but simply refers to it
      LIBS += -lole32
      and the compiler/toolchain should know how to get system DLLS.

      To check what if it works, look in the compiler output pane.
      You can see what it links to.
      However, it will also give you linker errors if not found. ( and you used any of its functions)

      1 Reply Last reply
      2

      • Login

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