Dears:

I want to cross-compile Xvid codec(http://www.xvid.org/)(from svn) with
cegcc(compiled from svn) for my WM 5.0 device,
I tried for several days and now I was stuck on some problem.

Following is My configure command,

./configure CC=/opt/cegcc/bin/arm-wince-cegcc-gcc --host=arm
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-gnuaout
checking host system type... arm-unknown-none
checking target system type... arm-unknown-none
checking whether to use default CFLAGS... yes
checking for arm-gcc... /opt/cegcc/bin/arm-wince-cegcc-gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /opt/cegcc/bin/arm-wince-cegcc-gcc accepts -g... yes
checking for /opt/cegcc/bin/arm-wince-cegcc-gcc option to accept ANSI C...
none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for arm-ranlib... no
checking for ranlib... ranlib
checking for whether to use assembly code... yes
checking for architecture type... arm
checking how to run the C preprocessor... /opt/cegcc/bin/arm-wince-cegcc-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... no
checking for strings.h... no
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
Info: resolving _CRT_MT by linking to __imp__CRT_MT (auto-import)
./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

And when I make it....
it shows error as following..."unrecognized command........"

[EMAIL PROTECTED] generic]# make
D: =build
C: ./decoder.c
cc1: error: unrecognized command line option "-freduce-all-givs"

After trial and error several times,I remove "-freduce-all-givs" command in
generated file "platform.inc".
and new Error COMES as following~

I can't slove this problem so far, any suggestion??
Thanks a lot!!

Hudson

[EMAIL PROTECTED] 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
Info: resolving _CRT_MT by linking to __imp__CRT_MT (auto-import)
/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/lib/libcegcc.dll.a(
main.o): In function `main':
/etc/cegcc/src/newlib/newlib/libc/sys/wince/main.c:8: undefined reference to
`WinMain'
collect2: ld returned 1 exit status
make: *** [libxvidcore.so] Error 1
[EMAIL PROTECTED] generic]#
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to