hi..
I think I have compiled packages with wrong compiler. so now I trying
to compile it with * arm-wince-mingw32ce. *but not sure which one should I
used for this(Eg: arm-mingw32ce-cpp,arm-mingw32ce-gcc or else one ).
can someone help me to select compiler..
On Fri, Jul 11, 2008 at 10:18 AM, Eric Perera <[EMAIL PROTECTED]> wrote:
> hiii
> still I am in mess. Though I cross complied pocketSphinix and
> sphinxBase with CeGCC, was not able to run on Windows CE.
>
> pocketpshinx is a embedded speech recognition engine and you can get to
> know more abut it with its documentation (
> http://www.speech.cs.cmu.edu/pocketsphinx/).
>
> I'm not sure whether i have used correct compiler for that.(I used
> /opt/cegcc/bin/arm-cegcc-gcc to cross compile both these packages)
>
> My requirement is to run pocketSphinx on my WIndows CE mobile phone.
>
> Hope you all response my humble request asap since I have to do it for my
> final project and its deadline is in the next week.
>
> Thanks
>
>
> On Thu, Jul 10, 2008 at 3:05 AM, Eric Perera <[EMAIL PROTECTED]> wrote:
>
>> thank you very much for your reply. I was able to build sphinxBase
>> with your guide lines.
>>
>>
>>
>> On Thu, Jul 10, 2008 at 1:02 PM, Vincent Torri <[EMAIL PROTECTED]>
>> wrote:
>>
>>>
>>>
>>> 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