AddLibraryPath does not work..
-
Hi I moved qt dll's files to the folder "system" and added additional path. But get message that QWebkItWidgets.dll was not found..
@int main(int argc, char *argv[])
{
int result;
Q_INIT_RESOURCE(realtymanager);app = new QApplication(argc, argv); app->addLibraryPath("system/"); appArgs = new ApplicationArguments(app, app->arguments()); Logger::createLogger(app, appArgs->getValue("config")); MainWindow window; window.show(); result = app->exec(); Logger::destroyLogger(); return result;
}@
-
Hi,
I didn't use that feature yet but I'm not sure that "system/" would help, rather
@QApplication::addLibraryPath(QApplication::applicationDirPath() + "/system"); << both are statics@
Also, you have a memory leak, you are forgetting to delete app.
Hope it helps
-
Hi,
thank you for reply, unfortunately it does not help..
-
Wait wait wait, did you move all Qt's dll in the system folder ?
-
Yeees :)
I shouldn't have done?
-
IIRC, addLibraryPath is used to search for plugins, I think you need the "qt-conf ":http://qt-project.org/doc/qt-4.8/qt-conf.html file to achieve what you want
-
Okey.. Thank you for clarification.
I hoped to move all dll's files from application root directory... -
But, unfortunately this have nothing to do with addLibraryPath.
You should add the path to your system environment variable PATH or LD_LIBRARY_PATH.
[quote author="unmanner" date="1375477812"]Okey.. Thank you for clarification.
I hoped to move all dll's files from application root directory...[/quote] -
Hi,
How I can do that on a my clients computer?
-
It depends on how you install your application. Generally speaking, setup builder tools (like InnoSetup, NSIS etc...) offers some functionality to do that as a part of the installation process. Otherwise you would have to do it by hand for each client.