QtCreator使用问题::-1: error: cannot find -lGL

错误描述::-1: error: cannot find -lGL
问题分析:缺少GL库,安装即可
解决办法:sudo apt-get install libgl1-mesa-dev

安装完成后,解决该问题。

The following packages were automatically installed and are no longer required:
  python-chardet-whl python-colorama python-colorama-whl python-distlib
  python-distlib-whl python-html5lib python-html5lib-whl python-pip-whl
  python-requests-whl python-setuptools-whl python-six-whl python-urllib3-whl
  python-wheel
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libdrm-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev
  libxcb-present-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev
  libxcb-xfixes0-dev libxshmfence-dev libxxf86vm-dev mesa-common-dev
  x11proto-dri2-dev x11proto-gl-dev x11proto-xf86vidmode-dev
The following NEW packages will be installed:
  libdrm-dev libgl1-mesa-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev
  libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-shape0-dev
  libxcb-sync-dev libxcb-xfixes0-dev libxshmfence-dev libxxf86vm-dev
  mesa-common-dev x11proto-dri2-dev x11proto-gl-dev x11proto-xf86vidmode-dev
0 upgraded, 17 newly installed, 0 to remove and 184 not upgraded.
Need to get 640 kB of archives.
After this operation, 5,245 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
  libdrm-dev mesa-common-dev libgl1-mesa-dev
Install these packages without verification? [y/N] y

你可能感兴趣的:(QtCreator使用问题::-1: error: cannot find -lGL)