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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With