Difference between revisions of "KiCAD from Source"
Jump to navigation
Jump to search
| Line 35: | Line 35: | ||
* <code>mkdir -p build/release</code> | * <code>mkdir -p build/release</code> | ||
* <code>cd build/release</code> | * <code>cd build/release</code> | ||
* <code>cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../ | * <code>cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DKICAD_USE_CMAKE_FINDPROTOBUF=ONcode> | ||
== '''<span style="color: rgb(132, 63, 161);">Build it:</span>''' == | == '''<span style="color: rgb(132, 63, 161);">Build it:</span>''' == | ||
Revision as of 15:13, 8 August 2025
| 6 (Faye) |
|
The required tools:
sudo apt install git cmakecmake-gui
Get the source:
Note: This builds a non-stable version. (Whatever state the code is currently in...)
git clone https://github.com/KiCad/kicad-source-mirror kicad
or maybe:
Note: This should build a stable version. (You can change branch to match current stable version...)
git clone https://github.com/KiCad/kicad-source-mirror --branch 9.0 kicad
The prerequisites:
sudo apt install swig libwxgtk3.2-dev libboost1.74-all-dev libglew-dev libglm-dev libglut-dev libcairo-dev python3-dev wxpython-tools libcurl4-openssl-dev libgit2-dev libngspice0-dev libharfbuzz-dev libocct-data-exchange-dev unixodbc-dev libgtk-3-dev libsecret-1-devsudo apt install iodbc libiodbc2-devsudo apt installlibnng-dev libprotobuf-dev protobuf-compiler
Set it up:
cd kicad/mkdir -p build/releasecd build/releasecmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DKICAD_USE_CMAKE_FINDPROTOBUF=ONcode>
Build it:
make
Install it:
sudo make install