When launch cmake-gui to configure the Kicad source project,then get the "no found wxWidgets"

configure the kicad source with cmake-gui , toolchain is gcc version 11 , type is "MinGW Makefiles " in Windows11,but get the issues:

"
CMake Deprecation Warning at CMakeLists.txt:28 (cmake_policy):
The OLD behavior for policy CMP0116 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Deprecation Warning at CMakeLists.txt:32 (cmake_policy):
The OLD behavior for policy CMP0113 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

KiCad install dir: <C:/Program Files (x86)/kicad>
Enabling warning -Wsuggest-override
Enabling warning -Wduplicated-branches
Enabling warning -Wduplicated-cond
Enabling error for -Wvla
Enabling warning -Wimplicit-fallthrough
Enabling error for -Wreturn-type
Enabling warning -Wshadow
Enabling warning -Wsign-compare
Enabling warning -Wmissing-field-initializers
Enabling warning -Wempty-body
Enabling warning -Wreorder
Enabling warning -Wmismatched-tags
Enabling warning -Wpessimizing-move
Enabling warning -Wredundant-move
Disabling warning -Wpsabi
Check for installed GLEW – found
Checking for module ‘cairo’
No package ‘cairo’ found
Checking for module ‘pixman-1’
No package ‘pixman-1’ found
Checking for one of the modules ‘libgit2’
Found the following HarfBuzz libraries:
HarfBuzz (required): E:/kicad-dependencies/harfbuzz/build/install/lib/libharfbuzz.dll.a
Checking for module ‘ngspice’
No package ‘ngspice’ found
Found OpenCASCADE Standard Edition version: 7.8.0
++ OpenCASCADE Standard Edition include directory: E:/kicad-dependencies/OCCT-7_8_0/build/instsll/inc
++ OpenCASCADE Standard Edition shared libraries directory: E:/kicad-dependencies/OCCT-7_8_0/build/instsll/win64/gcc/lib
Check for installed Python Interpreter – found
Python module install path: C:/Python/Python311/Lib/site-packages
pybind11 v2.9.2
pybind11::lto disabled (problems with undefined symbols for MinGW for now)
pybind11::thin_lto disabled (problems with undefined symbols for MinGW for now)
Found wxPython Phoenix 4.2.1/msw (wxWidgets 3.2.2.1)
CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
wxWidgets_INCLUDE_DIRS) (Required is at least version “3.2.2.1”)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
cmake/FindwxWidgets.cmake:987 (find_package_handle_standard_args)
CMakeLists.txt:1057 (find_package)

Configuring incomplete, errors occurred!
"

the version of wxWidgets in my windows 11 system is 3.2.2.1,and other projects are configured successfully.

how can i solve it?

Unless you have a properly configured msys2 environment and you launched your cmake-gui from there you will be in a world of pain getting kicad to compile. Actually you will likely run into issues even if you do that because barely anyone still builds kicad with gcc on windows.
I suggest you switch to msvc toolchain but either way, follow the docs

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.