You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

553 lines
26 KiB

10 years ago
10 years ago
  1. # Building KiCad from Source #
  2. If you are a user and not a developer, please consider using one of the prebuilt packages
  3. of KiCad which can be found at the [download][] page on the [KiCad website][]. Building KiCad
  4. from source is not for the faint of heart and is not recommended unless you have reasonable
  5. software development experience. This document contains the instructions on how to build KiCad
  6. from source on the supported platforms. It is not intended as a guide for installing or building
  7. [library dependencies](#library_dependencies). Please consult your platforms documentation for
  8. installing packages or the source code when building the library dependencies. Currently the
  9. supported platforms are Windows Versions 7-10, just about any version of Linux, and macOS
  10. 10.9-10.13. You may be able to build KiCad on other platforms but it is not supported. On
  11. Windows and Linux the [GNU GCC][] is the only supported compiler and on macOS [Clang][] is the
  12. only supported compiler.
  13. [TOC]
  14. # Development Tools # {#development_tools}
  15. Before you begin building KiCad, there are a few tools required in addition to your compiler.
  16. Some of these tools are required to build from source and some are optional.
  17. ## CMake Build Configuration Tool ## {#cmake}
  18. [CMake][] is the build configuration and makefile generation tool used by KiCad. It is required.
  19. ## Git Version Control System ## {#git}
  20. The official source code repository is hosted on [GitLab][] and requires [git][] to get
  21. the latest source. If you prefer to use [GitHub][] there is a read only mirror of the official
  22. KiCad repository. The previous official hosting location at [Launchpad][] is still active as
  23. a mirror. Changes should be submitted as [merge requests][] via GitLab. The development team
  24. will not review changes submitted on GitHub or Launchpad as those platforms are mirrors only.
  25. ## Doxygen Code Documentation Generator ## {#doxygen_section}
  26. The KiCad source code is documented using [Doxygen][] which parses the KiCad source code files
  27. and builds a dependency tree along with the source documentation into HTML. Doxygen is only
  28. required if you are going to build the KiCad documentation.
  29. ## SWIG Simplified Wrapper and Interface Generator ## {#swig}
  30. [SWIG][] is used to generate the Python scripting language extensions for KiCad. SWIG is not
  31. required if you are not going to build the KiCad scripting extension.
  32. # Library Dependencies # {#library_dependencies}
  33. This section includes a list of library dependencies required to build KiCad. It does not
  34. include any dependencies of the libraries. Please consult the library's documentation for any
  35. additional dependencies. Some of these libraries are optional depending on you build
  36. configuration. This is not a guide on how to install the library dependencies using you systems
  37. package management tools or how to build the library from source. Consult the appropriate
  38. documentation to perform these tasks.
  39. ## wxWidgets Cross Platform GUI Library## {#wxwidgets}
  40. [wxWidgets][] is the graphical user interface (GUI) library used by KiCad. The current minimum
  41. version is 3.0.0. However, 3.0.2 should be used whenever possible as there are some known bugs
  42. in prior versions that can cause problems on some platforms. Please note that there are also
  43. some platform specific patches that must be applied before building wxWidgets from source. These
  44. patches can be found in the [patches folder][] in the KiCad source. These patches are named by
  45. the wxWidgets version and platform name they should be applied against. wxWidgets must be built
  46. with the --with-opengl option. If you installed the packaged version of wxWidgets on your system,
  47. verify that it was built with this option.
  48. ## Boost C++ Libraries ## {#boost}
  49. The [Boost][] C++ library is required only if you intend to build KiCad with the system installed
  50. version of Boost instead of the default internally built version. If you use the system installed
  51. version of Boost, version 1.56 or greater is required. Please note there are some platform
  52. specific patches required to build a working Boost library. These patches can be found in the
  53. [patches folder][] in the KiCad source. These patches are named by the platform name they should
  54. be applied against.
  55. ## GLEW OpenGL Extension Wrangler Library ## {#glew}
  56. The [OpenGL Extension Wrangler][GLEW] is an OpenGL helper library used by the KiCad graphics
  57. abstraction library [GAL] and is always required to build KiCad.
  58. ## GLM OpenGL Mathematics Library ## {#glm}
  59. The [OpenGL Mathematics Library][GLM] is an OpenGL helper library used by the KiCad graphics
  60. abstraction library [GAL] and is always required to build KiCad.
  61. ## GLUT OpenGL Utility Toolkit Library ## {#glut}
  62. The [OpenGL Utility Toolkit][GLUT] is an OpenGL helper library used by the KiCad graphics
  63. abstraction library [GAL] and is always required to build KiCad.
  64. ## Cairo 2D Graphics Library ## {#cairo}
  65. The [Cairo][] 2D graphics library is used as a fallback rendering canvas when OpenGL is not
  66. available and is always required to build KiCad.
  67. ## Python Programming Language ## {#python}
  68. The [Python][] programming language is used to provide scripting support to KiCad. It needs
  69. to be installed unless the [KiCad scripting](#kicad_scripting) build configuration option is
  70. disabled.
  71. ## wxPython Library ## {#wxpython}
  72. The [wxPython][] library is used to provide a scripting console for Pcbnew. It needs to be
  73. installed unless the [wxPython scripting](#wxpython_scripting) build configuration option is
  74. disabled. When building KiCad with wxPython support, make sure the version of the wxWidgets
  75. library and the version of wxPython installed on your system are the same. Mismatched versions
  76. have been known to cause runtime issues.
  77. ## Curl Multi-Protocol File Transfer Library ## {#curl}
  78. The [Curl Multi-Protocol File Transfer Library][libcurl] is used to provide secure internet
  79. file transfer access for the [GitHub][] plug in. This library needs to be installed unless
  80. the GitHub plug build option is disabled.
  81. ## OpenCascade Library ## {#oce}
  82. The [OpenCascade Community Edition (OCE)][liboce] is used to provide support for loading and saving
  83. 3D model file formats such as STEP. This library needs to be installed unless the OCE build
  84. option is disabled.
  85. [Open CASCSADE Technology (OCC)][libocc] should also work as an alternative to OCE. Selection of
  86. library Cascade library can be specified at build time. See the [STEP/IGES support](#oce_opt)
  87. section.
  88. ## Ngspice Library ## {#ngspice}
  89. The [Ngspice Library][libngspice] is used to provide Spice simulation support in the schematic
  90. editor. Make sure the the version of ngspice library used was built with the--with-ngshared
  91. option. This library needs to be installed unless the Spice build option is disabled.
  92. # KiCad Build Configuration Options # {#build_opts}
  93. KiCad has many build options that can be configured to build different options depending on
  94. the availability of support for each option on a given platform. This section documents
  95. these options and their default values.
  96. ## Scripting Support ## {#scripting_opt}
  97. The KICAD_SCRIPTING option is used to enable building the Python scripting support into Pcbnew.
  98. This options is enabled by default, and will disable all other KICAD_SCRIPTING_* options when
  99. it is disabled.
  100. ## Python 3 Scripting Support ## {#python3}
  101. The KICAD_SCRIPTING_PYTHON3 option is used to enable using Python 3 for the scripting support
  102. instead of Python 2. This option is disabled by default and only is relevant if
  103. [KICAD_SCRIPTING](#scripting_opt) is enabled.
  104. ## Scripting Module Support ## {#scripting_mod_opt}
  105. The KICAD_SCRIPTING_MODULES option is used to enable building and installing the Python modules
  106. supplied by KiCad. This option is enabled by default, but will be disabled if
  107. [KICAD_SCRIPTING](#scripting_opt) is disabled.
  108. ## wxPython Scripting Support ## {#wxpython_opt}
  109. The KICAD_SCRIPTING_WXPYTHON option is used to enable building the wxPython interface into
  110. Pcbnew including the wxPython console. This option is enabled by default, but will be disabled if
  111. [KICAD_SCRIPTING](#scripting_opt) is disabled.
  112. ## wxPython Phoenix Scripting Support ## {#wxpython_phoenix}
  113. The KICAD_SCRIPTING_WXPYTHON_PHOENIX option is used to enable building the wxPython interface with
  114. the new Phoenix binding instead of the legacy one. This option is disabled by default, and
  115. enabling it requires [KICAD_SCRIPTING](#scripting_opt) to be enabled.
  116. ## Python Scripting Action Menu Support ## {#python_action_menu_opt}
  117. The KICAD_SCRIPTING_ACTION_MENU option allows Python scripts to be added directly to the Pcbnew
  118. menu. This option is enabled by default, but will be disabled if
  119. [KICAD_SCRIPTING](#scripting_opt) is disabled. Please note that this option is highly
  120. experimental and can cause Pcbnew to crash if Python scripts create an invalid object state
  121. within Pcbnew.
  122. ## GitHub Plugin ## {#github_opt}
  123. The BUILD_GITHUB_PLUGIN option is used to control if the GitHub plug in is built. This option is
  124. enabled by default.
  125. ## Integrated Spice simulator ## {#spice_opt}
  126. The KICAD_SPICE option is used to control if the Spice simulator interface for Eeschema is
  127. built. When this option is enabled, it requires [ngspice][] to be available as a shared
  128. library. This option is enabled by default.
  129. ## STEP/IGES support for the 3D viewer ## {#oce_opt}
  130. The KICAD_USE_OCE is used for the 3D viewer plugin to support STEP and IGES 3D models. Build tools
  131. and plugins related to OpenCascade Community Edition (OCE) are enabled with this option. When
  132. enabled it requires [liboce][] to be available, and the location of the installed OCE library to be
  133. passed via the OCE_DIR flag. This option is enabled by default.
  134. Alternatively KICAD_USE_OCC can be used instead of OCE. Both options are not supposed to be enabled
  135. at the same time.
  136. ## Development Analysis Tools ## {#dev_tools}
  137. KiCad can be compiled with support for several features to aid in the catching and debugging of
  138. runtime memory issues
  139. ### Valgrind support
  140. The KICAD_USE_VALGRIND option is used to enable Valgrind's stack annotation feature in the tool framework.
  141. This provides the ability for Valgrind to trace memory allocations and accesses in the tool framework
  142. and reduce the number of false positives reported. This option is disabled by default.
  143. ### C++ standard library debugging
  144. KiCad provides two options to enable debugging assertions contained in the GCC C++ standard library:
  145. KICAD_STDLIB_DEBUG and KICAD_STDLIB_LIGHT_DEBUG. Both these options are disabled by default, and only
  146. one should be turned on at a time with KICAD_STDLIB_DEBUG taking precedence.
  147. The KICAD_STDLIB_LIGHT_DEBUG option enables the light-weight standard library assertions by passing
  148. `_GLIBCXX_ASSERTIONS ` into CXXFLAGS. This enables things such as bounds checking on strings, arrays
  149. and vectors, as well as null pointer checks for smart pointers.
  150. The KICAD_STDLIB_DEBUG option enables the full set of standard library assertions by passing
  151. `_GLIBCXX_DEBUG` into CXXFLAGS. This enables full debugging support for the standard library.
  152. ### Address Sanitizer support
  153. The KICAD_SANITIZE option enables Address Sanitizer support to trace memory allocations and
  154. accesses to identify problems. This option is disabled by default. The Address Sanitizer
  155. contains several runtime options to tailor its behavior that are described in more detail in its
  156. [documentation](https://github.com/google/sanitizers/wiki/AddressSanitizerFlags).
  157. This option is not supported on all build systems, and is known to have problems when using
  158. mingw.
  159. ## Demos and Examples ## {#demo_install_opt}
  160. The KiCad source code includes some demos and examples to showcase the program. You can choose
  161. whether install them or not with the KICAD_INSTALL_DEMOS option. You can also select where to
  162. install them with the KICAD_DEMOS variable. On Linux the demos are installed in
  163. $PREFIX/share/kicad/demos by default.
  164. ## Quality assurance (QA) unit tests ## {#quality_assurance_tests_opt}
  165. The KICAD_BUILD_QA_TESTS option allows building unit tests binaries for quality assurance as part
  166. of the default build. This option is enabled by default.
  167. If this option is disabled, the QA binaries can still be built by manually specifying the target.
  168. For example, with `make`:
  169. * Build all QA binaries: `make qa_all`
  170. * Build a specific test: `make qa_pcbnew`
  171. * Build all unit tests: `make qa_all_tests`
  172. * Build all test tool binaries: `make qa_all_tools`
  173. For more information about testing KiCad, see [this page](testing.md).
  174. ## KiCad Build Version ## {#build_version_opt}
  175. The KiCad version string is defined by the output of `git describe --dirty` when git is available
  176. or the version string defined in CMakeModules/KiCadVersion.cmake with the value of
  177. KICAD_VERSION_EXTRA appended to the former. If the KICAD_VERSION_EXTRA variable is not defined,
  178. it is not appended to the version string. If the KICAD_VERSION_EXTRA variable is defined it
  179. is appended along with a leading '-' to the full version string as follows:
  180. (KICAD_VERSION[-KICAD_VERSION_EXTRA])
  181. The build script automatically creates the version string information from the [git][] repository
  182. information as follows:
  183. (5.0.0-rc2-dev-100-g5a33f0960)
  184. |
  185. output of `git describe --dirty` if git is available.
  186. ## KiCad Config Directory ## {#config_dir_opt}
  187. The default KiCad configuration directory is `kicad`. On Linux this is located at
  188. `~/.config/kicad`, on MSW, this is `C:\Documents and Settings\username\Application Data\kicad` and
  189. on MacOS, this is `~/Library/Preferences/kicad`. If the installation package would like to, it may
  190. specify an alternate configuration name instead of `kicad`. This may be useful for versioning
  191. the configuration parameters and allowing the use of, e.g. `kicad5` and `kicad6` concurrently without
  192. losing configuration data.
  193. This is set by specifying the KICAD_CONFIG_DIR string at compile time.
  194. # Getting the KiCad Source Code ## {#getting_src}
  195. There are several ways to get the KiCad source. If you want to build the stable version you
  196. can down load the source archive from the [GitLab][] repository. Use tar or some
  197. other archive program to extract the source on your system. If you are using tar, use the
  198. following command:
  199. tar -xaf kicad_src_archive.tar.xz
  200. If you are contributing directly to the KiCad project on GitLab, you can create a local
  201. copy on your machine by using the following command:
  202. git clone https://gitlab.com/kicad/code/kicad.git
  203. Here is a list of source links:
  204. Stable release archives: https://kicad-pcb.org/download/source/
  205. Development branch: https://gitlab.com/kicad/code/kicad/tree/master
  206. GitHub mirror: https://github.com/KiCad/kicad-source-mirror
  207. # Building KiCad on Linux # {#build_linux}
  208. To perform a full build on Linux, run the following commands:
  209. cd <your kicad source mirror>
  210. mkdir -p build/release
  211. mkdir build/debug # Optional for debug build.
  212. cd build/release
  213. cmake -DCMAKE_BUILD_TYPE=Release \
  214. ../../
  215. make
  216. sudo make install
  217. If the CMake configuration fails, determine the missing dependencies and install them on your
  218. system. By default, CMake sets the install path on Linux to /usr/local. Use the
  219. CMAKE_INSTALL_PREFIX option to specify a different install path.
  220. # Building KiCad on Windows # {#build_windows}
  221. The preferred Windows build environment is [MSYS2][]. The [MinGW][] build environment is still
  222. supported but it is not recommended because the developer is responsible for building *all* of
  223. the dependencies from source which is a huge and frustrating undertaking. The [MSYS2][] project
  224. provides packages for all of the require dependencies to build KiCad. To setup the [MSYS2][]
  225. build environment, depending on your system download and run either the [MSYS2 32-bit Installer][]
  226. or the [MSYS2 64-bit Installer][]. After the installer is finished, update to the latest
  227. package versions by running the `msys2_shell.cmd` file located in the MSYS2 install path and
  228. running the command `pacman -Syu`. If the msys2-runtime package is updated, close the shell
  229. and run `msys2_shell.cmd`.
  230. ## Building using MSYS2 ## {#msys2_build}
  231. The following commands assume you are building for 64-bit Windows, and that you already have
  232. the KiCad source code in a folder called `kicad-source` in your home directory. See below
  233. for changes if you need to build for 32-bit instead. Run `mingw64.exe` from the MSYS2
  234. install path. At the command prompt run the the following commands:
  235. pacman -S base-devel \
  236. git \
  237. mingw-w64-x86_64-cmake \
  238. mingw-w64-x86_64-doxygen \
  239. mingw-w64-x86_64-gcc \
  240. mingw-w64-x86_64-python2 \
  241. mingw-w64-x86_64-pkg-config \
  242. mingw-w64-x86_64-swig \
  243. mingw-w64-x86_64-boost \
  244. mingw-w64-x86_64-cairo \
  245. mingw-w64-x86_64-glew \
  246. mingw-w64-x86_64-curl \
  247. mingw-w64-x86_64-wxPython \
  248. mingw-w64-x86_64-wxWidgets \
  249. mingw-w64-x86_64-toolchain \
  250. mingw-w64-x86_64-glm \
  251. mingw-w64-x86_64-oce \
  252. mingw-w64-x86_64-ngspice
  253. cd kicad-source
  254. mkdir -p build/release
  255. mkdir build/debug # Optional for debug build.
  256. cd build/release
  257. cmake -DCMAKE_BUILD_TYPE=Release \
  258. -G "MSYS Makefiles" \
  259. -DCMAKE_PREFIX_PATH=/mingw64 \
  260. -DCMAKE_INSTALL_PREFIX=/mingw64 \
  261. -DDEFAULT_INSTALL_PATH=/mingw64 \
  262. ../../
  263. make install
  264. For 32-bit builds, run `mingw32.exe` and change `x86_64` to `i686` in the package names and
  265. change the paths in the cmake configuration from `/mingw64` to `/mingw32`.
  266. For debug builds, run the cmake command with `-DCMAKE_BUILD_TYPE=Debug` from the `build/debug` folder.
  267. ## Known MSYS2 Build Issues ## {#known_issues_msys2}
  268. There are some known issues that are specific to MSYS2. This section provides a list of the
  269. currently known issues when building KiCad using MSYS2.
  270. ### 64-bit Package of Boost 1.59 ### {#ki_msys2_64bit_boost}
  271. The context library of the x86_64 package of Boost version 1.59 is broken and will cause KiCad
  272. to crash. You must downgrade to version 1.57 by running the command:
  273. pacman -U /var/cache/pacman/pkg/mingw-w64-x86_64-boost-1.57.0-4-any.pkg.tar.xz
  274. If the file mingw-w64-x86_64-boost-1.57.0-4-any.pkg.tar.xz is no longer in your pacman cache,
  275. you will have to download it from the [MSYS2 64-bit SourceForge repo][]. You should also
  276. configure pacman to prevent upgrading the 64-bit Boost package by adding:
  277. IgnorePkg = mingw-w64-x86_64-boost
  278. to your /etc/pacman.conf file.
  279. ### Building with Boost 1.70 ### {#ki_msys2_boost_1_70}
  280. There is an issue building KiCad with Boost version 1.70 due to CMake not defining the proper
  281. link libraries during configuration. Boost 1.70 can be used but `-DBoost_NO_BOOST_CMAKE=ON`
  282. needs to be added during CMake configuration to insure the link libraries are properly generated.
  283. ### Building OCE from source
  284. KiCad requires OCE by default, and the version installed by `pacman` can cause build errors in
  285. x86_64 systems as of March 2018. In order to work around this, you can build OCE from source on
  286. these systems. Building OCE on Windows requires that you place the source code in a very short
  287. directory path, otherwise you will run into errors caused by the maximum path length on Windows.
  288. In the example below, the `MINGW-packages` repository is cloned to `/c/mwp`, which is equivalent to
  289. `C:\mwp` in Windows path terminology. You may wish to change the destination of the `git clone`
  290. command if you do not want to place it on the root of your C drive, but if you run in to strange
  291. compilation errors about missing files, it is probably because your path is too long.
  292. git clone https://github.com/Alexpux/MINGW-packages /c/mwp
  293. cd /c/mwp/mingw-w64-oce
  294. makepkg-mingw -is
  295. # Building KiCad on macOS # {#build_osx}
  296. As of V5, building and packaging for macOS can be done using [kicad-mac-builder][],
  297. which downloads, patches, builds, and packages for macOS. It is used to create the official
  298. releases and nightlies, and it reduces the complexity of setting up a build environment to a command
  299. or two. Usage of kicad-mac-builder is detailed at on its website.
  300. If you wish to build without kicad-mac-builder, please use the following and its source code
  301. as reference. Building on macOS requires building dependency libraries that require patching
  302. in order to work correctly.
  303. In the following set of commands, replace the macOS version number (i.e. 10.11) with the desired
  304. minimum version. It may be easiest to build for the same version you are running.
  305. KiCad currently won't work with a stock version of wxWidgets that can be downloaded or
  306. installed by package managers like MacPorts or Homebrew. To avoid having to deal with
  307. patches a [KiCad fork of wxWidgets][] is being maintained on GitHub. All the needed patches
  308. and some other fixes/improvements are contained in the `kicad/macos-wx-3.0` branch.
  309. To perform a wxWidgets build, execute the following commands:
  310. cd <your wxWidgets build folder>
  311. git clone -b kicad/macos-wx-3.0 https://gitlab.com/kicad/code/wxWidgets.git
  312. mkdir wx-build
  313. cd wx-build
  314. ../wxWidgets/configure \
  315. --prefix=`pwd`/../wx-bin \
  316. --with-opengl \
  317. --enable-aui \
  318. --enable-html \
  319. --enable-stl \
  320. --enable-richtext \
  321. --with-libjpeg=builtin \
  322. --with-libpng=builtin \
  323. --with-regex=builtin \
  324. --with-libtiff=builtin \
  325. --with-zlib=builtin \
  326. --with-expat=builtin \
  327. --without-liblzma \
  328. --with-macosx-version-min=10.11 \
  329. --enable-universal-binary=i386,x86_64 \
  330. CC=clang \
  331. CXX=clang++
  332. make
  333. make install
  334. If everything works you will find the wxWidgets binaries in `<your wxWidgets build folder>/wx-bin`.
  335. Now, build a basic KiCad without Python scripting using the following commands:
  336. cd <your kicad source mirror>
  337. mkdir -p build/release
  338. mkdir build/debug # Optional for debug build.
  339. cd build/release
  340. cmake -DCMAKE_C_COMPILER=clang \
  341. -DCMAKE_CXX_COMPILER=clang++ \
  342. -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11 \
  343. -DwxWidgets_CONFIG_EXECUTABLE=<your wxWidgets build folder>/wx-bin/bin/wx-config \
  344. -DKICAD_SCRIPTING=OFF \
  345. -DKICAD_SCRIPTING_MODULES=OFF \
  346. -DKICAD_SCRIPTING_WXPYTHON=OFF \
  347. -DCMAKE_INSTALL_PREFIX=../bin \
  348. -DCMAKE_BUILD_TYPE=Release \
  349. ../../
  350. make
  351. make install
  352. If the CMake configuration fails, determine the missing dependencies and install them on your
  353. system or disable the corresponding KiCad feature. If everything works you will get self-contained
  354. application bundles in the `build/bin` folder.
  355. Building KiCad with Python scripting is more complex and won't be covered in detail here.
  356. You will have to build wxPython against the wxWidgets source of the KiCad fork - a stock wxWidgets
  357. that might be bundled with the wxPython package won't work. Please see wxPython documentation
  358. or [macOS bundle build scripts][] (`compile_wx.sh`) on how to do this. Then, use a CMake
  359. configuration as follows to point it to your own wxWidgets/wxPython:
  360. cmake -DCMAKE_C_COMPILER=clang \
  361. -DCMAKE_CXX_COMPILER=clang++ \
  362. -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
  363. -DwxWidgets_CONFIG_EXECUTABLE=<your wxWidgets build folder>/wx-bin/bin/wx-config \
  364. -DPYTHON_EXECUTABLE=<path-to-python-exe>/python \
  365. -DPYTHON_SITE_PACKAGE_PATH=<your wxWidgets build folder>/wx-bin/lib/python2.7/site-packages \
  366. -DCMAKE_INSTALL_PREFIX=../bin \
  367. -DCMAKE_BUILD_TYPE=Release \
  368. ../../
  369. # Known Issues # {#known_issues}
  370. There are some known issues that effect all platforms. This section provides a list of the
  371. currently known issues when building KiCad on any platform.
  372. ## Boost C++ Library Issues ## {#boost_issue}
  373. As of version 5 of [GNU GCC][], using the default configuration of downloading, patching, and
  374. building of Boost 1.54 will cause the KiCad build to fail. Therefore a newer version of Boost
  375. must be used to build KiCad. If your system has Boost 1.56 or greater installed, you job is
  376. straight forward. If your system does not have Boost 1.56 or greater installed, you will have
  377. to download and [build Boost][] from source. If you are building Boost on windows using [MinGW][]
  378. you will have to apply the Boost patches in the KiCad source [patches folder][].
  379. [download]: http://kicad-pcb.org/download/
  380. [KiCad website]: http://kicad-pcb.org/
  381. [GNU GCC]: https://gcc.gnu.org/
  382. [Clang]: http://clang.llvm.org/
  383. [CMake]: https://cmake.org/
  384. [Launchpad]: https://code.launchpad.net/kicad/
  385. [GIT]: https://git-scm.com/
  386. [GitHub]: https://github.com/KiCad/kicad-source-mirror
  387. [GitLab]: https://gitlab.com/kicad/code/kicad
  388. [ngspice]: http://ngspice.sourceforge.net/
  389. [Doxygen]: http://www.doxygen.nl
  390. [mailing list]: https://launchpad.net/~kicad-developers
  391. [SWIG]: http://www.swig.org/
  392. [wxWidgets]: http://wxwidgets.org/
  393. [patches folder]: http://bazaar.launchpad.net/~kicad-product-committers/kicad/product/files/head:/patches/
  394. [Boost]: http://www.boost.org/
  395. [GLEW]: http://glew.sourceforge.net/
  396. [GLUT]: https://www.opengl.org/resources/libraries/glut/
  397. [Cairo]: http://cairographics.org/
  398. [Python]: https://www.python.org/
  399. [wxPython]: http://wxpython.org/
  400. [merge requests]: https://gitlab.com/kicad/code/kicad/merge_requests
  401. [MSYS2]: http://www.msys2.org/
  402. [MSYS2 32-bit Installer]: http://repo.msys2.org/distrib/i686/msys2-i686-20161025.exe
  403. [MSYS2 64-bit Installer]: http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe
  404. [PKGBUILD]: https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-kicad-git/PKGBUILD
  405. [kicad-mac-builder]:https://github.com/KiCad/kicad-mac-builder
  406. [KiCad fork of wxWidgets]:https://github.com/KiCad/wxWidgets
  407. [MinGW]: http://mingw.org/
  408. [build Boost]: http://www.boost.org/doc/libs/1_59_0/more/getting_started/index.html
  409. [MSYS2 64-bit SourceForge repo]: http://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64/
  410. [libcurl]: http://curl.haxx.se/libcurl/
  411. [GLM]: http://glm.g-truc.net/
  412. [git]: https://git-scm.com/
  413. [liboce]: https://github.com/tpaviot/oce
  414. [libocc]: https://www.opencascade.com/content/overview
  415. [libngspice]: https://sourceforge.net/projects/ngspice/