Windows Wireshark 3.4.4 build fails with Qt errors
I successfully built wireshark from source on Linux.
I copied the same source to the Windows 10 machine.
I followed the instructions given at
https://www.wireshark.org/docs/wsdg_h...
I downloaded Qt 5.15.4 using the Qt online installer and then set QT5_BASE_DIR=C:\Qt\5.15.4\5.15.4\msvc2019
The cmake was successful.
The build failed with 1000+ qt unresolved external reference errors.
Examples: error LNK2001: unresolved external symbol "public: static struct QMetaObject unresolved external symbol "public: static struct QMetaObject const AboutDialog::staticMetaObject"
I've had great success using the older gtk builds using autotools but this has become a road block.
The 3.4.x release builds are built with Qt 5.15.2, and the env var set to
C:\Qt\5.15.2\msvc2019_64
.You're using a newer version, which may or may not cause issues, your path is a little different and you have no _x64 suffix, are you building a 32 bit or 64 bit version of Wireshark?
The path is a little different because the Qt online installer set up the location in that way. I matched the path ending with msvc2019. The version the Qt online installer put on the system did not distinguish between x32 and x64. I tried it using the x64 Native Command Window to do the cmake and build, and when that didn't work the x86. Both failed with the same Qt link errors.
I think you should ascertain exactly which Qt version (64 or 32 bit) you have, delete your build directory and then re-run the CMake generation step specifying the correct architecture.
Looking into it a bit more it seems that 5.15.4 is a "commercial" licence version, 5.15.2 is the latest open source licence. I'm not aware of anyone using the "commercial" licence versions when building Wireshark so you may be on the "bleeding edge" here.