Ido Van Orell
Ido Van Orell

Reputation: 143

ld: library not found for -lavutil caused by zergon321/reisen on Mac M2

Command:

CGO_CPPFLAGS="-I/opt/homebrew/Cellar/ffmpeg/5.1.2/include" go run .

Output:

# github.com/zergon321/reisen
cgo-gcc-prolog:114:35: warning: 'swr_alloc_set_opts' is deprecated [-Wdeprecated-declarations]
/opt/homebrew/Cellar/ffmpeg/5.1.2/include/libswresample/swresample.h:259:1: note: 'swr_alloc_set_opts' has been explicitly marked deprecated here
/opt/homebrew/Cellar/ffmpeg/5.1.2/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
/usr/local/go/pkg/tool/darwin_arm64/link: running clang failed: exit status 1
ld: library not found for -lavutil
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Context:

Could it be the deprecation warning for libavutil (see above)?

Upvotes: 2

Views: 216

Answers (0)

Related Questions