Master SIAME | Université Toulouse 3

Internet of things and System on Chip

Master SIAME | Université Toulouse 3

Internet of things and System on Chip

User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

info:pcb [2015/08/26 20:37] (current)
Line 1: Line 1:
 +====== PCB toolchain: KiCAD ======
 +\\
 +A **P**rinted **C**ircuit **B**oard ([[http://​en.wikipedia.org/​wiki/​Printed_circuit_board|PCB]]) is a tailored electronic board you design to best match your needs. We won't delve here within the reasons that will (or not) lead you to start to make your own board, but hey ... it's fun and you will probably learn something ;-)\\
 +
 +<wrap em>Why KiCAD ?</​wrap>​\\
 +Since there exists some //cheap// and very well-known PCB toolchains used for tenth years by hobbists all around the world ([[http://​www.cadsoftusa.com|Eagle PCB]]), why should you use KiCAD ? what are the KiCAD characteristics that matter ?\\
 +  * 100% open-source,​
 +  * Professional grade,
 +  * no limitations (unlike Eagle),
 +  * Targets both MAC, Windows and (of course) Linux users,
 +  * Supported by [[http://​hackaday.com/​2014/​07/​14/​cern-shows-off-new-kicad-module-editor/​|CERN]],​
 +  * Growing popularity alongst the Open-Hardware community :-),
 +  * ...
 +
 +===== Installing KiCAD @ Fedora & RHEL clones =====
 +Okay, if you are using Fedora 21 or latest Ubuntu ... this is just a matter of package install like\\
 +''​root@fc21 [~] yum -y install kicad''​
 +\\
 +However, you won't grab all of the innovative features since the compiled package are always min. 6 months away from so the current version so that's why I would recommand building KiCAD from source.\\
 +
 +**[1] retrieve the installation script**\\
 +This script provided by the KiCAD team will take care of everything ranging from installing dependencies to building and installing the software along with its libraries.\\
 +To retrieve this script, go directly to the [[http://​www.kicad-pcb.org/​display/​KICAD/​Download|KiCAD website]] download zone.
 +\\
 +
 +**[2] KiCAD install script customization**\\
 +Being now more confident and having some background, yes I have spent hours recompiling KiCAD because of an annoying bug ... that was in fact coming from a <wrap em>​mismatch</​wrap>​ between latest <wrap em>​KiCAD</​wrap>​ and <wrap em>​wxWidgets-3.0 libraries</​wrap>​.\\
 +
 +At this time of writing (2014,​Dec.),​ you have to modify the install script to change dependencies from wxWidget-3.0 to wxWidget (2.8 in fact).\\
 +To do this, you just have to replace all of the wxGTK3* to wxGTK*, like this ''​sed -i '​s/​GTK3/​GTK/​g'​ kicad-install.sh''​\\
 +
 +Others modifications are described below:\\
 +
 +<file bash kicad-install.sh>​
 +1   #​!/​bin/​bash -e
 +2   # Install KiCad from source onto either:
 +3   # ​ -> a Ubuntu/​Debian/​Mint or
 +4   # ​ -> a Red Hat
 +5   # compatible linux system.
 +   ​......
 +   ​......
 +38 STABLE=5054 ​            # a sensible mix of features and stability
 +39 TESTING=last:​1 ​         # the most recent
 +40 
 +41 # Set this to STABLE or TESTING or other known revision number:
 +42 REVISION=$STABLE
 +43 #​REVISION=$TESTING
 +   ​......
 +136         ​prerequisite_list="​
 +                  ......
 +149             ​wxGTK-devel
 +150         "​
 +......
 +......
 +</​file>​
 +\\
 +
 +Now you've reached this point, compiling and installing KiCAD is just a matter of launching the script as <wrap em>​root</​wrap>:​\\
 +
 +<​code>​
 +root@fc21 [~] ./​kicad-install --install-or-update
 +</​code>​
 +
 +Done!
 +\\
 +
 +**[3] Setup KiCAD**\\
 +Using KiCAD you'll need both libraries coming from your current installation of KiCAD and from GIT repository.\\
 +To add libs from GIT repo, you must add the following environment variable to your ''​~/​.bashrc''​\\
 +
 +<​code>​
 +export KIGITHUB="​https://​github.com/​KiCad"​
 +</​code>​
 +