当时在用这个东西 https://github.com/Kagami/go-avif
然后 因为我是 M1,homebrew 的安装路径和之前不一样,include 的目录也(可能)不一样,于是
#include
#include
#include <aom/aom_encoder.h>
int main() {
// printf() displays the string inside quotation
printf("Hello, World!");
return 0;
}
test.c:3:10: fatal error: 'aom/aom_encoder.h' file not found
很自然的加了 CFLAGS 也不行,后来突然想起来哦这是 clang, 应该是别的环境变量。 详情记录在这里了
然后 因为我是 M1,homebrew 的安装路径和之前不一样,include 的目录也(可能)不一样,于是
#include
#include
#include <aom/aom_encoder.h>
int main() {
// printf() displays the string inside quotation
printf("Hello, World!");
return 0;
}
test.c:3:10: fatal error: 'aom/aom_encoder.h' file not found
很自然的加了 CFLAGS 也不行,后来突然想起来哦这是 clang, 应该是别的环境变量。 详情记录在这里了