gpt4 book ai didi

Qt 找不到 GL 库

转载 作者:行者123 更新时间:2023-12-04 18:36:28 33 4
gpt4 key购买 nike

Kubuntu 19.10,Qt 创建者 4.10.2
基于 Qt 5.13.2(GCC 5.3.1 20160406(Red Hat 5.3.1-6),64 位)

Qt 看不到 GL 库:

/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [Makefile:417: AircraftAlgorithmPack] Error 1
17:05:25: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project AircraftAlgorithmPack (kit: Desktop Qt 5.12.6 GCC 64bit) When executing step "Make"

来自谷歌的建议答案不起作用。所有带有 mesa 的数据包已安装。也安装了来自 Qt 的所有需要​​的数据包。

最佳答案

你通常需要:

GLU: (The OpenGL Utility Library (GLU) is a computer graphics library for OpenGL)

Mesa (also called Mesa3D and The Mesa 3D Graphics Library, is an open source software implementation of OpenGL)

FreeGLUT (open-source alternative to the OpenGL Utility Toolkit (GLUT) )



所以就这样做:
$ sudo apt-get update
$ sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev

一切都会好起来的——

关于Qt 找不到 GL 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59175768/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com