Skip to content

MacroFab/gerbv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7156d7e · Mar 4, 2025
Mar 4, 2025
Oct 29, 2022
Nov 19, 2021
Sep 3, 2021
Sep 21, 2022
May 21, 2022
Mar 28, 2022
Nov 19, 2021
Jul 13, 2002
Nov 19, 2021
Aug 3, 2013
Oct 19, 2018
May 25, 2023
Nov 28, 2022
Sep 18, 2022
Aug 10, 2014
May 21, 2022
Dec 18, 2018
Apr 21, 2023
Jul 24, 2006
Aug 30, 2001
Jan 20, 2019
Feb 8, 2008
Dec 9, 2007
Aug 27, 2004
Mar 28, 2022
Apr 21, 2023
Dec 18, 2018
Dec 17, 2018
Jan 20, 2019
Aug 19, 2008
May 28, 2022
Aug 18, 2008
Dec 6, 2021
Sep 16, 2013
May 14, 2005
Apr 21, 2023
Jun 5, 2004
Jan 29, 2008

Repository files navigation

Gerbv – a Gerber file viewer Build StatusCoverage Status

Gerbv was originally developed as part of the gEDA Project but is now separately maintained.

Download

Official releases are published on GitHub Releases. Moreover, CI generated binaries are published on gerbv.github.io. Be aware however that they are not manually verified!

About Gerbv

  • Gerbv is a viewer for Gerber RS-274X files, Excellon drill files, and CSV pick-and-place files. (Note: RS-274D files are not supported.)
  • Gerbv is a native Linux application, and it runs on many common Unix platforms.
  • Gerbv is free/open-source software.
  • The core functionality of Gerbv is located in a separate library (libgerbv), allowing developers to include Gerber parsing/editing/exporting/rendering into other programs.
  • Gerbv is one of the utilities originally affiliated with the gEDA project, an umbrella organization dedicated to producing free software tools for electronic design.

About this fork

While Gerbv is great software, the development on Source Force has stalled since many years with patches accumulating in the tracker and mailing list.

This fork aims at providing a maintained Gerbv source, containing mostly bugfixes.

To communicate with the original Gerbv developers, please post your query on the following mailing list:

This is a friendly fork and I'm willing to invite other people to join the Gerbv GitHub organization.

Applied patches from SourceForge

Supported platforms

Gerbv has been built and tested on

  • Debian 10 (amd64)
  • Fedora 36 (amd64)
  • Ubuntu 22.04 (amd64)
  • Windows 10 (amd64 cross compiled from Fedora as well as native x86/amd64 using MSYS2)

Information for developers

Gerbv is split into a core functional library and a GUI portion. Developers wishing to incorporate Gerber parsing/editing/exporting/rendering into other programs are welcome to use libgerbv. Complete API documentation for libgerbv is here, as well as many example programs using libgerbv.

Click for Example 1

Description: Loads example1-input.gbx into a project, and then exports the layer back to another RS274X file

code example

Click for Example 2

Description: Loads example2-input.gbx, duplicates it and offsets it to the right by the width of the layer, merges the two images, and exports the merged image back to another RS274X file. Note: this example code uses the gerbv_image

code example

Click for Example 3

Description: Loads example3-input.gbx, duplicates it and offsets it to the right by the width of the layer, changed the rendered color of the second image, then exports a PNG rendering of the overlaid images.

code example

Click for Example 4

Description: Loads example4-input.gbx, searches through the file and removes any entities with a width less than 60mils, and re-exports the modified image to a new RS274X file.

code example

Click for Example 5

Description: Demonstrate the basic drawing functions available in libgerbv by drawing a smiley face and exporting the layer to a new RS274X file.

code example

Click for Example 6

Description: Demonstrate how to embed a libgerbv render window into a new application to create a custom viewer

code example

Security

The current focus of gerbv is to provide a utility to view and manipulate trusted gerber files. When using gerbv, you should not view files from untrusted sources without extra precautions.

Nevertheless, we acknowledge that libgerbv will be used to handle untrusted input, maybe even provided over the network. In those cases we strongly advise to treat libgerbv as any codec and isolate its operations from the rest of your application.

License

Gerbv and all associated files is placed under the GNU Public License (GPL) version 2.0. See the toplevel COPYING file for more information.

Programs and associated files are: Copyright 2001, 2002 by Stefan Petersen and the respective original authors (which are listed on the respective files)