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 find the current path?

how to find the current path?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 473 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.
  • ManiRonM Offline
    ManiRonM Offline
    ManiRon
    wrote on last edited by
    #1

    I want to add my mylib.dll file . I am adding the path in .Pro file .
    But i want to detect the dll file path on its own. whether it is possible.

    RatzzR 1 Reply Last reply
    0
    • Vinod KuntojiV Offline
      Vinod KuntojiV Offline
      Vinod Kuntoji
      wrote on last edited by
      #2

      Refer the following link
      http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html

      C++, Qt, Qt Quick Developer,
      PthinkS, Bangalore

      1 Reply Last reply
      0
      • ManiRonM ManiRon

        I want to add my mylib.dll file . I am adding the path in .Pro file .
        But i want to detect the dll file path on its own. whether it is possible.

        RatzzR Offline
        RatzzR Offline
        Ratzz
        wrote on last edited by Ratzz
        #3

        @ManiRon said in how to find the current path?:

        i want to detect the dll file path on its own

        You may need to all place the .dll in the current executable path .
        also try to set rpath so that exe try to use the dll from the current exe path like

        QMAKE_LFLAGS += -Wl,-rpath,"'\$$ORIGIN'"
        

        Place the above line after all the content in the .pro file.

        --Alles ist gut.

        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