# pcb2gcode [![Build Status](https://github.com/pcb2gcode/pcb2gcode/workflows/CI/badge.svg)](https://github.com/pcb2gcode/pcb2gcode/actions) [![Coverage Status](https://coveralls.io/repos/github/pcb2gcode/pcb2gcode/badge.svg?branch=master)](https://coveralls.io/github/pcb2gcode/pcb2gcode?branch=master) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://payments.wikimedia.org/index.php?title=Special:PaypalExpressGateway&appeal=JimmyQuote&ffname=paypal_ec&recurring=¤cy=USD&amount=0&payment_method=paypal&uselang=en&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive)
pcb2gcode is a command-line software for the isolation, routing and drilling of PCBs.
It takes Gerber files as input and it outputs gcode files, suitable for the milling of PCBs.
It also includes an Autoleveller, useful for the automatic dynamic calibration of the milling depth.
pcb2gcodeGUI, the official GUI for pcb2gcode, is available [here](https://github.com/pcb2gcode/pcb2gcodeGUI).
If you find this project useful, consider [donating money to charity](https://payments.wikimedia.org/index.php?title=Special:PaypalExpressGateway&appeal=JimmyQuote&ffname=paypal_ec&recurring=¤cy=USD&amount=0&payment_method=paypal&uselang=en&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive).
## Quick Installation
This development version of pcb2gcode does not get into repositories of distros. If you want to test this version, you will have to go to the section below (installation from GIT).
#### Archlinux:
* pcb2gcode stable -> [`https://aur.archlinux.org/packages/pcb2gcode/`](https://aur.archlinux.org/packages/pcb2gcode/)
* pcb2gcode git -> [`https://aur.archlinux.org/packages/pcb2gcode-git/`](https://aur.archlinux.org/packages/pcb2gcode-git/)
#### Fedora:
* Download the latest tarball from https://github.com/pcb2gcode/pcb2gcode/releases
* Open a terminal and cd to the extracted tarball
* type the following:
```
su
<the root password>
yum groupinstall "Development Tools"
yum install automake autoconf libtool boost-devel gtkmm24-devel gerbv-devel
exit
./configure
make
su -c 'make install'
```
* done.
#### Debian, Ubuntu:
There are pcb2gcode packages in the official repositories. You can install the with
sudo apt-get install pcb2gcode
Unfortunately, these packages are seriously outdated. If you want to download the latest development version, go to "Installation from GIT".
#### Windows
Windows prebuilt binaries (with all the required DLLs) are available in the [release](https://github.com/pcb2gcode/pcb2gcode/releases) page.
#### Mac OS X
pcb2gcode is available in [Homebrew](http://brew.sh/). To install it open the "Terminal" app and run the following commands; pcb2gcode and the required dependencies will be automatically downloaded and installed:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install pcb2gcode
## Installation from GIT (latest development version):
If you want to install the latest version from git you'll need the autotools, Boost with the program_options library
(dev, >= 1.56), gtkmm2.4 (dev) and libgerbv (dev).
Unfortunately pcb2gcode requires a rather new version of Boost (1.56), often not included in the oldest distros (like Ubuntu < 15.10 or Debian Stable).
Moreover Boost 1.56 sometimes freezes pcb2gcode, while Boost 1.59, 1.60 and 1.61 are affected by a [program options bug](https://svn.boost.org/trac/boost/ticket/11905).
You can [download](http://www.boost.org/users/download/) a working version of Boost ([1.57](http://www.boost.org/users/history/version_1_57_0.html) and [1.58](http://www.boost.org/users/history/version_1_58_0.html) work well) and build it manually with:
$ ./bootstrap.sh --with-libraries=program_options --prefix=<somewhere>
$ ./b2 variant=release link=static
$ ./b2 install
Then add `--with-boost=<boost install directory> --enable-static-boost` to the `./configure` command.
To build with coverage outputs, add `--enable-code-coverage` to `./configure` and then later run `make check-code-coverage` to run unit tests to collect coverage. The last line of the output will include a URL to view the coverage.
Ubuntu 12.04 does not include gcc 4.8 (needed for the C++11 support); you can install it with:
$ sudo apt-get update
$ sudo apt-get install software-properties-common python-software-properties
$ sudo add-apt-repository "ppa:ubuntu-toolchain-r/test"
$ sudo apt-get update
$ sudo apt-get install g++-4.8
$ export CXX=g++-4.8
#### Debian Testing or newer, Ubuntu Wily or newer<a name="debianlike"></a>
$ sudo apt-get update
$ sudo apt-get install build-essential automake autoconf autoconf-archive libtool libboost-program-options-dev libgtkmm-2.4-dev gerbv git librsvg2-dev
$ git clone https://github.com/pcb2gcode/pcb2gcode.git
$ cd pcb2gcode
Then follow the [common build steps](#commonbuild)
#### Fedora
su
<the root password>
yum groupinstall "Development Tools"
yum install automake autoconf libtool boost-devel gtkmm24-devel gerbv-devel git
exit
Then follow the [common build steps](#commonbuild)
#### Common build steps<a name="commonbuild"></a>
$ autoreconf -fvi
$ ./configure
$ make
$ sudo make install
### Windows
You can easily build pcb2gcode for Windows with MSYS2 (http://sourceforge.net/projects/msys2/).
Download MSYS2 and install it somewhere, then run "MinGW-w64 Win32 Shell" (if you want a i686 binary) or "MinGW-w64 Win64 Shell" (if you want a x86_64 binary). The following commands are for the i686 binary, if you want the x86_64 binary replace all the "/mingw32" with "/mingw64" and all the mingw-w64-i686-* packages with mingw-w64-x86_64-*
$ pacman -Sy
$ pacman --needed -S bash pacman pacman-mirrors msys2-runtime
Close and reopen the shell
$ pacman -Su
$ pacman --needed -S base-devel git mingw-w64-i686-gcc mingw-w64-i686-boost mingw-w64-i686-gtkmm
Now let's download, build and install gerbv (version 2.6.1 is broken, don't use it)
$ wget downloads.sourceforge.net/gerbv/gerbv-2.6.0.tar.gz
$ tar -xzf gerbv-2.6.0.tar.gz
$ cd gerbv-2.6.0/
$ ./configure --prefix=/mingw32 --disable-update-desktop-database
$ make
$ make install
Finally, download and build pcb2gcode
$ cd ..
$ git clone https://github.com/pcb2gcode/pcb2gcode.git
$ cd pcb2gcode/
$ autoreconf -fvi
$ ./configure --prefix=/mingw32
$ make LDFLAGS='-s'
The dynamically linked binary is <msys2 installation folder>/home/<user>/pcb2gcode/.libs/pcb2gcode.exe.
You can find all the DLLs in <msys2 installation folder>/mingw32/bin; copy them in the same folder of pcb2gcode. The required DLLs are:
* libatk-1.0-0.dll
* libboost_program_options-mt.dll
* libbz2-1.dll
* libcairo-2.dll
* libcairomm-1.0-1.dll
* libexpat-1.dll
* libffi-6.dll
* libfontconfig-1.dll
* libfreetype-6.dll
* libgcc_s_dw2-1.dll (for the i686 binary)
* libgcc_s_seh-1.dll (for the x86_64 binary)
* libgdkmm-2.4-1.dll
* libgdk_pixbuf-2.0-0.dll
* libgdk-win32-2.0-0.dll
* libgerbv-1.dll
* libgio-2.0-0.dll
* libglib-2.0-0.dll
* libglibmm-2.4-1.dll
* libgmodule-2.0-0.dll
* libgobject-2.0-0.dll
* libgtk-win32-2.0-0.dll
* libharfbuzz-0.dll
* libiconv-2.dll
* libintl-8.dll
* libpango-1.0-0.dll
* libpangocairo-1.0-0.dll
* libpangoft2-1.0-0.dll
* libpangomm-1.4-1.dll
* libpangowin32-1.0-0.dll
* libpixman-1-0.dll
* libpng16-16.dll
* libsigc-2.0-0.dll
* libstdc++-6.dll
* libwinpthread-1.dll
* zlib1.dll
#### Mac OS X
You can build the latest pcb2gcode version with [Homebrew](http://brew.sh). If Homebrew is not installed yet, install it with the following command:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You might need some build tools that typically are not present:
$ bre
没有合适的资源?快使用搜索试试~ 我知道了~
pcb2gcode:用于PCB隔离,布线和钻Kong的命令行工具
共1040个文件
svg:473个
ngc:144个
gbr:128个
需积分: 28 3 下载量 172 浏览量
2021-02-18
00:52:24
上传
评论
收藏 5.04MB ZIP 举报
温馨提示
pcb2gcode pcb2gcode是用于PCB的隔离,布线和钻Kong的命令行软件。 它以Gerber文件作为输入,并输出gcode文件,适用于铣削PCB。 它还包括一个自动调平器,可用于铣削深度的自动动态校准。 pcb2gcodeGUI,pcb2gcode的官方GUI,可。 如果您觉得这个项目有用,请考虑。 快速安装 pcb2gcode的此开发版本未进入发行版的存储库。 如果要测试此版本,则必须转到下面的部分(从GIT安装)。 Archlinux: pcb2gcode稳定-> pcb2gcode git-> 软呢帽: 从下载最新的tarball 打开一个终端并cd到解压缩的tarball 输入以下内容: su <the> yum groupinstall "Development Tools" yum install automake
资源详情
资源评论
资源推荐
收起资源包目录
pcb2gcode:用于PCB隔离,布线和钻Kong的命令行工具 (1040个子文件)
pcb2gcode.1 16KB
_pcb2gcode 2KB
configure.ac 3KB
Makefile.am 6KB
Makefile.am 48B
AUTHORS 526B
COPYING 34KB
surface_vectorial.cpp 46KB
gerberimporter.cpp 38KB
drill.cpp 34KB
options.cpp 33KB
autoleveller.cpp 20KB
ngc_exporter.cpp 16KB
main.cpp 16KB
path_finding.cpp 13KB
voronoi.cpp 13KB
gerberimporter_tests.cpp 13KB
backtrack.cpp 10KB
outline_bridges.cpp 10KB
eulerian_paths_tests.cpp 9KB
path_finding_tests.cpp 9KB
bg_operators.cpp 9KB
backtrack_tests.cpp 8KB
board.cpp 7KB
trim_paths.cpp 6KB
trim_paths_tests.cpp 6KB
units_tests.cpp 6KB
segmentize.cpp 6KB
geos_helpers.cpp 5KB
bg_helpers.cpp 4KB
tile.cpp 4KB
geos_helpers_tests.cpp 4KB
autoleveller_tests.cpp 4KB
options_tests.cpp 3KB
svg_writer.cpp 3KB
voronoi_tests.cpp 3KB
tsp_solver_tests.cpp 3KB
layer.cpp 3KB
available_drills_tests.cpp 2KB
segmentize_tests.cpp 2KB
common.cpp 2KB
merge_near_points.cpp 2KB
wkt_to_svg.cpp 2KB
outline_bridges_tests.cpp 2KB
common_tests.cpp 1KB
eulerian_paths.cpp 1021B
boost_unit_test.cpp 223B
slots.drl 649B
slots.drl 649B
slots.drl 649B
slots.drl 643B
slots.drl 643B
slots.drl 640B
slots.drl 640B
D1MiniGSR-PTH.drl 632B
multivibrator.drl 631B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
multivibrator.drl 628B
slots.drl 566B
milldrilldiatest.drl 416B
testCNC-NPTH.drl 309B
drill0.exc 33KB
KNoT-Gateway Mini Starter Board.GBL 27KB
KNoT_Thing_Starter_Board.GBL 15KB
A64-OlinuXino_Rev_D-F.Cu.gbr 715KB
A64-OlinuXino_Rev_D-B.Cu.gbr 663KB
Rotary-Encoder-Breakout-B_Cu.gbr 25KB
multivibrator-F.SilkS.gbr 13KB
multivibrator-F.SilkS.gbr 13KB
multivibrator-B.Cu.gbr 4KB
multivibrator-B.Cu.gbr 4KB
multivibrator-B.Cu.gbr 4KB
multivibrator-B.Cu.gbr 4KB
multivibrator-B.Cu.gbr 4KB
multivibrator-B.Cu.gbr 4KB
multivibrator-B.Cu.gbr 4KB
multivibrator-B.Cu.gbr 4KB
multivibrator-B.Cu.gbr 4KB
multivibrator-B.Cu.gbr 4KB
multivibrator-B.Cu.gbr 4KB
multivibrator-B.Cu.gbr 4KB
共 1040 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
13338383381
- 粉丝: 15
- 资源: 4648
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0