2011-09-06 07:02:18 +00:00
|
|
|
Contribute to KiCad (under Linux)
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
1) make sure you have all the dependencies of KiCad:
|
2013-06-09 16:36:54 +00:00
|
|
|
sudo apt-get install debhelper dpatch libx11-dev
|
|
|
|
sudo apt-get install libglu1-mesa-dev libgl1-mesa-dev mesa-common-dev
|
|
|
|
sudo apt-get install libwxbase2.8-dev libwxgtk2.8-dev libboost-dev fakeroot
|
|
|
|
sudo apt-get install cmake bzr
|
|
|
|
sudo apt-get install cmake bzr bzrtools
|
2011-09-06 07:02:18 +00:00
|
|
|
|
|
|
|
2) initialize Bazaar:
|
2013-06-09 16:36:54 +00:00
|
|
|
bzr whoami "John Doe <john.doe@gmail.com>"
|
2011-09-06 07:02:18 +00:00
|
|
|
|
|
|
|
3) get LATEST KiCad source tree and name it, for instance, "kicad_john":
|
2013-06-09 16:36:54 +00:00
|
|
|
cd ~/
|
|
|
|
bzr branch lp:kicad kicad_john
|
2011-09-06 07:02:18 +00:00
|
|
|
|
2013-06-10 13:23:58 +00:00
|
|
|
4) Read coding_style_policy.pdf, in <kicad_sources>/Documentation,
|
2013-06-09 16:36:54 +00:00
|
|
|
and other docs.
|
2011-09-06 07:02:18 +00:00
|
|
|
|
|
|
|
5) Modify/add source code.
|
2013-06-09 16:36:54 +00:00
|
|
|
cd kicad_john
|
|
|
|
gedit .......
|
2011-09-06 07:02:18 +00:00
|
|
|
|
|
|
|
6) Compile:
|
2013-06-09 16:36:54 +00:00
|
|
|
cd kicad_john
|
|
|
|
mkdir build; cd build
|
|
|
|
cmake ../ -DKICAD_TESTING_VERSION=ON -DCMAKE_BUILD_TYPE=Debug
|
2013-04-10 07:23:20 +00:00
|
|
|
to build a debug version
|
|
|
|
or
|
2013-06-09 16:36:54 +00:00
|
|
|
cmake ../ -DKICAD_TESTING_VERSION=ON -DCMAKE_BUILD_TYPE=Release
|
2013-04-10 07:23:20 +00:00
|
|
|
to build a release version
|
2013-06-09 16:36:54 +00:00
|
|
|
make
|
2011-09-06 07:02:18 +00:00
|
|
|
|
|
|
|
7) Repeat step 5 and 6 until satisfied.
|
|
|
|
|
2013-04-10 07:23:20 +00:00
|
|
|
8) Create a patch:
|
2013-06-09 16:36:54 +00:00
|
|
|
in kicad_john:
|
2013-04-10 07:23:20 +00:00
|
|
|
if some files are added: bzr add [FILE...]
|
2013-06-09 16:36:54 +00:00
|
|
|
bzr diff > my_changes.patch
|
2011-09-06 07:02:18 +00:00
|
|
|
|
2013-04-10 07:23:20 +00:00
|
|
|
9) Send the patch file "my_changes.patch" to the KiCad developers mailing list.
|
2011-09-06 07:02:18 +00:00
|
|
|
in the subject of the e-mail include the keyword "[PATCH]".
|
|
|
|
in the body of the e-mail clearly explain what you have done.
|
|
|
|
|
|
|
|
|
|
|
|
for more info see INSTALL.txt.
|
|
|
|
|