linking OpenGL Libraries

June 11, 2019 1.7k views
Applications DigitalOcean Dokku Python Ubuntu 18.04

I’ve got a dokku droplet that uses OpenGL (via python’s PyOpenGL / pyqt5 & vispy) to create an image. Normally, OpenGL requires a GPU, but I think I’ve successfully compiled the library using mesa for CPU usage.

The issue is my program (deployed via dokku) cannot seem to find the library I created. I compiled the library using the console and put the library in /usr/lib .

But when I try LD_PRELOAD=/usr/lib/, I get

LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

and then: cannot open shared object file: No such file or directory

which crashes the program.

Is there a place I need to put libraries where dokku can see them?

1 comment
  • LD_PRELOAD is set via dokku’s config:

    dokku config:set app LD_PRELOAD=/usr/local/

Be the first one to answer this question.