在jetson xavier nx(arm系统)上安装av包时报错如下:
src/av/codec/codec.c:8336:48: error: ‘AV_CODEC_CAP_HARDWARE’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_DR1’?
__pyx_t_8 = __Pyx_PyInt_From___pyx_anon_enum(AV_CODEC_CAP_HARDWARE); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 121, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~~
AV_CODEC_CAP_DR1
src/av/codec/codec.c:8336:48: note: each undeclared identifier is reported only once for each function it appears in
src/av/codec/codec.c:8357:48: error: ‘AV_CODEC_CAP_HYBRID’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_DR1’?
__pyx_t_8 = __Pyx_PyInt_From___pyx_anon_enum(AV_CODEC_CAP_HYBRID); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 125, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~
AV_CODEC_CAP_DR1
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
av安装包是通过https://pypi.tuna.tsinghua.edu.cn/packages/aa/2f/6a4b1916d4ebeb02307ae7b03d55d6ef5f027541bd8bb54f91955bea070a/av-10.0.0.tar.gz下载的,之后执行setup.py文件进行安装(python3 setup.py install).