[Solved] WX Widgets problem in building from source


I’m trying to build KiCad from source on Ubuntu, but I’m stuck on the WxWidgets dependency.

The CMake output is:
CMake Error at CMakeModules/FindwxWidgets.cmake:981 (message):
wxWidgets wx/version.h file not found in
Call Stack (most recent call first):
CMakeLists.txt:794 (find_package)

The weird thing is that the file is there, it is located in:

So it should be found. Any clue on how to fix this?

My system is:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

The WxWidgets GTK3 packages have been installed as described in:

Thanks in advance!

Do you have to have wx 3.1? If not then remove that and just install libwxgtk3.0-gtk3-dev from ubuntu repo.

1 Like

Wow, thanks!

I did not have to have wx 3.1, but upon searching how to install it in ubuntu, I found that page, so that’s what I used.

With the 3.0 version, it works!

1 Like

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