配置Glfw出现的问题

进行cmake时出现

CMake Error at CMakeLists.txt:206 (message):

  RandR headers not found; install libxrandr development package

-- Configuring incomplete, errors occurred!

错误

解决:yum install libXrandr*

问题:CMake Error at CMakeLists.txt:221 (message):

  Xcursor headers not found; install libxcursor development package

错误

解决:yum install libXcursor*

问题:CMake Error at CMakeLists.txt:226 (message):

  XInput headers not found; install libxi development package


错误

解决: yum install libXi*

缺什么就安装什么。

最后在安装是输入make install出错:CMake Error at cmake_install.cmake:36 (file):

  file INSTALL cannot make directory "/usr/local/include/GLFW": Permission  denied(没有权限执行)

解决:切换到root身份下再进行安装make install即可。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。