home scroll pcb2gcode

Installation

pcb2gcode
pcb2gcode is a command line tool to convert gerber files to CNCC gcode.
There is a GUI called pcb2gcodeGUI
but it hasn't been updated in years,
and I tried to build it, but got error because of qmake.
https://github.com/pcb2gcode/pcb2gcode

pcb2gcode can be installed via apt

sudo apt install pcb2gcode
but it is very outdated:
version : pcb2gcode 1.1.4

Installing the latest version:
https://github.com/pcb2gcode/pcb2gcode#installation-from-git-latest-development-version

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
autoreconf -fvi
./configure

This step causes error:
checking for libgerbv >= 2.1.0... no
configure: error: Package requirements (libgerbv >= 2.1.0) were not met:
Requested 'libgerbv >= 2.1.0' but version of libgerbv is

To fix, Edit the file

sudo nano /usr/lib/x86_64-linux-gnu/pkgconfig/libgerbv.pc
and change the line
Version:
to
Version: 2.7
Then run again
./configure
https://stackoverflow.com/questions/72567917/pcb2gcode-fails-install-in-arch-due-to-gerbv-version-not-being-detected

make
sudo make install

This will put the pcb2gcode executable into a path where it can be found when called.

Category

Installation
Usage

Follow Me

discord