今天要跑github上这个代码: https://github.com/tianli/matlab_offscreen

代码需要装opengl相关的依赖:freeglut+libglew+libglew-dev,搜了很久发现基本都是ubuntu的教程,在这里总结一下Centos的。

1 freeglut安装方法可戳官网这里

# yum install freeglut

2  libglew安装方法,可戳官网这里

# yum install libGLEW

3 libglew-dev安装方法,可戳官网这里

  1. Create the repository config file /etc/yum.repos.d/linuxtech.repo:
    [linuxtech]
    name=LinuxTECH
    baseurl=http://pkgrepo.linuxtech.net/el6/release/
    enabled=1
    gpgcheck=1
    gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET
    
  2. Install libglew-devel rpm package:
    # yum install libglew-devel

 

 

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐