PDA

View Full Version : libGL.so.1 not found:Qt GUI app in docker with centos



LSantoshKSingh
27th July 2017, 14:11
Hello,

I am trying to run a Qt app in docker. I have a very limited linux experience. The OS is centos. Qt version is 5.9.1. The overall idea is to run it in Xvbf.

When I try "docker run -it myTestGuiApp", I get an error libGL.so.1: cannot open shared object file: No such file or directory. What is missing here?

Thanks in advance.

d_stranz
30th July 2017, 18:08
What is missing here?

libGL.so.1

Probably your docker configuration doesn't contain the OpenGL library, you haven't configured docker correctly so it can find the shared libraries at runtime, you have built and linked your application (or Qt) against a different OpenGL version than you have installed on CentOS, or any number of things.

This doesn't sound like a Qt problem, it sounds like a docker problem. You should post your question on a docker forum if there is one.