Open fengdengyunmie opened 6 years ago
我按照https://www.jianshu.com/p/ce67fed1cf09这条简书上的步骤编译,出现错误 这是编译时报的错误 use_pkg_config libx264 x264 stdint.h x264.h x264_encoder_encode check_pkg_config libx264 x264 stdint.h x264.h x264_encoder_encode pkg-config --exists --print-errors x264 Package x264 was not found in the pkg-config search path. Perhaps you should add the directory containing `x264.pc' to the PKG_CONFIG_PATH environment variable No package 'x264' found require libx264 stdint.h x264.h x264_encoder_encode -lx264 check_lib libx264 stdint.h x264.h x264_encoder_encode -lx264 check_func_headers stdint.h x264.h x264_encoder_encode -lx264 check_ld cc -lx264 check_cc BEGIN /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c 1 #include 2 #include <x264.h> 3 #include 4 long check_x264_encoder_encode(void) { return (long) x264_encoder_encode; } 5 int main(void) { int ret = 0; 6 ret |= ((intptr_t)check_x264_encoder_encode) & 0xFFFF; 7 return ret; } END /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/dispatch_semaphore -DPIC -arch arm64 -miphoneos-version-min=7.0 -fembed-bitcode -std=c11 -fomit-frame-pointer -fPIC -pthread -c -o /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.o /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c:2:10: fatal error: 'x264.h' file not found
^~~~~~~~
1 error generated. ERROR: libx264 not found
你要编码做甚?可以联系wnpllr@gmail.com
都 2024 了,这个问题依旧在:ERROR: libx264 not found
我按照https://www.jianshu.com/p/ce67fed1cf09这条简书上的步骤编译,出现错误 这是编译时报的错误 use_pkg_config libx264 x264 stdint.h x264.h x264_encoder_encode check_pkg_config libx264 x264 stdint.h x264.h x264_encoder_encode pkg-config --exists --print-errors x264 Package x264 was not found in the pkg-config search path. Perhaps you should add the directory containing `x264.pc' to the PKG_CONFIG_PATH environment variable No package 'x264' found require libx264 stdint.h x264.h x264_encoder_encode -lx264 check_lib libx264 stdint.h x264.h x264_encoder_encode -lx264 check_func_headers stdint.h x264.h x264_encoder_encode -lx264 check_ld cc -lx264 check_cc BEGIN /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c 1 #include
2 #include <x264.h>
3 #include
4 long check_x264_encoder_encode(void) { return (long) x264_encoder_encode; }
5 int main(void) { int ret = 0;
6 ret |= ((intptr_t)check_x264_encoder_encode) & 0xFFFF;
7 return ret; }
END /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c
xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/dispatch_semaphore -DPIC -arch arm64 -miphoneos-version-min=7.0 -fembed-bitcode -std=c11 -fomit-frame-pointer -fPIC -pthread -c -o /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.o /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c
/var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c:2:10: fatal error: 'x264.h' file not found
include <x264.h>
1 error generated. ERROR: libx264 not found