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. [Solved] Qt installer
QtWS25 Last Chance

[Solved] Qt installer

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 1.7k Views
  • 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.
  • M Offline
    M Offline
    moravas
    wrote on last edited by
    #1

    Hi Folks,

    I went through on the following tutorial to create installer:
    http://doc-snapshot.qt-project.org/qtifw-1.3/index.html

    But there is one topic which is little bit confusing:
    I have an application that is an .exe which will be executed by the user, but it uses the Qt Core dll. When the user starts the .exe, the operating system cannot find the .dll beacuse its path is not in the system path (or dll's path.)
    The question is:
    how can I add the install path to the system path by my setup?

    Regards,
    Norbert

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      Hi
      Is your dlls placed in same folder with application? If yes it should work, you don’t need add any path to system path.
      Did you read "deployment guide":http://qt-project.org/doc/qt-5/windows-deployment.html ?

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Hi,

        Did you put the DLLs in the correct paths relative to your .exe? This page shows you where they should go: http://qt-project.org/wiki/Deploy_an_Application_on_Windows

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • M Offline
          M Offline
          moravas
          wrote on last edited by
          #4

          Hi,

          thanks a lot for your reply. It seems to works on Windows.
          If I would like use it on Linux, how can I do that? I will recompile the sources and I prefer the dinamicaly linked libraries insted of the staticaly linked Qt.

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qxoz
            wrote on last edited by
            #5

            For linux if shared libraries are not in system path you can add
            @qApp->addLibraryPath("/some/other/path");@
            also look at "Linux Deployment":http://qt-project.org/doc/qt-5/linux-deployment.html

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              [quote author="moravas" date="1392794871"]thanks a lot for your reply. It seems to works on Windows.
              If I would like use it on Linux, how can I do that?[/quote]You're welcome. For Linux, it depends on which Qt version (if any) has been installed on the system.

              If your target PC has the same Qt version as your build, then you just need to copy your executable and run it.

              If your target PC has a different version of Qt (or if it doesn't have Qt), you can still use the same technique as the Windows guide; just replace *.dll files with *.so files.

              After you have copied the files, follow qxoz's link and copy the shell script to launch your app.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              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