重新编译x264解决x264_opencl_load_library 中common/opencl.c:61: undefined reference to `dlopen'

/home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib/libx264.a(opencl.o): In function `x264_opencl_load_library':
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:61: undefined reference to `dlopen'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:66: undefined reference to `dlsym'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:67: undefined reference to `dlsym'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:68: undefined reference to `dlsym'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:69: undefined reference to `dlsym'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:70: undefined reference to `dlsym'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib/libx264.a(opencl.o):/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:71: more undefined references to `dlsym' follow
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib/libx264.a(opencl.o): In function `x264_opencl_load_library':
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:97: undefined reference to `dlclose'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib/libx264.a(opencl.o): In function `x264_opencl_close_library':
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:108: undefined reference to `dlclose'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib/libx264.a(opencl.o): In function `x264_detect_switchable_graphics':
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:679: undefined reference to `dlopen'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:684: undefined reference to `dlsym'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:685: undefined reference to `dlsym'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:686: undefined reference to `dlsym'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:687: undefined reference to `dlsym'
/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build/common/opencl.c:715: undefined reference to `dlclose'
collect2: ld returned 1 exit status

make: *** [all] Error 1



参考 http://ffmpeg.org/pipermail/ffmpeg-user/2013-May/015385.html

加入 

./configure --enable-static --disable-opencl



重新编译x264



root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpegx86/transcoder# source depyasmX86.sh
#######################
X264HOME IS  /home/zhangbin/ffmpeg/ffmpegx86/transcoder
X264DST is /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home
X264BUILD is /home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build
#######################
##########SETENV FOR DEP yasm######
PATH IS /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/bin:/opt/sun_java/jdk1.7.0_17/bin:/opt/sun_java/jdk1.7.0_17/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
LD_LIBRARY_PATH IS /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib:
C_INCLUDE_PATH IS /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/include: 
LIBRARY_PATH IS /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib: 
##########dep yasm done##########
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpegx86/transcoder# ls
buildFFmpegX86_2.1.1.sh   depyasmx264X86.sh        opus
buildFFmpegX86_2.1.1.sh~  depyasmX86.sh            testX264
buildx264X86.sh           depyasmX86.sh~           x264
buildx264X86.sh~          ffmpeg-2.1.1             x264build
buildyasmX86 .sh~         gmon.out                 x264git
buildyasmX86.sh           home                     yasm-1.2.0
depyasmx264X86 .sh        libaacplus-2.0.2         yasm-1.2.0.tar.gz
depyasmx264X86 .sh~       libaacplus-2.0.2.tar.gz
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpegx86/transcoder# source buildx264X86.sh#######################
X264HOME IS  /home/zhangbin/ffmpeg/ffmpegx86/transcoder
X264DST is /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home
X264BUILD is /home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build
#######################
BEGIN CONFIGURE 
platform:      X86
system:        LINUX
cli:           yes
libx264:       internal
shared:        yes
static:        yes
asm:           yes
interlaced:    yes
avs:           avxsynth
lavf:          yes
ffms:          no
mp4:           no
gpl:           yes
thread:        posix
opencl:        no
filters:       resize crop select_every 
debug:         yes
gprof:         yes
strip:         no
PIC:           yes
bit depth:     8
chroma format: all


You can run 'make' or 'make fprofiled' now.
CONFIGURE DONE
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build# make
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o x264.o x264.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o input/input.o input/input.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o input/timecode.o input/timecode.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o input/raw.o input/raw.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o input/y4m.o input/y4m.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o output/raw.o output/raw.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o output/matroska.o output/matroska.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o output/matroska_ebml.o output/matroska_ebml.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o output/flv.o output/flv.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o output/flv_bytestream.o output/flv_bytestream.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o filters/filters.o filters/filters.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o filters/video/video.o filters/video/video.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o filters/video/source.o filters/video/source.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o filters/video/internal.o filters/video/internal.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o filters/video/resize.o filters/video/resize.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o filters/video/cache.o filters/video/cache.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o filters/video/fix_vfr_pts.o filters/video/fix_vfr_pts.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o filters/video/select_every.o filters/video/select_every.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o filters/video/crop.o filters/video/crop.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o filters/video/depth.o filters/video/depth.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o input/avs.o input/avs.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o input/thread.o input/thread.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o input/lavf.o input/lavf.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/mc.o common/mc.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/predict.o common/predict.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/pixel.o common/pixel.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/macroblock.o common/macroblock.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/frame.o common/frame.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/dct.o common/dct.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/cpu.o common/cpu.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/cabac.o common/cabac.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/common.o common/common.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/osdep.o common/osdep.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/rectangle.o common/rectangle.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/set.o common/set.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/quant.o common/quant.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/deblock.o common/deblock.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/vlc.o common/vlc.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/mvpred.o common/mvpred.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/bitstream.o common/bitstream.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o encoder/analyse.o encoder/analyse.c
In file included from encoder/analyse.c:35:0:
encoder/rdo.c: In function ‘x264_rd_cost_mb’:
encoder/cabac.c:1091:17: warning: ‘*((void *)&nnzbak+20).i’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘*((void *)&nnzbak+20).i’ was declared here
encoder/cabac.c:1091:17: warning: ‘*((void *)&nnzbak+12).i’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘*((void *)&nnzbak+12).i’ was declared here
encoder/cabac.c:1091:17: warning: ‘*((void *)&nnzbak+4).i’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘*((void *)&nnzbak+4).i’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[2][1]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[2][1]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[2][0]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[2][0]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[1][1]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[1][1]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[1][0]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[1][0]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[0][1]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[0][1]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[0][0]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[0][0]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[2][3]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[2][3]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[2][2]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[2][2]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[1][3]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[1][3]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[1][2]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[1][2]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[0][3]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[0][3]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[0][2]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[0][2]’ was declared here
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o encoder/me.o encoder/me.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o encoder/ratecontrol.o encoder/ratecontrol.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o encoder/set.o encoder/set.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o encoder/macroblock.o encoder/macroblock.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o encoder/cabac.o encoder/cabac.c
encoder/cabac.c: In function ‘x264_macroblock_write_cabac’:
encoder/cabac.c:1091:17: warning: ‘*((void *)&nnzbak+20).i’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘*((void *)&nnzbak+20).i’ was declared here
encoder/cabac.c:1091:17: warning: ‘*((void *)&nnzbak+12).i’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘*((void *)&nnzbak+12).i’ was declared here
encoder/cabac.c:1091:17: warning: ‘*((void *)&nnzbak+4).i’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘*((void *)&nnzbak+4).i’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[2][1]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[2][1]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[2][0]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[2][0]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[1][1]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[1][1]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[1][0]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[1][0]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[0][1]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[0][1]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[0][0]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[0][0]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[2][3]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[2][3]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[2][2]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[2][2]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[1][3]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[1][3]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[1][2]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[1][2]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[0][3]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[0][3]’ was declared here
encoder/cabac.c:1091:17: warning: ‘nnzbak[0][2]’ may be used uninitialized in this function [-Wuninitialized]
encoder/cabac.c:1048:17: note: ‘nnzbak[0][2]’ was declared here
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o encoder/cavlc.o encoder/cavlc.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o encoder/encoder.o encoder/encoder.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o encoder/lookahead.o encoder/lookahead.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/threadpool.o common/threadpool.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/x86/mc-c.o common/x86/mc-c.c
gcc -Wshadow -O1 -g -m32  -Wall -I. -I. -pg -march=i686 -mfpmath=sse -msse -std=gnu99 -mpreferred-stack-boundary=5       -fPIC -fno-tree-vectorize   -c -o common/x86/predict-c.o common/x86/predict-c.c
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/const-a.o common/x86/const-a.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/cabac-a.o common/x86/cabac-a.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/dct-a.o common/x86/dct-a.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/deblock-a.o common/x86/deblock-a.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/mc-a.o common/x86/mc-a.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/mc-a2.o common/x86/mc-a2.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/pixel-a.o common/x86/pixel-a.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/predict-a.o common/x86/predict-a.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/quant-a.o common/x86/quant-a.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/cpu-a.o common/x86/cpu-a.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/dct-32.o common/x86/dct-32.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/bitstream-a.o common/x86/bitstream-a.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/sad-a.o common/x86/sad-a.asm
yasm -O2 -f elf -DHAVE_ALIGNED_STACK=1 -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -DARCH_X86_64=0 -I./common/x86/ -o common/x86/pixel-32.o common/x86/pixel-32.asm
rm -f libx264.a
ar rc libx264.a  common/mc.o common/predict.o common/pixel.o common/macroblock.o common/frame.o common/dct.o common/cpu.o common/cabac.o common/common.o common/osdep.o common/rectangle.o common/set.o common/quant.o common/deblock.o common/vlc.o common/mvpred.o common/bitstream.o encoder/analyse.o encoder/me.o encoder/ratecontrol.o encoder/set.o encoder/macroblock.o encoder/cabac.o encoder/cavlc.o encoder/encoder.o encoder/lookahead.o common/threadpool.o common/x86/mc-c.o common/x86/predict-c.o common/x86/const-a.o common/x86/cabac-a.o common/x86/dct-a.o common/x86/deblock-a.o common/x86/mc-a.o common/x86/mc-a2.o common/x86/pixel-a.o common/x86/predict-a.o common/x86/quant-a.o common/x86/cpu-a.o common/x86/dct-32.o common/x86/bitstream-a.o common/x86/sad-a.o common/x86/pixel-32.o
ranlib libx264.a
gcc -o x264  x264.o input/input.o input/timecode.o input/raw.o input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_bytestream.o filters/filters.o filters/video/video.o filters/video/source.o filters/video/internal.o filters/video/resize.o filters/video/cache.o filters/video/fix_vfr_pts.o filters/video/select_every.o filters/video/crop.o filters/video/depth.o input/avs.o input/thread.o input/lavf.o libx264.a -ldl -L.  -L/home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib -lavformat -lavcodec -lavutil -lswscale    -L/home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib -lswscale -lavutil    -m32  -pg -lm -lpthread
gcc -o libx264.so.140  common/mc.o common/predict.o common/pixel.o common/macroblock.o common/frame.o common/dct.o common/cpu.o common/cabac.o common/common.o common/osdep.o common/rectangle.o common/set.o common/quant.o common/deblock.o common/vlc.o common/mvpred.o common/bitstream.o encoder/analyse.o encoder/me.o encoder/ratecontrol.o encoder/set.o encoder/macroblock.o encoder/cabac.o encoder/cavlc.o encoder/encoder.o encoder/lookahead.o common/threadpool.o common/x86/mc-c.o common/x86/predict-c.o common/x86/const-a.o common/x86/cabac-a.o common/x86/dct-a.o common/x86/deblock-a.o common/x86/mc-a.o common/x86/mc-a2.o common/x86/pixel-a.o common/x86/predict-a.o common/x86/quant-a.o common/x86/cpu-a.o common/x86/dct-32.o common/x86/bitstream-a.o common/x86/sad-a.o common/x86/pixel-32.o   -shared -Wl,-soname,libx264.so.140  -Wl,-Bsymbolic -m32  -pg -lm -lpthread
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build# make installinstall -d /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/bin
install x264 /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/bin
install -d /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/include
install -d /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib
install -d /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib/pkgconfig
install -m 644 ./x264.h /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/include
install -m 644 x264_config.h /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/include
install -m 644 x264.pc /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib/pkgconfig
ln -f -s libx264.so.140 /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib/libx264.so
install -m 755 libx264.so.140 /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib
install -m 644 libx264.a /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib
ranlib /home/zhangbin/ffmpeg/ffmpegx86/transcoder/home/lib/libx264.a
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpegx86/transcoder/x264build# 

你可能感兴趣的:(多媒体/流媒体/live555)