【Qt】Qt程序查看动态链接库(windows)

windows下使用dumpbin查看Qt程序运行时需要链接的动态库

打开终端

打开Qt自带的MSVC终端
如:Qt 5.10.0 64-bit forDesktop(MSVC 2017)
【Qt】Qt程序查看动态链接库(windows)_第1张图片

查看dumpbin命令

dumpbin微软官网说明
https://docs.microsoft.com/zh-cn/cpp/build/reference/dumpbin-options

直接输入命令dumpbin(不带参数)

D:\qt\5.10.0/msvc2017_64>dumpbin
Microsoft (R) COFF/PE Dumper Version 14.13.26131.1
Copyright (C) Microsoft Corporation.  All rights reserved.

用法: DUMPBIN [选项] [文件]

  选项:

   /ALL
   /ARCHIVEMEMBERS
   /CLRHEADER
   /DEPENDENTS
   /DIRECTIVES
   /DISASM[:{BYTES|NOBYTES}]
   /ERRORREPORT:{NONE|PROMPT|QUEUE|SEND}
   /EXPORTS
   /FPO
   /HEADERS
   /IMPORTS[:文件名]
      /LINENUMBERS
   /LINKERMEMBER[:{1|2}]
   /LOADCONFIG
   /NOLOGO
      /OUT:filename
   /PDATA
   /PDBPATH[:VERBOSE]
   /RANGE:vaMin[,vaMax]
   /RAWDATA[:{NONE|1|2|4|8}[,#]]
   /RELOCATIONS
   /SECTION:名称
   /SUMMARY
   /SYMBOLS
   /TLS
   /UNWINDINFO

【Qt】Qt程序查看动态链接库(windows)_第2张图片

查看程序依赖库

dumpbin /dependents xxx.exe > dependents.txt

imports.txt内容如下

Microsoft (R) COFF/PE Dumper Version 14.13.26131.1
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file FaceRecDlg.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

libopencv_core249.dll
libopencv_highgui249.dll
libopencv_imgproc249.dll
libopencv_objdetect249.dll
Qt5Cored.dll
Qt5Guid.dll
Qt5Widgetsd.dll
libgcc_s_dw2-1.dll
KERNEL32.dll
msvcrt.dll
SHELL32.dll
libstdc++-6.dll

  Summary

    1000 .CRT
    1000 .bss
    1000 .data
    6000 .debug_abbrev
    1000 .debug_aranges
    1000 .debug_frame
  205000 .debug_info
    5000 .debug_line
    1000 .debug_loc
    1000 .debug_ranges
    9000 .debug_str
    3000 .eh_frame
    3000 .idata
   2D000 .rdata
    6000 .text
    1000 .tls

你可能感兴趣的:(Qt)