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
|
|
|
|
2014-02-21 07:54:13 +00:00
|
|
|
3) get latest KiCad source tree:
|
2013-06-09 16:36:54 +00:00
|
|
|
cd ~/
|
2014-02-21 07:54:13 +00:00
|
|
|
bzr branch lp:kicad kicad.bzr
|
2011-09-06 07:02:18 +00:00
|
|
|
|
2014-02-21 07:54:13 +00:00
|
|
|
this should leave you with the folder kicad.bzr
|
2011-09-06 07:02:18 +00:00
|
|
|
|
2014-02-21 07:54:13 +00:00
|
|
|
4) Read coding_style_policy.pdf, in kicad.bzr/Documentation,
|
|
|
|
and other docs.
|
|
|
|
|
|
|
|
5) create a local (branch) copy of the KiCad project
|
|
|
|
bzr branch ./kicad.bzr ./kicad.my_contrib
|
|
|
|
|
|
|
|
6) Modify/add source code in
|
|
|
|
cd kicad.my_contrib
|
2013-06-09 16:36:54 +00:00
|
|
|
gedit .......
|
2014-02-21 07:54:13 +00:00
|
|
|
if you need to create and add the file foo.cpp do so and:
|
|
|
|
bzr add foo.cpp
|
|
|
|
if you need to delete files:
|
|
|
|
bzr rm foo.cpp
|
2011-09-06 07:02:18 +00:00
|
|
|
|
2014-02-21 07:54:13 +00:00
|
|
|
7) Compile:
|
|
|
|
cd kicad.my_contrib
|
2013-06-09 16:36:54 +00:00
|
|
|
mkdir build; cd build
|
2013-08-06 23:21:40 +00:00
|
|
|
cmake ../ -DCMAKE_BUILD_TYPE=Debug
|
2014-02-21 07:54:13 +00:00
|
|
|
to build a debug version
|
|
|
|
or
|
2013-08-06 23:21:40 +00:00
|
|
|
cmake ../ -DCMAKE_BUILD_TYPE=Release
|
2014-02-21 07:54:13 +00:00
|
|
|
to build a release version
|
|
|
|
make -j8
|
2011-09-06 07:02:18 +00:00
|
|
|
|
2014-02-21 07:54:13 +00:00
|
|
|
8) Repeat step 6 and 7 until satisfied.
|
2011-09-06 07:02:18 +00:00
|
|
|
|
2014-02-21 07:54:13 +00:00
|
|
|
9) Create a patch file:
|
|
|
|
cd kicad.my_contrib
|
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.
|
|
|
|
|