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 335 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 3 May 2022, 07:51 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.

    J 1 Reply Last reply 3 May 2022, 07:54
    0
    • C Curtwagner1984
      3 May 2022, 07:51

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 3 May 2022, 07:54 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 3 May 2022, 08:08 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?

        J 1 Reply Last reply 3 May 2022, 08:13
        0
        • C Curtwagner1984
          3 May 2022, 08:08

          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?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 3 May 2022, 08:13 last edited by jsulm 5 Mar 2022, 08:14
          #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 3 May 2022, 08:29
          0
          • J jsulm
            3 May 2022, 08:13

            @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 3 May 2022, 08:29 last edited by Curtwagner1984 5 Mar 2022, 11:23
            #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

            1/5

            3 May 2022, 07:51

            • Login

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