Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Install_name_tool on Mac..is there an equivalent tool for Windows?

Install_name_tool on Mac..is there an equivalent tool for Windows?

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 5 Posters 4.5k 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.
  • P Offline
    P Offline
    PSI-lbc
    wrote on last edited by
    #1

    The utility prog "install_name_tool" on the Mac allows you to alter the app so it knows where the support libs can be found. Usually somewhere in the app bundle..like Frameworks.

    Is there a tool for Windows that does the same thing?

    Trying to make a Windows release. App works fine when all the Qt support DLLs are located in the same directory as the app.exe. What I would like to do is set up a similar directory structure for the Windows deploy similar to the Mac App bundle IE all the support Libs(mac) and DLLs(win) in a Frameworks/DLL subdirectory.

    I tried the setLibrayPath and addLibraryPath approach, but the Windows .exe dies before the DLL library paths can be set when it is run from a directory other than the development directory.

    I have a 3rd party installer program that can add the DLL subdirectory to the Windows PATH environment variable but was wondering if there was a more elegant approach.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      AFAIK, no there is no equivalent to install_name_tool because Windows supports only 3 scenarios:

      • DLL is in the same directory as executable
      • DLL is in PATH
      • DLL is a system library

      no tool will get around that ;) You know who to blame for all this :P

      (Z(:^

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

        Additionally there's the "deployment documentation":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html to help you with that

        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
        • S Offline
          S Offline
          stereomatching
          wrote on last edited by
          #4

          [quote author="sierdzio" date="1374126908"]AFAIK, no there is no equivalent to install_name_tool because Windows supports only 3 scenarios:

          • DLL is in the same directory as executable
          • DLL is in PATH
          • DLL is a system library

          no tool will get around that ;) You know who to blame for all this :P[/quote]

          I like the way of windows far more than mac, deploy apps on mac is a real pain, have no ideas why the designer insist on making those path of dylib become absolute path?

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PSI-lbc
            wrote on last edited by
            #5

            You know who to blame for all this :P
            Yep, kinda what I expected :-(

            deploy apps on mac is a real pain,
            But not so much if you set them up with Automater & Shell Scripts

            I hate to modify the PATH var permanently...too easy to get messed up or over-written.

            If you were to run a .bat file that sets the PATH then executes the Qt .exe, is the PATH setting permanent or does it revert to previous setting after the .bat file terminates? Have to check this...

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

              [quote author="PSI-lbc" date="1374368014"]I hate to modify the PATH var permanently...too easy to get messed up or over-written. [/quote]Agreed

              [quote]If you were to run a .bat file that sets the PATH then executes the Qt .exe, is the PATH setting permanent or does it revert to previous setting after the .bat file terminates? Have to check this...[/quote]PATH modifications by .bat files are non-permanant. They will be gone when the .bat quits. In fact, this is the preferred way of setting your PATH.

              e.g. When you install Qt, you'll notice that it places a shortcut to a Command Prompt in your Start menu. Launch this, and you'll get a command prompt with a custom environment set up for Qt. (Visual Studio uses the same method)

              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