解决Qt在openSUSE上编译出现“cannot find -lGL”错误

时间:2023-03-08 22:10:30
解决Qt在openSUSE上编译出现“cannot find -lGL”错误

  在openSUSE上编译QT5.4程序出现“cannot find -lGL”,就连example都无法通过编译。QT是在官网下的最新的安装包。

  大体意思是,缺少qt运行时所需要的openGL库。决绝手段*上给出很好的答案。

  http://*.com/questions/15355837/installing-qt-on-linux-cannot-find-lgl

由于openSUSE上使用的包管理器是zypper,因此只要报yum换成zypper即可:

sudo zypper install mesa-libGL-devel

  再次编译,就没问题了。