700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 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

时间:2024-03-18 17:04:58

相关推荐

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

QtCreator报错:

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

解决方案:

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

实测有效。

参考:

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

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。