By Elle
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 libGL.so library in /usr/lib .
But when I try LD_PRELOAD=/usr/lib/libGL.so, I get
LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
and then:
libGL.so.1: 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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
As a test, I would suggest trying to install the libGL with apt rather than comping it manually:
sudo apt update
sudo apt install libgl1-mesa-glx
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.