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. AddLibraryPath does not work..

AddLibraryPath does not work..

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 8.3k Views 1 Watching
  • 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.
  • U Offline
    U Offline
    unmanner
    wrote on last edited by
    #1

    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;
    

    }@

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • U Offline
        U Offline
        unmanner
        wrote on last edited by
        #3

        Hi,

        thank you for reply, unfortunately it does not help..

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Wait wait wait, did you move all Qt's dll in the system folder ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • U Offline
            U Offline
            unmanner
            wrote on last edited by
            #5

            Yeees :)

            I shouldn't have done?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • U Offline
                U Offline
                unmanner
                wrote on last edited by
                #7

                Okey.. Thank you for clarification.
                I hoped to move all dll's files from application root directory...

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dbzhang800
                  wrote on last edited by
                  #8

                  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]

                  1 Reply Last reply
                  0
                  • U Offline
                    U Offline
                    unmanner
                    wrote on last edited by
                    #9

                    Hi,

                    How I can do that on a my clients computer?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      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.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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