markus-perl / ffmpeg-build-script

The FFmpeg build script provides an easy way to build a static FFmpeg on OSX and Linux with non-free codecs included.
MIT License
1.05k stars 334 forks source link

Error while running on Ubuntu #16

Closed shailenderjain closed 5 years ago

shailenderjain commented 6 years ago

rm -f libx264.a gcc-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/ratec ontrol.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/p redict-c.o common/opencl.o encoder/slicetype-cl.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/m c-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-64.o common/x86/bitstream-a.o common/x86/sad-a.o common/x8 6/trellis-64.o gcc-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 f ilters/video/select_every.o filters/video/crop.o filters/video/depth.o input/avs.o input/thread.o libx264.a -ldl -m64 -lm -lpthread -ldl /usr/bin/ld: libx264.a(cabac-a.o): relocation R_X86_64_32 against symbol x264_cabac_range_lps' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: libx264.a(quant-a.o): relocation R_X86_64_32 against hidden symbolx264_pb_01' can not be used when making a shared object /usr/bin/ld: libx264.a(dct-a.o): relocation R_X86_64_32 against hidden symbol x264_pw_8000' can not be used when making a shared object /usr/bin/ld: libx264.a(deblock-a.o): relocation R_X86_64_32 against hidden symbolx264_pb_1' can not be used when making a shared object /usr/bin/ld: libx264.a(mc-a.o): relocation R_X86_64_32 against hidden symbol x264_pw_64' can not be used when making a shared object /usr/bin/ld: libx264.a(mc-a2.o): relocation R_X86_64_32 against hidden symbolx264_pw_32' can not be used when making a shared object /usr/bin/ld: libx264.a(pixel-a.o): relocation R_X86_64_32 against hidden symbol x264_pw_00ff' can not be used when making a shared object /usr/bin/ld: libx264.a(predict-a.o): relocation R_X86_64_32 against hidden symbolx264_pb_1' can not be used when making a shared object /usr/bin/ld: libx264.a(dct-64.o): relocation R_X86_64_32 against hidden symbol x264_hsub_mul' can not be used when making a shared object /usr/bin/ld: libx264.a(sad-a.o): relocation R_X86_64_32 against hidden symbolx264_pw_8' can not be used when making a shared object /usr/bin/ld: libx264.a(trellis-64.o): relocation R_X86_64_32 against symbol `x264_cabac_entropy' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status Makefile:202: recipe for target 'x264' failed make: *** [x264] Error 1 Failed to Execute make -j 4

shailenderjain commented 6 years ago

These are the details of OS Operating System: Debian GNU/Linux 9 (stretch) Kernel: Linux 4.9.0-6-amd64 Architecture: x86-64

rsnk96 commented 6 years ago

Were you trying to make a shared object? (Did you replace --disable-shared with --enable-shared?)