Difference between revisions of "KiCAD from Source"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{{!}} class="wikitable" style="float: right; width: 322px;" border="2"
{{{!}} class="wikitable" style="float: right; width: 322px;" border="2"
{{!}}+ Proven on:
{{!}}+ Proven on:
{{!}}- <!-- LMDE -->
{{!}}- &lt;!-- LMDE --&gt;
{{!}} style="text-align: center; width: 65.675px;" {{!}} [[File:Logo LMDE.png{{!}}60px{{!}}link=https://linuxmint.com/edition.php?id=279{{!}}center{{!}}middle{{!}}frameless]]
{{!}} style="text-align: center; width: 65.675px;" {{!}} [[File:Logo LMDE.png{{!}}60px{{!}}link=https://linuxmint.com/edition.php?id=279{{!}}center{{!}}middle{{!}}frameless]]
{{!}} style="text-align: center; width: 40px;" {{!}} 6 (Faye)
{{!}} style="text-align: center; width: 40px;" {{!}} 6 (Faye)
{{!}}
{{!}}
<br>
<br>
{{!}}}
{{!}}}
Line 10: Line 11:
= Building KiCAD from source on LMDE6 =
= Building KiCAD from source on LMDE6 =


'''<span style="color: rgb(132, 63, 161);" >The required tools:</span>'''
== '''<span style="color: rgb(132, 63, 161);">The required tools:</span>''' ==


* <code>sudo apt install git cmake <s>cmake-gui </s></code>
* <code>sudo apt install git cmake <s>cmake-gui </s></code>
'''<span style="color: rgb(132, 63, 161);" >Get the source:</span>'''


<span style="color: rgb(153, 51, 102);" >'''Note: This builds a non-stable version.''' (Whatever state the code is currently in...)</span>
== '''<span style="color: rgb(132, 63, 161);">Get the source:</span>''' ==
 
<span style="color: rgb(153, 51, 102);">'''Note: This builds a non-stable version.''' (Whatever state the code is currently in...)</span>


* <code>git clone <nowiki>https://github.com/KiCad/kicad-source-mirror</nowiki> kicad</code>
* <code>git clone <nowiki>https://github.com/KiCad/kicad-source-mirror</nowiki> kicad</code>
'''<span style="color: rgb(132, 63, 161);" >or maybe:</span>'''
'''<span style="color: rgb(132, 63, 161);">or maybe:</span>'''


<span style="color: rgb(153, 51, 102);" >'''Note: This should build a stable version.''' (You can change branch to match current stable version...)</span>
<span style="color: rgb(153, 51, 102);">'''Note: This should build a stable version.''' (You can change branch to match current stable version...)</span>


* <code>git clone <nowiki>https://github.com/KiCad/kicad-source-mirror</nowiki> --branch 7.0 kicad</code>
* <code>git clone <nowiki>https://github.com/KiCad/kicad-source-mirror</nowiki> --branch 7.0 kicad</code>
'''<span style="color: rgb(132, 63, 161);" >The prerequisites:</span>'''
 
== '''<span style="color: rgb(132, 63, 161);">The prerequisites:</span>''' ==


* <code>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-dev</code>
* <code>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-dev</code>
* <code><s>sudo apt install iodbc libiodbc2-dev</s></code>
* <code><s>sudo apt install iodbc libiodbc2-dev</s></code>
'''<span style="color: rgb(132, 63, 161);" >Set it up:</span>'''
 
== '''<span style="color: rgb(132, 63, 161);">Set it up:</span>''' ==


* <code>cd kicad/</code>
* <code>cd kicad/</code>
Line 33: Line 37:
* <code>cd build/release</code>
* <code>cd build/release</code>
* <code>cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../</code>
* <code>cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../</code>
'''<span style="color: rgb(132, 63, 161);" >Build it:</span>'''
 
== '''<span style="color: rgb(132, 63, 161);">Build it:</span>''' ==


* <code>make</code>
* <code>make</code>
'''<span style="color: rgb(132, 63, 161);" >Install it:</span>'''
 
== '''<span style="color: rgb(132, 63, 161);">Install it:</span>''' ==


* <code>sudo make install</code>
* <code>sudo make install</code>

Revision as of 14:59, 3 March 2024

Proven on:
Logo LMDE.png
6 (Faye)


Building KiCAD from source on LMDE6

The required tools:

  • sudo apt install git cmake cmake-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 7.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-dev
  • sudo apt install iodbc libiodbc2-dev

Set it up:

  • cd kicad/
  • mkdir -p build/release
  • cd build/release
  • cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../../

Build it:

  • make

Install it:

  • sudo make install