【发布时间】:2022-11-11 07:16:07
【问题描述】:
在导入“github.com/zergon321/reisen”的Mac M2上运行Go代码(重要,因为相关库的安装在Linux上的工作方式不同)我得到了这个:
# github.com/zergon321/reisen
/Users/ido/go/pkg/mod/github.com/zergon321/reisen@v0.1.4/audio.go:4:11: fatal error: 'libavcodec/avcodec.h' file not found
#include <libavcodec/avcodec.h>
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
我使用 brew 安装了 ffmpeg(包括 libavcodec/avcodec.h 标头)
brew install ffmpeg
但它不会自己捡起来。
【问题讨论】:
标签: go libav libavcodec