CMake discovers Strawberry Perl's zlib DLL when it shouldn't
Summary
I compiled a portable version of Wireshark following the instructions in the Developer's Guide.
I deployed the same portable installer to two different machines (other then the one I compiled it on), and on one of them, Wireshark doesn't start after double clicking WiresharkPortable64.exe
. No errors, nothing.
Starting it from App\Wireshark\Wireshark.exe
, it gives an error about missing zlib1__.dll
. In the same folder there's a library called zlib1.ddl
, and if I rename it adding the two underscores, everything works.
On the other machine, I didn't get this error.
Build information
Version 4.5.0 (v4.5.0rc0-1339-g469fd4248e32).
Compile-time info:
Bit width: 64-bit
Compiler: Microsoft Visual Studio 2022 (VC++ 14.42, build 34435)
GLib: 2.78.4
With:
+automatic updates +Lua 5.4.6 (UfW patched) +QtMultimedia
+brotli +LZ4 1.9.4 +Snappy 1.1.9
+Gcrypt 1.10.2-unknown +MaxMind 1.4.3 +WinSparkle 0.8.0
+GnuTLS 3.8.4 and PKCS#11 +Minizip-ng 4.0.5 +zlib 1.3.1
+Kerberos (MIT) +nghttp2 1.62.1 +zlib-ng 2.1.5
+libpcap +nghttp3 0.14.0 +Zstandard 1.5.6
+libsmi 0.5.0 +PCRE2 10.43 2024-02-16
+libxml2 2.11.7 +Qt 6.5.3
Runtime info:
OS: 64-bit Windows 10 (22H2), build 19045
CPU: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (with SSE4.2)
Memory: 32510 MB of physical memory
GLib: 2.78.4
Locale: LC_TYPE=Italian_Italy.utf8
Plugins: supported, 23 loaded
With:
+brotli 1.0.9 +nghttp3 0.14.0
+c-ares 1.27.0 +Npcap 1.79, libpcap 1.10.4
+Gcrypt 1.10.2-unknown +PCRE2 10.43 2024-02-16
+GnuTLS 3.8.4 +QPA plugin "windows"
+light display mode +Qt 6.5.3
+LZ4 1.9.4 +Zstandard 1.5.6
+nghttp2 1.62.1
Without:
-HiDPI