root@ip-**-**-**-**:/home/jeff/m3u8-segmenter# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for sys/types.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memmove... yes
checking for memset... yes
checking for strrchr... yes
checking for strtol... yes
./configure: line 4160: PKG_PROG: command not found
./configure: line 4161: syntax error near unexpected token `FFMPEG,'
./configure: line 4161: `PKG_CHECK_MODULES(FFMPEG, libavformat libavcodec libavutil)'
我的所有依赖项都已到位,包括FFMPEG,PKG_PROG等,但我收到了这些错误并且不知所措。有什么想法吗?
答案 0 :(得分:5)
我已经在Mac OSX 10.8上成功编译了这段代码,但之前我确实收到了这个错误。我做的是去那些行号并注释掉那些支票。我相信它所做的只是对FFMPEG,avformat等进行一些验证,如果按照指示进行,则应该已经完成。然后我重新运行./configure并make。最后的二进制文件很有用。没有问题。除此之外,从头开始重新启动您的步骤,但跳过aclocal,automake,等等。然后运行./configure。这也适用于我,二进制代码运行正常。我在没有任何问题的情况下努力工作了segmenter,但同样,这是在Mac OSX 10.8上。祝你好运。!