how to find the current path?
-
Refer the following link
http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html -
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.@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
.dllin the current executable path .
also try to setrpathso that exe try to use the dll from the current exe path likeQMAKE_LFLAGS += -Wl,-rpath,"'\$$ORIGIN'"Place the above line after all the content in the
.profile.