Commit b1c3312
Windows deploy: walk ntldd graph for transitive MinGW DLLs
Diagnostic run showed OpenCryptUITest.exe exits with 0xC0000135
(STATUS_DLL_NOT_FOUND) at load time. The build dir had Qt5Core.dll
but not Qt5Core's transitive native deps — libpcre2-16-0.dll,
libharfbuzz-0.dll, libicu*.dll, libpng16-16.dll, libfreetype-6.dll,
libzstd.dll, libbz2-1.dll, libglib-2.0-0.dll and friends. MSYS2's
windeployqt-qt5 reliably handles the Qt plugin tree but does NOT
follow these C-level transitive deps.
Previously we had a hand-rolled ntldd loop that did this; the
earlier windeployqt rewrite dropped it. Restore that: walk each
exe's full dep graph with `ntldd -R`, grep for `mingw` paths, and
copy everything found into build/.
Applied to every shipped exe (OpenCryptUI + all test exes) so the
artifact is self-contained — no dependency on /mingw64/bin being on
the runtime PATH, which is what caused the CI failure under pwsh
(msys2 PATH doesn't carry into pwsh steps).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 708e8cd commit b1c3312
1 file changed
Lines changed: 45 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
261 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
262 | 301 | | |
263 | | - | |
| 302 | + | |
264 | 303 | | |
265 | 304 | | |
266 | | - | |
| 305 | + | |
267 | 306 | | |
268 | 307 | | |
269 | 308 | | |
270 | 309 | | |
271 | | - | |
| 310 | + | |
272 | 311 | | |
273 | 312 | | |
274 | 313 | | |
| |||
0 commit comments