Advertisement
Guest User

Untitled

a guest
Mar 14th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.25 KB | None | 0 0
  1. Compilation error on CentOS 6.5. Only using a subset of libs. Followed largely https://trac.ffmpeg.org/wiki/CentosCompilationGuide. I use a slightly  different prefix. Had to modify in Section FFmpeg
  2. > PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
  3. > export PKG_CONFIG_PATH
  4. to
  5. > export PKG_CONFIG_PATH="$HORNET_PREFIX/lib/pkgconfig".
  6.  
  7. This gives me:
  8. echo $PKG_CONFIG_PATH
  9. /home/bgeese2s-local/hornet_dist/lib/pkgconfig
  10.  
  11. And furthermore:
  12. pkg-config --cflags opus x264
  13. -I/home/bgeese2s-local/hornet_dist/include/opus -I/home/bgeese2s-local/hornet_dist/include  
  14.  
  15. However i get libx264 not found:
  16. ./configure --prefix="$HORNET_PREFIX" --extra-cflags="-I$HORNET_PREFIX/include" --extra-ldflags="-L$HORNET_PREFIX/lib" --enable-gpl --enable-libopus --enable-libx264
  17. ERROR: libx264 not found
  18.  
  19. Here is the bottom of config.log:
  20. BEGIN /tmp/ffconf.zcAFkqRZ.c
  21.     1   #include <opus_multistream.h>
  22.     2   long check_opus_multistream_decoder_create(void) { return (long) opus_multistream_decoder_create; }
  23.     3   int main(void) { return 0; }
  24. END /tmp/ffconf.zcAFkqRZ.c
  25. gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/home/bgeese2s-local/hornet_dist/include -std=c99 -fomit-frame-pointer -pthread -I/home/bgeese2s-local/hornet_dist/include/opus -L/home/bgeese2s-local/hornet_dist/lib -c -o /tmp/ffconf.SLJs6mAV.o /tmp/ffconf.zcAFkqRZ.c
  26. gcc -L/home/bgeese2s-local/hornet_dist/lib -Wl,--as-needed -I/home/bgeese2s-local/hornet_dist/include/opus -L/home/bgeese2s-local/hornet_dist/lib -o /tmp/ffconf.bfsabQjg /tmp/ffconf.SLJs6mAV.o -lopus -lm -pthread -lz -lrt
  27. check_lib x264.h x264_encoder_encode -lx264
  28. check_header x264.h
  29. check_cpp
  30. BEGIN /tmp/ffconf.zcAFkqRZ.c
  31.     1   #include <x264.h>
  32.     2   int x;
  33. END /tmp/ffconf.zcAFkqRZ.c
  34. gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/home/bgeese2s-local/hornet_dist/include -std=c99 -fomit-frame-pointer -pthread -I/home/bgeese2s-local/hornet_dist/include/opus -E -o /tmp/ffconf.SLJs6mAV.o /tmp/ffconf.zcAFkqRZ.c
  35. In file included from /tmp/ffconf.zcAFkqRZ.c:1:
  36. /home/bgeese2s-local/hornet_dist/include/x264.h:36:4: warning: #warning You must include stdint.h or inttypes.h before x264.h
  37. check_func x264_encoder_encode -lx264
  38. check_ld cc -lx264
  39. check_cc
  40. BEGIN /tmp/ffconf.zcAFkqRZ.c
  41.     1   extern int x264_encoder_encode();
  42.     2   int main(void){ x264_encoder_encode(); }
  43. END /tmp/ffconf.zcAFkqRZ.c
  44. gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/home/bgeese2s-local/hornet_dist/include -std=c99 -fomit-frame-pointer -pthread -I/home/bgeese2s-local/hornet_dist/include/opus -c -o /tmp/ffconf.SLJs6mAV.o /tmp/ffconf.zcAFkqRZ.c
  45. gcc -L/home/bgeese2s-local/hornet_dist/lib -Wl,--as-needed -o /tmp/ffconf.bfsabQjg /tmp/ffconf.SLJs6mAV.o -lx264 -L/home/bgeese2s-local/hornet_dist/lib -lopus -lm -pthread -lz -lrt
  46. /home/bgeese2s-local/hornet_dist/lib/libx264.a(opencl.o): In function `x264_opencl_close_library':
  47. opencl.c:(.text+0x5f1): undefined reference to `dlclose'
  48. /home/bgeese2s-local/hornet_dist/lib/libx264.a(opencl.o): In function `x264_opencl_load_library':
  49. opencl.c:(.text+0x643): undefined reference to `dlopen'
  50. opencl.c:(.text+0x65c): undefined reference to `dlsym'
  51. opencl.c:(.text+0x676): undefined reference to `dlsym'
  52. opencl.c:(.text+0x690): undefined reference to `dlsym'
  53. opencl.c:(.text+0x6aa): undefined reference to `dlsym'
  54. opencl.c:(.text+0x6c4): undefined reference to `dlsym'
  55. /home/bgeese2s-local/hornet_dist/lib/libx264.a(opencl.o):opencl.c:(.text+0x6de): more undefined references to `dlsym' follow
  56. /home/bgeese2s-local/hornet_dist/lib/libx264.a(opencl.o): In function `x264_opencl_load_library':
  57. opencl.c:(.text+0x944): undefined reference to `dlclose'
  58. /home/bgeese2s-local/hornet_dist/lib/libx264.a(opencl.o): In function `x264_opencl_lookahead_init':
  59. opencl.c:(.text+0x1916): undefined reference to `dlopen'
  60. opencl.c:(.text+0x1931): undefined reference to `dlsym'
  61. opencl.c:(.text+0x1945): undefined reference to `dlsym'
  62. opencl.c:(.text+0x195c): undefined reference to `dlsym'
  63. opencl.c:(.text+0x1970): undefined reference to `dlsym'
  64. opencl.c:(.text+0x19a6): undefined reference to `dlclose'
  65. collect2: ld returned 1 exit status
  66. ERROR: libx264 not found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement