Reputation: 89
I have deepin os and trying to build Qt desktop app but I'm getting this error: cannot find -lGL. What does it mean and how to fix it?
Upvotes: 1
Views: 106
Reputation: 52167
Make sure libgl1-mesa-dev
(which provides /usr/lib/<multiarch name>/libGL.so
) is installed.
The -l<library name>
switch tells GCC to search its library paths for lib<library name>.so
and link against it.
Upvotes: 1