heroku config:set ZBAR_LIB=vendor/lib/libzbar.so
heroku buildpacks:add --index 1 https://github.com/sheck/heroku-buildpack-zbar
ZBAR_LIBconfig variable must be set to
vendor/lib/libzbar.so. Sharing environment variables between buildpacks is difficult, so it's best to just set it globally.
heroku buildpacksshould return:
=== [Your App Name] Buildpack URLs 1. https://github.com/sheck/heroku-buildpack-zbar 2. heroku/ruby
if it does not, remove the ruby buildpack and re-add it to move it to the bottom
(Pull requests welcome)
Setting up the patched version of Zbar on a CI server can be pain. Here's how I got it running on Circle CI: https://gist.github.com/sheck/475e0c8f2d9f618f1eca
Copy the snippet above into CLI.