CMAKE error: Can´t find Qt5CoreConfig.cmake
Hello,
I try to set up a new Build Environment for Windows:
I use:
- Wireshark 3.2.5
- CMAKE 3.12.17
- QT 5.12.9
- Visual Studio 2019
What did I miss?
> C:\Development\wsbuild64>cmake -G
> "Visual Studio 16 2019" ..\wireshark
> 2>&1 1>C:\Development\cmake64_log.txt
> CMake Warning (dev) at C:/Program
> Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272
> (message): The package name passed
> to `find_package_handle_standard_args`
> (POWERSHELL) does not match the name
> of the calling package (PowerShell).
> This can lead to problems in calling
> code that expects `find_package`
> result variables (e.g., `_FOUND`) to
> follow a certain pattern. Call Stack
> (most recent call first):
> cmake/modules/FindPowerShell.cmake:17
> (find_package_handle_standard_args)
> CMakeLists.txt:64 (find_package) This
> warning is for project developers.
> Use -Wno-dev to suppress it.
>
> CMake Error at CMakeLists.txt:1098
> (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.
What do you have set in the env variable QT5_BASE_DIR? See the developers guide section on Opening a Visual Studio Command Prompt.
Also check your Qt install.
It says: C:\Qt\5.12.9\5.12.9\msvc2017_64\
Now it has found somehow this files, don´t know why. But I have now an error with the follwing file: