注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

随机过程

http://superware.blog.163.com

 
 
 

日志

 
 

Building KiCad  

2014-09-03 17:44:36|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

The easy way

The following script will allow you to download, update and compile KiCad under Linux.

http://bazaar.launchpad.net/~kicad-product-committers/kicad/product/view/head:/scripts/kicad-install.sh

The step by step way

Compiling KiCAD on Linux Debian and derivatives (Ubuntu, Mint, etc.)

This task is performed from the command-line. Let us begin by downloading all necessary packages.

sudo apt-get install bzr bzrtools build-essential checkinstall cmake doxygen zlib1g-dev
sudo apt-get build-dep kicad

Then choose the directory where you want to build KiCad. This is normally somewhere in your home directory

mkdir -p ~/build/kicad
cd ~/build/kicad

Now let us download the KiCad source code from the official repository

bzr checkout lp:kicad kicad.bzr
cd kicad.bzr

Create a separate folder to build KiCad

mkdir build
cd build

Then we configure our compile and run it

cmake -DKICAD_STABLE_VERSION=ON ../
make

If you have a multicore machine (for example 4 cores) you could used the command

make -j 4

Once compiled you can optionally install KiCad in its default folder

/usr/local

this is done with the command

sudo make install

That is all. You now have the latest version of KiCad installed in your machine. If, at any time, you want to update your version of KiCad you do the following

cd ~/build/kicad/kicad.bzr
bzr update
cd build
cmake -DKICAD_STABLE_VERSION=ON ../
make
sudo make install

If you have any trouble with that compilation then you might want to run the command "make clean" before "make install" or alternatively invoke cmake in a new directory.

If you want to also install the KiCad components library, you can use these commands:

cd ~/build/kicad
bzr checkout lp:~kicad-lib-committers/kicad/library kicad-library.bzr
cd kicad-library.bzr
mkdir build
cd build/
cmake ../
sudo make install

Now if you want the KiCad documentation here you go:

cd ~/build/kicad
bzr branch --stacked lp:~kicad-developers/kicad/doc kicad-doc.bzr
cd kicad-doc.bzr
mkdir build
cd build/
cmake ../
make
sudo make install

  评论这张
 
阅读(96)| 评论(0)
推荐

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017