CMake problems with building with with Qt 6 on Windows
I was following the step by step guide (https://www.wireshark.org/docs/wsdg_h...) and I believe I did everything right using choc for the majority of the files. I am now at step 2.2.12 (generate the build files).
I modified the Visual Studio Developer command batch file to change to the folder where the various var batch files are (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build), and then manually ran vcvars64.bat
. I then changed to the C:\Development folder and ran my batch file to set the QT values (set WIRESHARK_BASE_DIR=C:\Development
and set QT5_BASE_DIR=C:\Qt\6.1.0\msvc2019_64
). So far so good.
I changed to the wsbuild64 folder and ran "cmake -G "Visual Studio 16 2019" -A x64 ..\wireshark"
... lots of things happened until an error happened as follows:
CMake Error at CMakeLists.txt:1188 (find_package):
By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Core", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Core" with any
of the following names:
Qt5CoreConfig.cmake
qt5core-config.cmake
Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
"Qt5Core_DIR" to a directory containing one of the above files. If
"Qt5Core" provides a separate development package or SDK, be sure it has
been installed.
I am guessing that when I installed QT, maybe I missed adding in something needed? I searched the QT folders for any reference to Qt5CoreConfig and found nothing... SO close to being able to build a custom version... thanks kindly in advance for your assistance :)
Gary