Skip to content

Instantly share code, notes, and snippets.

Created December 5, 2012 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/71f68823bdb65985291b to your computer and use it in GitHub Desktop.
Save anonymous/71f68823bdb65985291b to your computer and use it in GitHub Desktop.
EGIN /tmp/ffmpeg-conf--4984-.c
1 #include <x264.h>
2 int x;
END /tmp/ffmpeg-conf--4984-.c
gcc -fomit-frame-pointer -E -o /tmp/ffmpeg-conf--4984-.o /tmp/ffmpeg-conf--4984-.c
In file included from /tmp/ffmpeg-conf--4984-.c:1:
/usr/local/include/x264.h:36:4: warning: #warning You must include stdint.h or inttypes.h before x264.h
check_func x264_encoder_open
check_ld
check_cc
BEGIN /tmp/ffmpeg-conf--4984-.c
1 extern int x264_encoder_open();
2 int main(void){ x264_encoder_open(); }
END /tmp/ffmpeg-conf--4984-.c
gcc -fomit-frame-pointer -c -o /tmp/ffmpeg-conf--4984-.o /tmp/ffmpeg-conf--4984-.c
gcc -o /tmp/ffmpeg-conf--4984- /tmp/ffmpeg-conf--4984-.o -lz -lm -lx264 -lm
/tmp/ffmpeg-conf--4984-.o: In function `main':
ffmpeg-conf--4984-.c:(.text+0xa): undefined reference to `x264_encoder_open'
collect2: ld returned 1 exit status
ERROR: x264 not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment