You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, September 20th 2013, 12:19pm

dll location

My goal is keeping all dll's in system folder. But the exe doesn't see some dll's there. Some of them should lay in folder "sqldrivers" and libpq.dll even must lay right near the exe.
Perhaps the question is silly, but I'm new in c++.
Win 7 + Qt 5 + Mingw.
Thanx in advance! ?(

mrdebug

Trainee

  • "mrdebug" is male

Posts: 102

Occupation: Developer

  • Send private message

2

Tuesday, September 24th 2013, 4:29pm

Hi. On Windows you can use the qt.conf special file to specify the location of the plugins directory. I normally put the required dll in the exe folder.
On Linux you can use the special key

PHP Source code

1
2
3
unix:!mac {
    LIBS += -Wl,-rpath=\\\$$ORIGIN/libs
}


to specify the location of all dlls.
---
www.denisgottardello.it
Skype: mrdebug
Videosurveillance and home automation!
http://www.denisgottardello.it/DomusBoss/DomusBoss.php

Used tags

DLL, qt