I cloned git repo and checked out tag 5.1.6.
Following the KiCad build instructions on https://docs.kicad.org/doxygen/md_Documentation_development_compiling.html#build_linux
I got stuck with this error:
kicad/build/debug $ cmake ../../
-- KiCad install dir: </usr/local>
-- Check for installed GLEW -- found
-- Boost version: 1.62.0
-- Check for installed Python Interpreter -- found
-- Python module install path: lib/python2.7/dist-packages
-- Found wxPython 3.0.2.0/gtk3 (wxWidgets 3.0.2.0)
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
wxWidgets_INCLUDE_DIRS) (Required is at least version "3.0.2.0")
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
CMakeModules/FindwxWidgets.cmake:944 (find_package_handle_standard_args)
CMakeLists.txt:795 (find_package)
-- Configuring incomplete, errors occurred!
See also "/opt/kicad/build/debug/CMakeFiles/CMakeOutput.log".
Here my packages:
dpkg -l | grep wx
ii libwxbase3.0-0v5:amd64 3.0.4+dfsg-3 amd64 wxBase library (runtime) - non-GUI support classes of wxWidgets toolkit
ii libwxbase3.0-dev 3.0.4+dfsg-3 amd64 wxBase library (development) - non-GUI support classes of wxWidgets toolkit
ii libwxgtk3.0-0v5:amd64 3.0.4+dfsg-3 amd64 wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
ii libwxgtk3.0-dev 3.0.4+dfsg-3 amd64 wxWidgets Cross-platform C++ GUI toolkit (GTK+ development)
ii libwxgtk3.0-gtk3-0v5:amd64 3.0.4+dfsg-3 amd64 wxWidgets Cross-platform C++ GUI toolkit (GTK+ 3 runtime)
ii python-wxgtk3.0 3.0.2.0+dfsg-7 amd64 Python interface to the wxWidgets Cross-platform C++ GUI toolkit
ii python-wxtools 3.0.2.0+dfsg-7 all Tools from the wxPython distribution
ii python-wxversion 3.0.2.0+dfsg-7 all API for selecting the wxPython version to use
ii python3-wxgtk4.0 4.0.1+dfsg-2 amd64 Python 3 interface to the wxWidgets Cross-platform C++ GUI toolkit
ii wx-common 3.0.4+dfsg-3 amd64 wxWidgets Cross-platform C++ GUI toolkit (common support files)
ii wx3.0-headers 3.0.4+dfsg-3 all wxWidgets Cross-platform C++ GUI toolkit (header files)