当前位置:网站首页>Qt error: /usr/bin/ld: cannot find -lGL: No such file or directory

Qt error: /usr/bin/ld: cannot find -lGL: No such file or directory

2022-04-23 17:24:00 小鹰信息技术服务部

clang++ -ccc-gcc-name g++ -Wl,-rpath,/home/yigo/Qt5.12.12/5.12.12/gcc_64/lib -o Test1 main.o mainwindow.o moc_mainwindow.o   /home/yigo/Qt5.12.12/5.12.12/gcc_64/lib/libQt5Widgets.so /home/yigo/Qt5.12.12/5.12.12/gcc_64/lib/libQt5Gui.so /home/yigo/Qt5.12.12/5.12.12/gcc_64/lib/libQt5Core.so -lGL -lpthread   
/usr/bin/ld: cannot find -lGL: No such file or directory

solution:

sudo apt install mesa-common-dev libglu1-mesa-dev

It works.

c++ - /usr/bin/ld: cannot find -lGL (Ubuntu 14.04) - Stack Overflow

 

版权声明
本文为[小鹰信息技术服务部]所创,转载请带上原文链接,感谢
https://blog.csdn.net/zhouyingge1104/article/details/124358871