Hello Sagar,
Missing config.h means that your include flags for wxWidgets are not correctly set. KiCad attempts to find these using `wx-config --cppflags`. You can run this command and see what the response is. It should include something like: -I/usr/lib/aarch64-linux-gnu/wx/include/gtk3-unicode-3.2
If it does not, then, that is the issue. You may have multiple versions of wx installed on your system and wx-config is defaulting to the incorrect version. You can check this by running `wx-config --list`. You'll see something like this:
Default config is gtk3-unicode-3.2
Default config will be used for output
Alternate matches:
base-unicode-3.0
gtk3-unicode-3.0
If you want to force cmake to use a different version, you can use the CMake flag -DwxWidgets_CONFIG_OPTIONS="--toolkit=XXX --version=YYY" Here, XXX is either 'base' or 'gtk3' and YYY is either 3.0 or 3.2.
Note that KiCad requires wxWidgets 3.2 or later.
Best,
Seth