[x264-devel] cross-compile libx264 failure
董 瑞涛
donreason at gmail.com
Wed Jun 12 16:27:49 CEST 2013
HI,
when I cross-compile libx264, there are some error. I have to changed the MakeFile to proceed:
1. add a space after each $(LD) and $(AR)
2. add "-r" after each $(AR)
3. delete $@ after each $(LD)
when make, I cannot use LD=/dir/powerpc-linux-ld, but only LD=/dir/powerpc-linux-gcc. Or other wise it cannot pass.
here is the message, will someone help me?
#./configure --enable-static --host=ppc-linux --disable-asm --prefix=/usr/local/powerpc-none-linux-gnuspe
platform: PPC
system: LINUX
cli: yes
libx264: internal
shared: no
static: yes
asm: no
interlaced: yes
avs: avxsynth
lavf: no
ffms: no
gpac: no
gpl: yes
thread: posix
opencl: yes
filters: crop select_every
debug: no
gprof: no
strip: no
PIC: no
visualize: no
bit depth: 8
chroma format: all
#make CC=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc RANLIB=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ranlib LD=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ld AR=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ar STRIP=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-strip
…
…
…
/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ld: warning: cannot find entry symbol _start; defaulting to 10001524
x264.o: In function `print_status':
x264.c:(.text+0x184): undefined reference to `__floatdidf'
x264.c:(.text+0x1ac): undefined reference to `__floatdidf'
x264.c:(.text+0x238): undefined reference to `__divdi3'
x264.c:(.text+0x3ac): undefined reference to `__floatdidf'
x264.c:(.text+0x3f0): undefined reference to `__floatdidf'
x264.o: In function `encode':
x264.c:(.text+0x744): undefined reference to `__divdi3'
x264.c:(.text+0x750): undefined reference to `__divdi3'
x264.c:(.text+0x970): undefined reference to `__fixdfdi'
x264.c:(.text+0xa40): undefined reference to `__floatdidf'
x264.c:(.text+0xd70): undefined reference to `__floatdidf'
x264.c:(.text+0xdbc): undefined reference to `__fixdfdi'
x264.c:(.text+0xf18): undefined reference to `__floatdidf'
x264.c:(.text+0xfec): undefined reference to `__floatdidf'
x264.c:(.text+0x1030): undefined reference to `__floatdidf'
x264.c:(.text+0x126c): undefined reference to `__floatdidf'
x264.o: In function `main':
x264.c:(.text+0x3fd8): undefined reference to `__floatundidf'
x264.c:(.text+0x3ff8): undefined reference to `__floatundidf'
input/input.o: In function `x264_cli_pic_plane_size':
input.c:(.text+0x120): undefined reference to `__floatundisf'
input.c:(.text+0x128): undefined reference to `__fixunssfdi'
input.c:(.text+0x17c): undefined reference to `__floatundisf'
input.c:(.text+0x184): undefined reference to `__fixunssfdi'
input/input.o: In function `x264_cli_pic_alloc':
input.c:(.text+0x2e0): undefined reference to `__floatundisf'
input.c:(.text+0x370): undefined reference to `__fixunssfdi'
input.c:(.text+0x62c): undefined reference to `__fixunssfdi'
input/input.o: In function `x264_cli_pic_size':
input.c:(.text+0x6cc): undefined reference to `__floatundisf'
input.c:(.text+0x704): undefined reference to `__fixunssfdi'
input.c:(.text+0x7a8): undefined reference to `__fixunssfdi'
input/timecode.o: In function `try_mkv_timebase_den':
timecode.c:(.text+0x254): undefined reference to `__fixunsdfdi'
timecode.c:(.text+0x2fc): undefined reference to `__umoddi3'
input/timecode.o: In function `correct_fps':
timecode.c:(.text+0x444): undefined reference to `__floatundidf'
timecode.c:(.text+0x4a4): undefined reference to `__fixunsdfdi'
timecode.c:(.text+0x53c): undefined reference to `__floatundidf'
timecode.c:(.text+0x5ac): undefined reference to `__umoddi3'
timecode.c:(.text+0x5d4): undefined reference to `__udivdi3'
input/timecode.o: In function `open_file':
timecode.c:(.text+0xe60): undefined reference to `__floatundidf'
timecode.c:(.text+0xee0): undefined reference to `__fixunsdfdi'
timecode.c:(.text+0xf38): undefined reference to `__umoddi3'
timecode.c:(.text+0xf64): undefined reference to `__udivdi3'
timecode.c:(.text+0xf9c): undefined reference to `__floatundidf'
timecode.c:(.text+0x12b0): undefined reference to `__umoddi3'
timecode.c:(.text+0x12f4): undefined reference to `__udivdi3'
timecode.c:(.text+0x1318): undefined reference to `__udivdi3'
timecode.c:(.text+0x138c): undefined reference to `__floatundidf'
timecode.c:(.text+0x13a8): undefined reference to `__floatundidf'
timecode.c:(.text+0x1400): undefined reference to `__fixdfdi'
input/timecode.o: In function `read_frame':
timecode.c:(.text+0x1b30): undefined reference to `__floatundidf'
timecode.c:(.text+0x1b48): undefined reference to `__floatundidf'
timecode.c:(.text+0x1b88): undefined reference to `__fixdfdi'
timecode.c:(.text+0x1bb0): undefined reference to `__floatundidf'
timecode.c:(.text+0x1bc8): undefined reference to `__floatundidf'
timecode.c:(.text+0x1c24): undefined reference to `__fixdfdi'
input/raw.o: In function `open_file':
raw.c:(.text+0x21c): undefined reference to `__udivdi3'
raw.c:(.text+0x450): undefined reference to `__udivdi3'
input/y4m.o: In function `open_file':
y4m.c:(.text+0x6a4): undefined reference to `__udivdi3'
y4m.c:(.text+0x884): undefined reference to `__udivdi3'
output/matroska.o: In function `set_param':
matroska.c:(.text+0xa4): undefined reference to `__divdi3'
matroska.c:(.text+0xf8): undefined reference to `__divdi3'
matroska.c:(.text+0x11c): undefined reference to `__divdi3'
output/matroska.o: In function `close_file':
matroska.c:(.text+0x184): undefined reference to `__divdi3'
matroska.c:(.text+0x188): undefined reference to `__floatdidf'
matroska.c:(.text+0x1c0): undefined reference to `__fixdfdi'
output/matroska.o: In function `write_frame':
matroska.c:(.text+0x294): undefined reference to `__floatdidf'
matroska.c:(.text+0x2f4): undefined reference to `__fixdfdi'
output/matroska_ebml.o: In function `mk_flush_frame':
matroska_ebml.c:(.text+0x1308): undefined reference to `__divdi3'
matroska_ebml.c:(.text+0x1490): undefined reference to `__divdi3'
output/matroska_ebml.o: In function `mk_close':
matroska_ebml.c:(.text+0x1dec): undefined reference to `__floatdidf'
matroska_ebml.c:(.text+0x1e04): undefined reference to `__floatdidf'
output/flv.o: In function `write_frame':
flv.c:(.text+0xa4): undefined reference to `__floatdidf'
flv.c:(.text+0xd8): undefined reference to `__fixdfdi'
flv.c:(.text+0xf4): undefined reference to `__floatdidf'
flv.c:(.text+0x124): undefined reference to `__fixdfdi'
flv.c:(.text+0x340): undefined reference to `__divdi3'
flv.c:(.text+0x35c): undefined reference to `__floatdidf'
flv.c:(.text+0x390): undefined reference to `__fixdfdi'
flv.c:(.text+0x3e4): undefined reference to `__floatdidf'
flv.c:(.text+0x41c): undefined reference to `__fixdfdi'
flv.c:(.text+0x450): undefined reference to `__floatdidf'
flv.c:(.text+0x484): undefined reference to `__fixdfdi'
flv.c:(.text+0x510): undefined reference to `__floatdidf'
flv.c:(.text+0x54c): undefined reference to `__fixdfdi'
output/flv.o: In function `close_file':
flv.c:(.text+0xd50): undefined reference to `__floatdidf'
flv.c:(.text+0xe48): undefined reference to `__floatundidf'
flv.c:(.text+0xee4): undefined reference to `__floatundidf'
flv.c:(.text+0xfbc): undefined reference to `__floatdidf'
filters/video/select_every.o: In function `init':
select_every.c:(.text+0x4b0): undefined reference to `__udivdi3'
libx264.a(common.o): In function `x264_reduce_fraction64':
common.c:(.text+0x10c): undefined reference to `__umoddi3'
common.c:(.text+0x130): undefined reference to `__umoddi3'
common.c:(.text+0x164): undefined reference to `__udivdi3'
common.c:(.text+0x180): undefined reference to `__udivdi3'
libx264.a(set.o): In function `x264_validate_levels':
set.c:(.text+0x288): undefined reference to `__divdi3'
libx264.a(encoder.o): In function `x264_encoder_open_133':
encoder.c:(.text+0x3f84): undefined reference to `__udivdi3'
libx264.a(encoder.o): In function `x264_encoder_frame_end':
encoder.c:(.text+0x651c): undefined reference to `__floatdidf'
encoder.c:(.text+0x6594): undefined reference to `__floatdidf'
encoder.c:(.text+0x6600): undefined reference to `__floatdidf'
encoder.c:(.text+0x6668): undefined reference to `__floatdidf'
libx264.a(encoder.o): In function `x264_encoder_close':
encoder.c:(.text+0x6a94): undefined reference to `__floatdidf'
libx264.a(encoder.o):encoder.c:(.text+0x6b18): more undefined references to `__floatdidf' follow
libx264.a(set.o): In function `x264_cqm_init':
set.c:(.text+0x1120): undefined reference to `__udivdi3'
set.c:(.text+0x1164): undefined reference to `__udivdi3'
set.c:(.text+0x11a8): undefined reference to `__udivdi3'
set.c:(.text+0x11ec): undefined reference to `__udivdi3'
set.c:(.text+0x1230): undefined reference to `__udivdi3'
libx264.a(set.o):set.c:(.text+0x1274): more undefined references to `__udivdi3' follow
libx264.a(analyse.o): In function `x264_weights_analyse':
analyse.c:(.text+0x102d0): undefined reference to `__floatundisf'
analyse.c:(.text+0x102e0): undefined reference to `__floatundisf'
analyse.c:(.text+0x10358): undefined reference to `__floatundisf'
analyse.c:(.text+0x10368): undefined reference to `__floatundisf'
analyse.c:(.text+0x103d8): undefined reference to `__floatundisf'
libx264.a(analyse.o):analyse.c:(.text+0x103e8): more undefined references to `__floatundisf' follow
libx264.a(analyse.o): In function `x264_slicetype_frame_cost':
analyse.c:(.text+0x11014): undefined reference to `__udivdi3'
analyse.c:(.text+0x11460): undefined reference to `__udivdi3'
libx264.a(analyse.o): In function `x264_slicetype_analyse':
analyse.c:(.text+0x18290): undefined reference to `__floatdidf'
analyse.c:(.text+0x182d4): undefined reference to `__floatdidf'
analyse.c:(.text+0x183e0): undefined reference to `__floatdidf'
analyse.c:(.text+0x18424): undefined reference to `__floatdidf'
libx264.a(analyse.o): In function `x264_slicetype_decide':
analyse.c:(.text+0x19498): undefined reference to `__floatdidf'
libx264.a(analyse.o):analyse.c:(.text+0x19b00): more undefined references to `__floatdidf' follow
libx264.a(analyse.o): In function `x264_mb_analyse_transform_rd':
analyse.c:(.text+0x22fb0): undefined reference to `__divdi3'
libx264.a(ratecontrol.o): In function `x264_hrd_fullness':
ratecontrol.c:(.text+0x720): undefined reference to `__udivdi3'
ratecontrol.c:(.text+0x760): undefined reference to `__udivdi3'
ratecontrol.c:(.text+0x794): undefined reference to `__floatundisf'
ratecontrol.c:(.text+0x7a4): undefined reference to `__floatdisf'
ratecontrol.c:(.text+0x7d0): undefined reference to `__floatundisf'
ratecontrol.c:(.text+0x858): undefined reference to `__udivdi3'
ratecontrol.c:(.text+0x890): undefined reference to `__udivdi3'
libx264.a(ratecontrol.o): In function `x264_adaptive_quant_frame':
ratecontrol.c:(.text+0x165c): undefined reference to `__udivdi3'
ratecontrol.c:(.text+0x16d8): undefined reference to `__udivdi3'
ratecontrol.c:(.text+0x1740): undefined reference to `__udivdi3'
libx264.a(ratecontrol.o): In function `get_qscale':
ratecontrol.c:(.text+0x3634): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0x3788): undefined reference to `__floatdidf'
libx264.a(ratecontrol.o): In function `x264_ratecontrol_init_reconfigurable':
ratecontrol.c:(.text+0x3c54): undefined reference to `__fixdfdi'
libx264.a(ratecontrol.o): In function `init_pass2':
ratecontrol.c:(.text+0x430c): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0x4368): undefined reference to `__fixunsdfdi'
ratecontrol.c:(.text+0x4624): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0x4748): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0x4b9c): undefined reference to `__floatundidf'
ratecontrol.c:(.text+0x5330): undefined reference to `__fixunsdfdi'
ratecontrol.c:(.text+0x57ac): undefined reference to `__floatundidf'
ratecontrol.c:(.text+0x58d4): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0x5ccc): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0x6170): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0x62e0): undefined reference to `__fixunsdfdi'
ratecontrol.c:(.text+0x649c): undefined reference to `__fixdfdi'
ratecontrol.c:(.text+0x64cc): undefined reference to `__fixdfdi'
ratecontrol.c:(.text+0x68b4): undefined reference to `__floatdidf'
libx264.a(ratecontrol.o): In function `x264_ratecontrol_new':
ratecontrol.c:(.text+0x6ec8): undefined reference to `__udivdi3'
ratecontrol.c:(.text+0x6ee8): undefined reference to `__udivdi3'
ratecontrol.c:(.text+0x6eec): undefined reference to `__floatundidf'
libx264.a(ratecontrol.o): In function `x264_ratecontrol_end':
ratecontrol.c:(.text+0xa0b0): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0xa1ac): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0xa6d8): undefined reference to `__udivdi3'
ratecontrol.c:(.text+0xa730): undefined reference to `__floatdidf'
libx264.a(ratecontrol.o): In function `rate_estimate_qscale':
ratecontrol.c:(.text+0xa9c8): undefined reference to `__fixdfdi'
ratecontrol.c:(.text+0xaa08): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0xaaec): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0xaf38): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0xafa0): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0xb1c8): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0xb214): undefined reference to `__fixdfdi'
ratecontrol.c:(.text+0xb23c): undefined reference to `__floatundidf'
ratecontrol.c:(.text+0xb270): undefined reference to `__floatundidf'
ratecontrol.c:(.text+0xb360): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0xb3b0): undefined reference to `__fixdfdi'
libx264.a(ratecontrol.o): In function `x264_ratecontrol_start':
ratecontrol.c:(.text+0xc050): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0xc09c): undefined reference to `__divdi3'
ratecontrol.c:(.text+0xc0a0): undefined reference to `__floatdidf'
ratecontrol.c:(.text+0xc388): undefined reference to `__floatdidf'
libx264.a(macroblock.o): In function `x264_noise_reduction_update':
macroblock.c:(.text+0x1538): undefined reference to `__udivdi3'
make: *** [x264] error 1
More information about the x264-devel
mailing list