[Solved] WX Widgets problem in building from source

Hi,

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
/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.1-unofficial3;/usr/include/wx-3.1-unofficial.
Call Stack (most recent call first):
CMakeLists.txt:794 (find_package)

The weird thing is that the file is there, it is located in:
/usr/include/wx-3.1-unofficial3/wx

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:
https://wiki.codelite.org/pmwiki.php/Main/WxWidgets31Binaries

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.