Package Details: pcb2gcode 2.5.0-1

Git Clone URL: https://aur.archlinux.org/pcb2gcode.git (read-only, click to copy)
Package Base: pcb2gcode
Description: Command-line tool for isolation, routing and drilling of PCBs.
Upstream URL: https://github.com/pcb2gcode/pcb2gcode
Licenses: GPL
Submitter: equinoxefr
Maintainer: adriannacal
Last Packager: tippfehlr
Votes: 6
Popularity: 0.000000
First Submitted: 2011-07-04 18:35 (UTC)
Last Updated: 2026-06-12 14:44 (UTC)

Dependencies (5)

Required by (1)

Sources (1)

Latest Comments

1 2 Next › Last »

caasper commented on 2026-05-22 13:33 (UTC) (edited on 2026-05-22 13:35 (UTC) by caasper)

just want to share my patch on this package, work for me with this installed dependencies, (if gerbv not work, try to use my gerbv patch in this link https://aur.archlinux.org/packages/gerbv#comment-1072445)

>> pacman -Q gtk2 dconf boost gtkmm glibmm gerbv cmake
gtk2 2.24.33-5
dconf 0.49.0-1
boost 1.91.0-1
gtkmm 1:2.24.5-5
glibmm 2.66.8-1
gerbv 2.13.0-4
cmake 4.3.2-1
pkgname=pcb2gcode
pkgver=3.0.4 # not real package version, look the _tag
pkgrel=1
pkgdesc="Command-line tool for isolation, routing and drilling of PCBs."
arch=('i686' 'x86_64')
url="https://github.com/pcb2gcode/pcb2gcode"
license=('GPL')
depends=('boost-libs' 'gtkmm' 'glibmm' 'gerbv' 'cmake' 'git')
makedepends=('boost')
_tag='57b541e191487d846c694660a0b2c8b4021e3853'
source=()

prepare() {
  rm -rf "${pkgname}-${pkgver}.${_tag}"
  mkdir -p "${pkgname}-${pkgver}.${_tag}"
  cd "${pkgname}-${pkgver}.${_tag}"

  git init
  git remote add origin https://github.com/pcb2gcode/pcb2gcode.git
  git fetch --depth 1 origin 57b541e191487d846c694660a0b2c8b4021e3853
  git checkout FETCH_HEAD
}

build() {
  cd "${pkgname}-${pkgver}.${_tag}"

  cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DPCB2GCODE_COMPILE_WARNING_AS_ERROR=OFF -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
}

package() {
  cd "${pkgname}-${pkgver}.${_tag}"

  DESTDIR="$pkgdir" cmake --install build
}

# vim:set ts=2 sw=2 et:

s-ol commented on 2025-01-07 16:25 (UTC) (edited on 2025-01-24 14:37 (UTC) by s-ol)

This is missing the dependency geos, however the repo version of geos (3.13.0) is too new to work with stable pcb2gcode which seems to be compatible only with geos version 2 (since it uses CoordinateSequenceFactory).

This appears to have been resolved in https://github.com/pcb2gcode/pcb2gcode/commit/a7c2ec216cb50fa4f01d61c358cb93e7a17b01d1. I suggest switching to pcb2gcode-git (which is compatible with AUR pcb2gcodegui) until there is an upstream release.

ezor commented on 2024-09-30 14:54 (UTC)

I confirm the problem persists. However, as sdp8483 suggested, by first installing the package "gerbv-git" (before doing this, first remove the package "gerbv" if you already have it) and then installing this package "pcb2gcode 2.5.0-1" I was able to build it and run it on my Manjaro Linux: KDE Plasma 6.0.5, KDE Frameworks 6.5.0, Qt 6.7.2, Kernel 6.1.106-1-MANJARO (64-bit), Graphic Platform X11.

sdp8483 commented on 2023-10-28 20:27 (UTC)

I was getting gerberimporter.hpp:32:10: fatal error: gerbv.h: No such file or directory when I installed gerbv. I installed gerbv-git instead and was able to build.

oxplot commented on 2021-11-18 11:20 (UTC)

Getting an error when building:

path_finding.cpp:443:27: error: call of overloaded ‘make_optional(linestring_type_fp)’ is ambiguous 443 | return make_optional(build_path(current, came_from));

synthead commented on 2021-02-11 07:34 (UTC) (edited on 2021-02-11 07:35 (UTC) by synthead)

Here's version 2.2.2 with gerbv from community: https://gist.github.com/synthead/fc574bb7e96f268072079839736f65d9

Marte2007 commented on 2021-01-27 13:07 (UTC)

Does this work also with community/gerbv instead of aur/gerbv-git?

Lacsapix commented on 2017-02-17 09:45 (UTC)

had some issues with the following missing dependencies: boost (obviously) glibmm gtkmm (missed a gdkmm-2.4 package) compiled and looks great now

miia commented on 2015-12-29 18:03 (UTC)

On a side note, the build fails if the boost package is not installed, so I think that should be added as a dependency (of course, until then, you can just install it manually using pacman). Thanks for the very useful package!

phragment commented on 2015-11-18 18:10 (UTC) (edited on 2015-11-18 18:10 (UTC) by phragment)

I updated the package to 1.2.2 since the sourceforge project is dead and now points to https://github.com/pcb2gcode/pcb2gcode Thank you mirage335 for the glibmm patch!