码迷,mamicode.com
首页 > 编程语言 > 详细

python 安装opendr 报错OSMesa

时间:2020-02-27 23:28:09      阅读:301      评论:0      收藏:0      [点我收藏+]

标签:error   void   expec   source   config   cond   lin   desktop   glin   

 

### 报错/ERROR:

```
opendr/contexts/OSMesa/include/GL/glext.h:5794:21: note: expected ‘const GLchar ** {aka const char **}’ but argument is of type ‘char **’ GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length); ^~~~~~~~~~~~~~ /home/chandini/anaconda3/envs/NBF/compiler_compat/ld: cannot find -lOSMesa
```

### need to install Mesa


#### Ubuntu18.04 and above:
```
apt install *OSmesa*
```


#### Ubuntu16.04 and low
--
1. Download source: (i using mesa-19.2.0 )
https://gitlab.freedesktop.org/mesa/mesa

2. build source:
```
meson configure build/ -Dosmesa=classic
ninja -C build/
ninja -C build/ install
```
3. success result:
./build/src/mesa/drivers/osmesa/libOSMesa.so

python 安装opendr 报错OSMesa

标签:error   void   expec   source   config   cond   lin   desktop   glin   

原文地址:https://www.cnblogs.com/xiaoniu-666/p/12375165.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!