|
|
|
@ -1,7 +1,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
How to build kicad using CMAKE. |
|
|
|
19-Dec-2007 |
|
|
|
First Written: 19-Dec-2007 |
|
|
|
Last Revised: 27-Dec-2007 |
|
|
|
|
|
|
|
|
|
|
|
Kicad needs wxWidgets, the multi platform G.U.I. |
|
|
|
@ -11,15 +12,14 @@ sections below.) |
|
|
|
|
|
|
|
|
|
|
|
1) If windows, then install "msys" and "mingw". |
|
|
|
2) If windows, then install "opengl". |
|
|
|
3) If linux, then install "mesa". |
|
|
|
4) Make sure g++ and "make" are in your path. |
|
|
|
5) Install wxWidgets [and build it if on windows]. |
|
|
|
6) Install CMAKE |
|
|
|
7) Install the kicad source tree. |
|
|
|
8) Use cmake to build the kicad makefiles. |
|
|
|
9) Use make to build and install kicad. |
|
|
|
10) Making a "Debug" build. |
|
|
|
2) If linux, then install "mesa". |
|
|
|
3) Make sure g++ and "make" are in your path. |
|
|
|
4) Install wxWidgets [and build it if on windows]. |
|
|
|
5) Install CMAKE |
|
|
|
6) Install the kicad source tree. |
|
|
|
7) Use cmake to build the kicad makefiles. |
|
|
|
8) Use make to build and install kicad. |
|
|
|
9) Making a "Debug" build. |
|
|
|
|
|
|
|
|
|
|
|
===== Step Details ==================================================== |
|
|
|
@ -34,22 +34,17 @@ automake. |
|
|
|
|
|
|
|
----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
2) If windows, then install "opengl". Google around for how to this. It |
|
|
|
might already be installed. |
|
|
|
|
|
|
|
----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
3) If linux, install "mesa". Use your package manager to install the development |
|
|
|
2) If linux, install "mesa". Use your package manager to install the development |
|
|
|
libaries. |
|
|
|
|
|
|
|
----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
4) Make sure g++ and "make" are in your path. |
|
|
|
3) Make sure g++ and "make" are in your path. |
|
|
|
If windows, then try running g++ and make from within your msys bash shell. |
|
|
|
|
|
|
|
----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
5) Install wxWidgets [and build it if on windows]. |
|
|
|
4) Install wxWidgets [and build it if on windows]. |
|
|
|
|
|
|
|
If on linux, use your package manager to install shared object libraries and the |
|
|
|
development versions of the wxWidgets packages which include the C++ headers. An |
|
|
|
@ -83,7 +78,7 @@ restart your msys shell, depending on how you modify your PATH. |
|
|
|
|
|
|
|
----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
6) Install CMAKE. |
|
|
|
5) Install CMAKE. |
|
|
|
If windows, download the installation binary for windows from cmake.org. |
|
|
|
Install that and choose to add cmake to your path during installation. You |
|
|
|
will have to restart and command shells for the new path to take effect. |
|
|
|
@ -96,12 +91,12 @@ command prompt. |
|
|
|
|
|
|
|
----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
7) Install the kicad source tree. |
|
|
|
6) Install the kicad source tree. |
|
|
|
You can use the subversion repository or a tar file for this. See the wiki. |
|
|
|
|
|
|
|
----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
8) Use cmake to create the kicad makefiles. |
|
|
|
7) Use cmake to create the kicad makefiles. |
|
|
|
If windows, go into your msys shell. Linux and windows users both then make |
|
|
|
two "out of source" build directories: |
|
|
|
cd <kicadSource> |
|
|
|
@ -126,7 +121,7 @@ editor and re-run the same cmake command again, but with no |
|
|
|
|
|
|
|
----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
9) Use make to build and install kicad. |
|
|
|
8) Use make to build and install kicad. |
|
|
|
You compile Kicad here. You will only need to do step 8) again when one of the |
|
|
|
CMakeLists.txt files change. If windows, you must be in your msys shell. |
|
|
|
On either platform then: |
|
|
|
@ -138,7 +133,7 @@ You are now done unless you want to make a Debug build. |
|
|
|
|
|
|
|
----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
10) Making a "Debug" build. |
|
|
|
9) Making a "Debug" build. |
|
|
|
|
|
|
|
cd <kicadSource>/debug |
|
|
|
|
|
|
|
|