python 安装opendr 报错OSMesa
Posted 只言片语
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 安装opendr 报错OSMesa相关的知识,希望对你有一定的参考价值。
### 报错/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的主要内容,如果未能解决你的问题,请参考以下文章
Python - OpenDrive Map - 使用菲涅耳积分的螺旋/ Clothoid / Euler螺旋/ Curu螺旋插值
错误记录Mac 中 IntelliJ IDEA 运行 Python 程序报错 ( pip 21.0 will drop support for Python 2.7 in January 20 )(代