Unsolved how to find the current path?
-
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. -
Refer the following link
http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html -
@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 setrpath
so 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
.pro
file.