To build KiCad on Linux:
-
Install the following extra packages (Ubuntu):
-
libgl1-mesa-dev libglew-dev libcairo2-dev libbz2-dev libssl-dev libwebkitgtk-dev libpython-dev swig2.0 pngcrush doxygen
-
-
Install wxPython 3 from Adam Wolf’s PPA (Ubuntu only)
-
sudo add-apt-repository ppa:adamwolf/kicad-trusty-backports
-
sudo apt-get update
-
sudo apt-get install libwxgtk3.0-dev python-wxgtk3.0-dev
-
-
Source .bashrc.kicad
-
Create a build dir, cd to it
-
mkdir /path/to/builddir/
-
cd /path/to/builddir/
-
-
Run cmake.kicad with the KiCad source dir as the argument:
-
cmake.kicad /path/to/source
-
-
Run something like
nice -n19 make -j6 all
to build. Changeall
topcbnew
and so on if that’s all you need.-
make install
to install - you need to do this to get the Python modules on the PYTHONPATH
-
-
Run from e.g. ./pcbnew/pcbnew (or eeschema, etc), or the installed location (useful as a working backup while you hack away). You only need to install again if you change something SWIG’y.