CMake Error: The source directory does not appear to contain CMakeLists.txt.

CMake Error: The source directory “C:/Development/wsbuild64” does not appear to contain CMakeLists.txt.

How did you try to run CMake?

I want to build an enviroment about wireshark compile, I follow the official document untill the last step,see as the fig. but errors occured

the error af follow:
CMake Error at CMakeLists.txt:1235 (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.

– Configuring incomplete, errors occurred!

THANKS A LOT!

You’ll need to get Qt5 for Windows. Qt has an installer you can use for that, but there are also other ways such as vcpkg and the like.


I’ ve already got qt5, but it still error.

Did you tell CMake where to find this Qt5 you have? You’ll need to set something like Qt5_DIR to …/Qt5.9.5/…/cmake/Qt5. I can’t remember the bit under the directory you have there that needs to be used, but the stem is cmake/Qt5 at least.