As promised
1/ First download the source code:
sudo apt-get install bzr
bzr checkout lp:kicad kicad.bzr
2/ Next download the build tools
sudo apt-get install build-essential checkinstall cmake doxygen zlib1g-dev
sudo apt-get install debhelper dpatch libx11-dev libglu1-mesa-dev libgl1-mesa-dev messa-common-dev libwxbase2.8-dev libwxgtk2.8-dev libboost-dev fakeroot subversion libboost-serialization-dev
sudo apt-get build-dep kicad
3/ Once the source code has downloaded and all the build tools are installed, go into the new source code directory:
cd kicad.bzr
4/ To keep things cleaner, it's suggested that you create a build directory for the build files:
mkdir kicad-build
cd kicad-build
5/ Kicad uses the CMake tool, so we must run that first:
cmake -DKICAD_TESTING_VERSION=ON ../
6/ CMake generates standard Makefiles, so we proceed in the usual way:
make
If you have multiple processor cores in your computer, you can do some of the work in parallel, by adding -j N to your make line. Replace N with the number of cores in your computer. My computer has two cores, so I used this command to more quickly build Kicad:
make -j 2
7/ Once the build is finished, install the Kicad files:
sudo make install
Now, you can run kicad and check that everything is working.
--------------------------------------------------------------------
8/ Once a few days or weeks have passed and you want to get back up to date, start by updating your copy of the Kicad source code:
cd ~/kicad.bzr
bzr update
You probably want to remove all the old build files:
cd build
rm -rf *
Continue as before, for compiling and installing Kicad:
cmake -DKICAD_TESTING_VERSION=ON ../
make
sudo make install
We hope this guide was useful and accurate! If you run into any trouble, please leave a comment below and we’ll do our best to help you out.
If you want to also install the Kicad library of parts, you can use these commands:
bzr checkout lp:~kicad-lib-committers/kicad/library kicad-library.bzr
cd kicad-library.bzr/
mkdir build
cd build/
cmake ../
sudo make install
This method has been derived from the wayneandlayne link above. I have added the commands needed to download missing packages and made one or two corrections. All thats needed now is for someone to write a shell script that can be run easily.
Please try this out for yourself.
David.