On Thu, 10 Jul 2008, Eric Perera wrote:
> Thanks a lot for your quick reply. > > I tried it again with following command, unfortunately it gives another > error. > > ./configure CC= /opt/cegcc/bin/arm-cegcc-gcc --enable-fixed > --without-lapack --target=arm-wince-pe --build=i686-linux > --prefix=/home/eric/WinCE/sphinxBase > > configure: WARNING: you should use --build, --host, --target > configure: WARNING: invalid host type: /opt/cegcc/bin/arm-cegcc-gcc > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /bin/mkdir -p > checking for gawk... no > checking for mawk... mawk > checking whether make sets $(MAKE)... yes > checking for /opt/cegcc/bin/arm-cegcc-gcc-strip... no > checking for strip... strip > configure: WARNING: In the future, Autoconf will not detect cross-tools > whose name does not start with the host triplet. If you think this > configuration is useful to you, please write to [EMAIL PROTECTED] > checking build system type... i686-pc-linux-gnu > checking host system type... Invalid configuration > `/opt/cegcc/bin/arm-cegcc-gcc': machine `/opt/cegcc/bin/arm-cegcc' not > recognized > configure: error: /bin/bash ./config.sub /opt/cegcc/bin/arm-cegcc-gcc failed > > pls give some help me to resolve this. Step 1: try to update autoconf and automake to the latest versions (autoconf 2.62 and automake 1.10.1). They work for me. I didn't try with other versions. Step 2: use a specific configuration of the env vars when cross compiling. For example, I use: export CEGCC_PATH=$HOME/local/opt/cegcc export WINCE_PATH=$HOME/WinCE/sphinxBase export PATH=$CEGCC_PATH/bin:$PATH export CPPFLAGS="-I$WINCE_PATH/include" export LDFLAGS="-L$WINCE_PATH/lib -L$CEGCC_PATH/lib" export LD_LIBRARY_PATH="$WINCE_PATH/bin" export PKG_CONFIG_PATH="$WINCE_PATH/lib/pkgconfig" update CEGCC_PATH (where cegcc is installed) and WINCE_PATH (where you install your windows ce progs / libs) to what you want Step 3: * Search in config.sub (in the top level source dir of the prog you want to port) the word 'mingw'. You will found: mingw32) basic_machine=i386-pc os=-mingw32 ;; Add after the ';;' the following code: cegcc) basic_machine=arm-unknown os=-cegcc ;; * Search in the same file '-pe'. You will find a line like this one: | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ Add '-cegcc* |' to have something like: | -cygwin* | -cegcc* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ Step 4: compile like that: actually, I was wrong. --host is correct. I use it :p Sorry ./configure --host=arm-wince-cegcc --prefix=$WINCE_PATH --enable-fixed --without-lapack --build should be useless, I think hope it will work In a near future, Step 3 will be useless (I hope) Vincent ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel