home scroll pcb2gcode

pcb2gcode

Project Web Sites

pcb2gcode is a command line tool to convert gerber files to CNC G-code.

https://github.com/pcb2gcode/pcb2gcode

pcb2gcodeGUI provides a GUI for pcb2gcode.

https://github.com/pcb2gcode/pcb2gcodeGUI

Installation

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
Specifically:

https://github.com/pcb2gcode/pcb2gcode?tab=readme-ov-file#debian-testing-or-newer-ubuntu-wily-or-newer

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.

pcb2gcodeGUI

pcb2gcode is a command line tool;
pcb2gcodeGUI provides a GUI for pcb2gcode.
Installation
https://github.com/pcb2gcode/pcb2gcodeGUI?tab=readme-ov-file#build-on-debian-jessie-or-newer-ubuntu-trusty-or-newer

The command
sudo apt-get install build-essential git qt5-default libqt5svg5-dev
causes Error:
E: Package 'qt5-default' has no installation candidate

Solution:

sudo apt install qtbase5-dev qt5-qmake
Then run
git clone https://github.com/pcb2gcode/pcb2gcodeGUI.git
cd pcb2gcodeGUI/
Running
qmake
causes error:
Project ERROR: Unknown module(s) in QT: svg Solution:

sudo apt-get install libqt5svg5*
Then run qmake again.

And finally:
make
sudo make install


Category

Installation
Usage

Follow Me

discord