Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing gerbv on Heroku

I am trying since a couple of months to be able to generate images of PCB gerbers using an online service, and thinking of spinning up my own.

My choice is heroku ( open to changing), and the choice of the gerber parser/viewer is gerbv(again, open to changing)

I have read about buildpacks and vagrant and perhaps all options on getting gerbv to be able to run on heroku. The part where I am stuck right now is that gerbv requires gtk and heroku doesnt have it ( doesnt need it).

How do you compile gerbv without the gtk part?

Edit: I downloaded the source of gerbv to heroku using wget, then untar'ed it, and went into src folder, issued the following command

gcc -Wall -fPIC -c *.c

which allows me to create .o files for all the C code gerbv offers. Unfortunately, it requires gtk to compile, which heroku cant have. So it is entirely possible that the library part cannot be seperated from the interface part and be able to run libgerbv standalone.

like image 954
Rupin Avatar asked Jan 15 '16 15:01

Rupin


1 Answers

Looking at http://gerbv.geda-project.org/ it says

The core functionality of gerbv is located in a separate library (libgerbv)

Maybe instead of using gerbv (the graphical interface) you should use libgerbv directly? See http://gerbv.geda-project.org/doxygen/index.html for more info.

I also found an example (https://github.com/bleepbloop/absolum/blob/master/gerbv/viewer.py) using ctypes to interact with the library.

like image 152
Hugh Bothwell Avatar answered Nov 04 '22 05:11

Hugh Bothwell