Ask Your Question

Revision history [back]

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.

CMAKE error: Can´t find Qt5CoreConfig.cmake

Hello,

I try to set up a new Build Environment for Windows: Windows:

I use: - use:

  • Wireshark 3.2.5 - 3.2.5
  • CMAKE 3.12.17 - 3.12.17
  • QT 5.12.9 - 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.

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 -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):
C:/Program
> Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272
> (message):   The package name passed to `find_package_handle_standard_args` (POWERSHELL)
passed
> to `find_package_handle_standard_args`
> (POWERSHELL)   does not match the name name
> of the calling package (PowerShell).  
> This can lead
lead   to problems in calling calling
> code that expects `find_package` `find_package`
> result variables
variables   (e.g., `_FOUND`) to to
> follow a certain pattern.
pattern. Call Stack Stack
> (most recent call first):
  cmake/modules/FindPowerShell.cmake:17 (find_package_handle_standard_args)
  first):  
> cmake/modules/FindPowerShell.cmake:17
> (find_package_handle_standard_args)  
> CMakeLists.txt:64 (find_package)
This (find_package) This
> warning is for project developers.  
> Use -Wno-dev to suppress it.
 > 
> CMake Error at CMakeLists.txt:1098 (find_package):
CMakeLists.txt:1098
> (find_package):   By not providing providing
> "FindQt5Core.cmake" in in
> CMAKE_MODULE_PATH this project has
  has  
> asked CMake to find a package package
> configuration file provided by by
> "Qt5Core", but
but   CMake did not find find
> one.
 > 
>   Could not find a package package
> configuration file provided by by
> "Qt5Core" with any
any   of the following following
> names:
 > 
>     Qt5CoreConfig.cmake
>     qt5core-config.cmake
 > 
>   Add the installation prefix of of
> "Qt5Core" to CMAKE_PREFIX_PATH or set
  set 
> "Qt5Core_DIR" to a directory directory
> containing one of the above files.  If
 > "Qt5Core" provides a separate separate
> development package or SDK, be sure it has
it
> has   been installed.