[XviD-devel] Xvid cross compile error at ADSP-BF537

王素 wangsu820 at 163.com
Wed Jun 4 13:57:10 CEST 2008


 the version of bfin-uclinux-gcc is 4.1.2
 
here is my error info:
 
+++++++++++++++++++++++++++++++++++++++++++++++++++
[root at localhost generic]# ./configure --host=bfin-uclinux CFLAGS="-Wall -O2 -fstrength-reduce -finline-functions -ffast-math -fomit-frame-pointer"
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... bfin-unknown-uclinux
checking target system type... bfin-unknown-uclinux
checking whether to use default CFLAGS... no
checking for bfin-uclinux-gcc... bfin-uclinux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether bfin-uclinux-gcc accepts -g... yes
checking for bfin-uclinux-gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for bfin-uclinux-ranlib... bfin-uclinux-ranlib
checking for whether to use assembly code... yes
checking for architecture type... bfin
checking how to run the C preprocessor... bfin-uclinux-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int *... yes
checking size of int *... 4
checking whether byte ordering is bigendian... no
checking for build extensions... Unknown OS - Using .so .a .o
checking for platform specific LDFLAGS/CFLAGS... Unknown Platform (Using default -shared -lc -lm)
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
/configure: line 4363: ./gcc-ver: cannot execute binary file
/configure: line 4364: ./gcc-ver: cannot execute binary file
/configure: line 4370: test: : integer expression expected
/configure: line 4379: test: : integer expression expected
configure: creating ./config.status
config.status: creating platform.inc
[root at localhost generic]# 
[root at localhost generic]# make
  D: =build
  C: ./decoder.c
  C: ./encoder.c
  C: ./xvid.c
  C: bitstream/bitstream.c
  C: bitstream/cbp.c
  C: bitstream/mbcoding.c
  C: dct/fdct.c
  C: dct/idct.c
  C: dct/simple_idct.c
  C: image/colorspace.c
  C: image/image.c
  C: image/interpolate8x8.c
  C: image/font.c
  C: image/postprocessing.c
  C: image/qpel.c
  C: image/reduced.c
  C: motion/estimation_bvop.c
  C: motion/estimation_common.c
  C: motion/estimation_gmc.c
  C: motion/estimation_pvop.c
  C: motion/estimation_rd_based.c
  C: motion/estimation_rd_based_bvop.c
  C: motion/gmc.c
  C: motion/motion_comp.c
  C: motion/vop_type_decision.c
  C: motion/sad.c
  C: prediction/mbprediction.c
  C: plugins/plugin_single.c
  C: plugins/plugin_2pass1.c
  C: plugins/plugin_2pass2.c
  C: plugins/plugin_lumimasking.c
  C: plugins/plugin_dump.c
  C: plugins/plugin_psnr.c
  C: quant/quant_h263.c
  C: quant/quant_matrix.c
  C: quant/quant_mpeg.c
  C: utils/emms.c
  C: utils/mbtransquant.c
  C: utils/mem_align.c
  C: utils/mem_transfer.c
  C: utils/timer.c
  L: libxvidcore.a
  L: libxvidcore.so
/home/seuic/h_SlaveH_CentOS5H2nd/ip_camera_bf536/toolchain/svn-root-uclinux/bin/../bfin-uclinux/runtime/usr/lib/crt1.o: In function `__start':
libc/sysdeps/linux/bfin/crt1.S:141: undefined reference to `_main'
libc/sysdeps/linux/bfin/crt1.S:142: undefined reference to `_main'
encoder.o: In function `_FrameCodeP':
./../src/encoder.c:(.text+0x1340): undefined reference to `_sqrtf'
image/image.o: In function `_sse_to_PSNR':
./../src/image/image.c:(.text+0x17b6): undefined reference to `_log10f'
image/image.o: In function `_image_psnr':
./../src/image/image.c:(.text+0x1868): undefined reference to `_log10f'
image/postprocessing.o: In function `_init_noise':
./../src/image/postprocessing.c:(.text+0x7338): undefined reference to `_log'
./../src/image/postprocessing.c:(.text+0x7354): undefined reference to `_sqrt'
collect2: ld returned 1 exit status
make: *** [libxvidcore.so] Error 1
[root at localhost generic]# 
+++++++++++++++++++++++++++++++++++++++++++++++++++
 
 
 

--
Matthew Email: wangsu820 at 163.com 


More information about the XviD-devel mailing list