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.

186 lines
5.7 KiB

  1. KiCad installation
  2. ==================
  3. The parts of KiCad
  4. ------------------
  5. KiCad consists of 3 packages:
  6. kicad - KiCad programs and core files.
  7. kicad-doc - Documentation and interactive help (optional package).
  8. kicad-library - KiCad schematic, pcb & 3D-model libraries (optional package).
  9. Installation from binary packages
  10. ---------------------------------
  11. KiCad binary packages exist for Linux and Windows (XP, 2000).
  12. Data files (schematic, boards, libraries) are compatible with all platforms.
  13. *.zip - KiCad packages for Windows.
  14. *.tbz2 - KiCad for Linux.
  15. Installation from binary packages for Windows
  16. ---------------------------------------------
  17. The KiCad binary archive can be installed anywhere on the system that as long as the user
  18. has write privileges.
  19. You can create a shortcut to '${prefix}\bin\kicad.exe' where ${prefix} is the install path.
  20. Installation from binary packages for Linux
  21. -------------------------------------------
  22. KiCad can be installed in '/usr' or '/usr/local'. You must have "root" access for installation.
  23. cd /
  24. tar -xjf kicad-{version}.tbz2
  25. tar -xjf kicad-doc-{version}.tbz2
  26. tar -xjf kicad-library-{version}.tbz2
  27. The main program is '/usr/bin/kicad'.
  28. Linux and Windows KiCad install tree
  29. -------------------------------------
  30. ${prefix}/bin - Binaries (executable files).
  31. ${prefix}/share/doc/kicad/ - Various documentation.
  32. ${prefix}/share/doc/kicad/help - Interactive help.
  33. ${prefix}/share/kicad/demos - Sample schematics and printed boards.
  34. ${prefix}/share/kicad/internat - Dictionaries for interface localization.
  35. ${prefix}/share/kicad/library - Interface localization files.
  36. ${prefix}/share/kicad/modules - Module libraries for printed boards.
  37. ${prefix}/share/kicad/modules/packages3d - 3D component models (.wrl and .wings format).
  38. KiCad searches for the libraries, templates, 3D models, etc. bin/../share.
  39. Warning:
  40. Do not change the KiCad tree, or the location of binary files. Otherwise
  41. KiCad may not be able to find some or all of its required files.
  42. Mac OS X KiCad tree
  43. -------------------
  44. System wide files
  45. /Library/Application Support/kicad/demos
  46. /Library/Application Support/kicad/internat
  47. /Library/Application Support/kicad/library
  48. /Library/Application Support/kicad/modules
  49. /Library/Application Support/kicad/modules/packages3d
  50. User files can be the same as the system wide files but only inside the users home directory.
  51. $HOME/Library/Application Support/kicad
  52. Warning:
  53. These paths are hardcoded into KiCad, if you put them somewhere else KiCad will not find
  54. them when a new project is created.
  55. Installation from source code
  56. -----------------------------
  57. Currently the only supported compilers are GCC on linux and windows and clang on OS X.
  58. Some dependencies must be satisfied for the correct installation of KiCad:
  59. wxWidgets >= 3.0.0 http://www.wxwidgets.org/
  60. CMake >= 2.8.4 http://www.cmake.org/
  61. Boost C++ Libraries: >= 1.54 http://www.boost.org/
  62. files used by kicad are autmatically downloaded and patched if needed
  63. from boost site.
  64. OpenGL >= 2.1
  65. Linux: Mesa 3D Graphics Library http://www.mesa3d.org/
  66. Windows: built-in
  67. Zlib Compression Library http://www.zlib.net/
  68. cairo http://cairographics.org/
  69. GLEW http://glew.sourceforge.net/
  70. libcurl http://curl.haxx.se/
  71. OpenMP (optional) http://openmp.org/
  72. GLM >= 9.5.4 http://glm.g-truc.net/
  73. pkg-config http://pkgconfig.freedesktop.org/
  74. Doxygen (optional) http://www.stack.nl/~dimitri/doxygen/index.html
  75. python >= 2.6 (optional) http://python.org/
  76. wxPython (optional) http://www.wxpython.org/
  77. SWIG >= 3.0 (optional) http://swig.org/
  78. libngspice (optional) http://ngspice.sourceforge.net/
  79. OCE >= 0.16 (optional) https://github.com/tpaviot/oce
  80. In source-tree-build are mostly unwanted, so make a subdir called "build" and
  81. change to it.
  82. Call cmake with the path to KiCad. E.g., when your build-folder is "build"
  83. within source-tree, type "cmake ../".
  84. Now your system get checked if it is able compiling KiCad and cmake generates
  85. the Makefiles.
  86. After calling cmake just type "make" and build begins.
  87. It is easy to build only a specific binary such as pcbnew alone:
  88. make pcbnew
  89. After "make" type "make install" and install begins.
  90. You may install to a temporary-root with
  91. make install DESTDIR=<temproot>
  92. If you want to uninstall KiCad again type "make uninstall" from within the
  93. build directory.
  94. Important parameters to cmake
  95. -----------------------------
  96. See Documentation/development/compiling.md for a list of all CMake options
  97. available when compiling KiCad.
  98. -DCMAKE_BUILD_TYPE=<buildtype>
  99. <buildtype> may current one of "Debug" and "Release".
  100. -DCMAKE_INSTALL_PREFIX=<prefix>
  101. Default to "/usr/local".
  102. -DwxWidgets_ROOT_DIR=<wxInstallDir>
  103. Required for Windows platform.
  104. -DwxWidgets_USE_DEBUG=ON
  105. Can be used only with -DCMAKE_BUILD_TYPE=Debug
  106. -DCMAKE_CXX_FLAGS=<some extra flags>
  107. Extra flags for the c++ compiler for your system required.
  108. -DCMAKE_VERBOSE_MAKEFILE=ON
  109. When more output is wanted use this cmake parameter or call "make VERBOSE=1".
  110. Extra CFLAGS and linker flags
  111. -----------------------------
  112. If you require extra flags for compiler and linker you may give them via
  113. environment variables
  114. "CXXFLAGS" (c++ compiler)
  115. "LDFLAGS" (for linker)
  116. "CFLAGS" (for c-compiler, not needed in kdesvn build)
  117. eg., it may usefull on 64bit systems "-m64" to CXXFLAGS and LDFLAGS.