2012-01-27 18:56:06 +00:00
|
|
|
KiCad installation
|
|
|
|
==================
|
|
|
|
|
|
|
|
The parts of KiCad
|
|
|
|
------------------
|
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
KiCad consists of 3 components:
|
|
|
|
|
|
|
|
kicad - KiCad programs and core files.
|
|
|
|
kicad-doc - Documentation and interactive help (optional package).
|
2021-04-04 06:53:04 +00:00
|
|
|
kicad-library - Schematic symbol, PCB footprint, and 3D model libraries (optional package).
|
2019-12-03 18:51:59 +00:00
|
|
|
|
|
|
|
This repository contains the source code for the main KiCad programs. The documentation
|
|
|
|
and library sources are available at https://gitlab.com/kicad
|
2012-01-27 18:56:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
Installation from binary packages
|
|
|
|
---------------------------------
|
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
Compiled KiCad binaries exist for Windows (8.1, 10), macOS (10.14+), and several
|
|
|
|
Linux distributions (Fedora, Debian, Ubuntu, Arch). These are available from the
|
|
|
|
main KiCad website: https://kicad.org/download/
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
Data files (schematics, boards, libraries) are compatible with all platforms.
|
2012-01-27 18:56:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
Installation from binary packages for Windows
|
|
|
|
---------------------------------------------
|
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
KiCad can be installed anywhere on the system as long as the user has write privileges.
|
2020-12-23 01:38:56 +00:00
|
|
|
Pre-made installers are available on the KiCad website: https://kicad.org/download/windows/
|
2012-01-27 18:56:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
Installation from binary packages for Linux
|
|
|
|
-------------------------------------------
|
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
KiCad comes packaged on many Linux platforms including Debian, Fedora, Ubuntu and Arch,
|
|
|
|
and is available in their respective package repositories. More information can be found on
|
2020-12-23 01:38:56 +00:00
|
|
|
the platform's page at https://kicad.org/download/
|
2012-01-27 18:56:06 +00:00
|
|
|
|
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
Linux install tree
|
2014-10-31 20:44:09 +00:00
|
|
|
-------------------------------------
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
The default locations KiCad uses to install its components on Linux are:
|
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
${prefix}/bin - Binaries (executable files).
|
|
|
|
${prefix}/lib/kicad - Shared libraries.
|
|
|
|
${prefix}/share/doc/kicad - Various documentation.
|
|
|
|
${prefix}/share/doc/kicad/help - Interactive help.
|
|
|
|
${prefix}/share/kicad/demos - Sample schematics and printed boards.
|
|
|
|
${prefix}/share/kicad/template - Template projects and sheets.
|
|
|
|
${prefix}/share/kicad/library - Schematic symbol libraries.
|
|
|
|
${prefix}/share/kicad/modules - PCB footprint libraries.
|
|
|
|
${prefix}/share/kicad/3dmodels - 3D component models (.wrl and .step format).
|
|
|
|
${prefix}/share/kicad/resources - Resource files (images, etc).
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
Warning:
|
|
|
|
Do not change the KiCad tree, or the location of binary files. Otherwise
|
|
|
|
KiCad may not be able to find some or all of its required files.
|
2014-10-31 20:44:09 +00:00
|
|
|
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
macOS KiCad tree
|
|
|
|
----------------
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
System wide files
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
/Library/Application Support/kicad/help
|
|
|
|
/Library/Application Support/kicad/template
|
2019-12-03 18:51:59 +00:00
|
|
|
/Library/Application Support/kicad/library
|
|
|
|
/Library/Application Support/kicad/modules
|
2021-04-04 06:53:04 +00:00
|
|
|
/Library/Application Support/kicad/3dmodels
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
User files can be the same as the system wide files but only inside the user's home directory.
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
$HOME/Library/Application Support/kicad
|
|
|
|
|
|
|
|
Warning:
|
|
|
|
These paths are hardcoded into KiCad, if you put them somewhere else KiCad will not find
|
|
|
|
them when a new project is created.
|
2012-01-27 18:56:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
Installation from source code
|
|
|
|
-----------------------------
|
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
Currently the only supported compilers are GCC on Linux and Windows and Clang on macOS.
|
2015-12-22 14:25:41 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
Some dependencies must be satisfied for the correct installation of KiCad:
|
2015-12-22 14:25:41 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
wxWidgets >= 3.0.0 http://www.wxwidgets.org/
|
2015-12-22 14:25:41 +00:00
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
CMake >= 3.10.0 https://www.cmake.org/
|
2015-12-22 14:25:41 +00:00
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
Boost C++ Libraries >= 1.59 https://www.boost.org/
|
2015-12-22 14:25:41 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
OpenGL >= 2.1
|
|
|
|
Linux: Mesa 3D Graphics Library http://www.mesa3d.org/
|
|
|
|
Windows: built-in
|
2015-12-22 14:25:41 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
Zlib Compression Library http://www.zlib.net/
|
2015-12-22 14:25:41 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
cairo >= 1.12 http://cairographics.org/
|
2015-12-22 14:25:41 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
GLEW http://glew.sourceforge.net/
|
2015-12-22 14:25:41 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
libcurl http://curl.haxx.se/
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
OpenMP (optional) http://openmp.org/
|
2016-09-03 20:04:08 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
GLM >= 9.5.4 http://glm.g-truc.net/
|
2016-09-03 20:04:08 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
pkg-config http://pkgconfig.freedesktop.org/
|
2016-08-10 21:05:16 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
Doxygen (optional) http://www.doxygen.nl
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
Python >= 2.6 (optional) https://python.org/
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
wxPython (optional) http://www.wxpython.org/
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
SWIG >= 3.0 (optional) http://swig.org/
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
libngspice (optional) http://ngspice.sourceforge.net/
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
One of:
|
2020-04-15 16:08:17 +00:00
|
|
|
OCE >= 0.18 (optional) https://github.com/tpaviot/oce
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2020-04-15 16:08:17 +00:00
|
|
|
OCC >= 6.9.0 (optiona) https://www.opencascade.com/content/latest-release
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
Complete documentation for building from source can be found at: https://dev-docs.kicad.org/
|
2012-01-27 18:56:06 +00:00
|
|
|
|
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
Important parameters to CMake
|
2012-01-27 18:56:06 +00:00
|
|
|
-----------------------------
|
|
|
|
|
2021-04-04 06:53:04 +00:00
|
|
|
See https://dev-docs.kicad.org/en/build/compile-options/ for a list of all compile options.
|
2014-02-22 23:17:36 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=<buildtype>
|
2021-04-04 06:53:04 +00:00
|
|
|
<buildtype> may be one of "Debug", "Release", or "RelWithDebInfo".
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=<prefix>
|
|
|
|
Default to "/usr/local".
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
-DwxWidgets_ROOT_DIR=<wxInstallDir>
|
|
|
|
Required for Windows platform.
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
-DwxWidgets_USE_DEBUG=ON
|
|
|
|
Can be used only with -DCMAKE_BUILD_TYPE=Debug
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
-DCMAKE_CXX_FLAGS=<some extra flags>
|
2021-04-04 06:53:04 +00:00
|
|
|
Extra flags for the C++ compiler required for your system.
|
2012-01-27 18:56:06 +00:00
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=ON
|
|
|
|
When more output is wanted use this cmake parameter or call "make VERBOSE=1".
|
2012-01-27 18:56:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
Extra CFLAGS and linker flags
|
|
|
|
-----------------------------
|
|
|
|
|
2019-12-03 18:51:59 +00:00
|
|
|
If you require extra flags for compiler and linker you may give them via
|
|
|
|
environment variables
|
|
|
|
"CXXFLAGS" (c++ compiler)
|
|
|
|
"LDFLAGS" (for linker)
|
|
|
|
"CFLAGS" (for c-compiler, not needed in kdesvn build)
|