How to build KiCad on Ubuntu in 10 minutes
This sequence of commands can be used to quickly compile KiCad on Ubuntu
Add repository so we can install the build dependencies
build_kicad_ubuntu.sh
sudo add-apt-repository --enable-source --yes ppa:kicad/kicad-8.0-releases
sudo apt updateInstall build dependencies
install_dependencies.sh
sudo apt build-dep kicad
# Install other build tools
apt -y install ninja-build mold libprotobuf-dev protobuf-compiler python3-pip
# Install Python dependencies
pip install --user --break-system-packages wxpythonClone the KiCad source code
clone_kicad.sh
git clone https://gitlab.com/kicad/code/kicad.gitOptionally, you can checkout a specific branch, but most users will want to build master, which is checked out by default.
Building KiCad using ninja
build_kicad.sh
mkdir -p build/release
cd build/release
cmake -G Ninja -DCMAKE_BUILD_TYPE=ReleaseWithDebInfo -DCMAKE_CXX_FLAGS=-fuse-ld=mold ../../
ninja -j8If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow