c++ - 无法编译wxWidget 3.0.5,OpenGL库不可用

标签 c++ ubuntu opengl wxwidgets ubuntu-20.04

我尝试在 Ubuntu 20.04 上编译 wxWidget,但遇到了一些错误。

我已经使用文档中建议的以下命令安装了 gtk3: sudo apt install libgtk-3-dev

运行 ../configure --with-gtk=3 --with-opengl 出现错误:

checking for OpenGL headers... found in /usr/include
checking for GL/gl.h... yes
checking for GL/glu.h... no
configure: error: OpenGL libraries not available

他们有我缺少的东西吗?

最佳答案

我终于弄清楚了,问题是我没有安装OpenGL开发库,这要归功于这个https://askubuntu.com/questions/96087/how-to-install-opengl-glut-libraries .

要解决此问题,请使用以下命令安装以下库: sudo apt-get install freeglut3-dev

有关您在此处安装的内容的更多信息,请访问 OpenGL Development Toolkit

关于c++ - 无法编译wxWidget 3.0.5,OpenGL库不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62924897/

相关文章:

linux - 如何在 ubuntu 上从源代码安装 postgres?

ubuntu - 无法将 Elasticsearch 作为服务启动

c - 我已经输入 glutPostRedisplay();但它不会刷新窗口和/或输出?

c++ - 数据库或文件系统访问的 const 语义

php - 运行 xdebug 向导,但仍然有 php 版本困惑

c++ std::sort() 任何可比较成员仅使用一个比较函数的对象 vector

c++ - 了解通过 ASSIMP 加载 OBJ

c++ - 这个顶点着色器在做什么?

c++ - 有什么方法可以分析缓存行为的代码?

C++ 错误 : ‘string’ does not name a type