1. Install dependencies
sudo apt install libxaw7-dev freeglut3-dev libgl1-mesa-dev libglew-dev libx11-dev doxygen libbz2-dev libcairo2-dev libglu1-mesa-dev libwxgtk3.2-dev mesa-common-dev pkg-config libssl-dev build-essential cmake-curses-gui debhelper grep swig dblatex po4a asciidoc python3-dev python3-wxgtk4.0 libgit2-dev libsecret-1-dev source-highlight libboost-all-dev libglm-dev libcurl4-openssl-dev libgtk-3-dev libngspice0-dev libngspice0 ngspice-dev libocct-modeling-algorithms-dev libocct-modeling-data-dev libocct-data-exchange-dev libocct-visualization-dev libocct-foundation-dev libocct-ocaf-dev unixodbc-dev zlib1g-dev shared-mime-info python3-pytest python3-cairosvg valgrind
2. Compile NG-Spice
wget https://onboardcloud.dl.sourceforge.net/project/ngspice/ng-spice-rework/41/ngspice-41.tar.gz
tar -xvf ngspice-41.tar.gz
cd ngspice-41/
./configure --with-x --enable-xspice --enable-cider --with-readline=yes --enable-openmp --disable-debug CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
make -j$(nproc)
sudo make install
3. Compile KiCad
3.1 Download source
git clone https://gitlab.com/kicad/code/kicad.git
cd kicad
3.2 Select verion
git checkout 7.0.10
mkdir -p build/release
cd build/release/
3.3 Cmake and make
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DKICAD_BUILD_I18N=ON -DKICAD_USE_VALGRIND=ON ../../
make -j2
sudo make install
sudo ldconfig
4. Install additional libraries
cd /usr/local/share/kicad
4.1 3D packages
sudo git clone https://gitlab.com/kicad/libraries/kicad-packages3D
sudo mv kicad-packages3D/ 3dmodels
4.2 Symbol and footprint libraries
sudo git clone https://gitlab.com/kicad/libraries/kicad-footprints
sudo mv kicad-footprints/ footprints
sudo git clone https://gitlab.com/kicad/libraries/kicad-symbols
sudo mv kicad-symbols/ symbols
4.3 Templates
sudo git clone https://gitlab.com/kicad/libraries/kicad-templates
sudo mv kicad-templates/* template
Leave a Reply