Installing Qt on linux, cannot find -lGL

前端 未结 5 1677
礼貌的吻别
礼貌的吻别 2020-12-30 21:07

I\'m having a hard time trying to install Qt on linux. I downloaded the .run file on the website and installed Qt. However, when I try to compile the default Hello World pro

5条回答
  •  无人及你
    2020-12-30 21:42

    Those other posters are correct, but on some systems, the lib to install is named differently. I just dealt with a 32bit Ubuntu 14.04.5 LTS system, and libgl-dev was not available.

    Instead, I needed to install the libgl1-mesa-dev package via:

    sudo apt-get install libgl1-mesa-dev
    

提交回复
热议问题