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. Is it possible to detect compiled 'exe' dependencies? (Windows)
Forum Updated to NodeBB v4.3 + New Features

Is it possible to detect compiled 'exe' dependencies? (Windows)

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 368 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.
  • C Offline
    C Offline
    Curtwagner1984
    wrote on last edited by
    #1

    Greetings,

    In the windeployqt.exe documentation, it says that it detects the dependencies the file requires and copies over the necessary files.

    Is it possible to do it without windeployqt.exe? If I want to detect the decencies myself and copy the files over with a script, can it be possible?

    I'm on Qt 4, so as far as I know windeployqt started with Qt 5.

    jsulmJ 1 Reply Last reply
    0
    • C Curtwagner1984

      Greetings,

      In the windeployqt.exe documentation, it says that it detects the dependencies the file requires and copies over the necessary files.

      Is it possible to do it without windeployqt.exe? If I want to detect the decencies myself and copy the files over with a script, can it be possible?

      I'm on Qt 4, so as far as I know windeployqt started with Qt 5.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Curtwagner1984 https://www.dependencywalker.com/

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • C Offline
        C Offline
        Curtwagner1984
        wrote on last edited by
        #3

        Thanks, I actually tried this, but it seems the scope is too broad. Is it possible to narrow it's output to only QT decencies?

        jsulmJ 1 Reply Last reply
        0
        • C Curtwagner1984

          Thanks, I actually tried this, but it seems the scope is too broad. Is it possible to narrow it's output to only QT decencies?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by jsulm
          #4

          @Curtwagner1984 I did not use this tool much. Maybe you can filter the dependencies by name like *qt5*.dll ?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          C 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Curtwagner1984 I did not use this tool much. Maybe you can filter the dependencies by name like *qt5*.dll ?

            C Offline
            C Offline
            Curtwagner1984
            wrote on last edited by Curtwagner1984
            #5

            @jsulm Searching online I found this https://github.com/lucasg/Dependencies tool which supposed to be an updated version of the decencies walker.

            I managed to use cmd to output some of the dependencies my app needs. In CMD it prefixes the needed DLLS by category, for example it writes [WellKnownDlls] KERNEL32.dll : C:\WINDOWS\SysWOW64\kernel32.dll. So as far as I'm concerned none of the 'well known' DLL's should be copied.

            EDIT:
            I ended up making a python script that parses the output of this app and copies over files marked as [Not Found].

            1 Reply Last reply
            2

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved