我一直在尝试安装GLFW和GLFW3,使用Terminal来安装
sudo apt-get install GLFW
sudo apt-get install GLFW3
每当我这样做时,我都会得到如下结果
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package glfw3
我已经尝试安装 GLFW 两个小时了,我有点不耐烦了。另外,我对 Linux (Mint) 很陌生,所以如果我做错了什么,我深表歉意...
编辑: 无论我尝试什么,我的程序都会遇到
/home/myusername/Desktop/basic_window.cpp:11:21: fatal error: GL/glfw.h: No such file or directory
#include <GL/glfw.h>
^
compilation terminated.
对此感到沮丧,不知道为什么这比我目前安装的其他库复杂得多。
最佳答案
I have been trying to install GLFW and GLFW3, using Terminal to install...
在 Mint 17 上,您似乎需要安装 libglfw2
。所以执行 sudo apt-get install libglfw2
。
如果您打算针对它进行开发,请安装 libglfw-dev
。请注意缺少版本号。
如果有兴趣,执行apt-cache search glfw
关于c++ - 无法在 Linux Mint 上找到软件包 GLFW,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25151085/