Оверлорд Кп
Оверлорд Кп

Reputation: 89

How to solve linux error - "cannot find -lGL"?

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

Answers (1)

genpfault
genpfault

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

Related Questions