Hi, Thanks for your help. It's true. I had to point files to the arm files. i have modified my command line by adding --with-ogg-libraries=/armbuild/lib/ . Here is the ogg.h file compiled for arm. But now i have an other error : source='speexdec.c' object='speexdec.o' libtool=no \ depfile='.deps/speexdec.Po' tmpdepfile='.deps/speexdec.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../libspeex -I/usr/include -O2 -fno-exceptions -O2 -fno-exceptions -c `test -f 'speexdec.c' || echo './'`speexdec.c /usr/include/bits/mathinline.h: In function `__atan2l': /usr/include/bits/mathinline.h:445: error: unknown register name `st(1)' in `asm' make[2]: *** [speexdec.o] Erreur 1 make[2]: quittant le r?pertoire ? /usr/src/linphone/arm2/arm/speex-1.1.6/src ? make[1]: *** [all-recursive] Erreur 1 make[1]: quittant le r?pertoire ? /usr/src/linphone/arm2/arm/speex-1.1.6 ? make: *** [all] Erreur 2 I think i had to solve it by the same way above ? But what is the variable i had to modify ? Regards, Erwan ----------------------------------------> Date: Tue, 1 Apr 2008 10:03:36 +0000 > From: ogg.k.ogg.k at googlemail.com > To: mout551 at hotmail.fr > Subject: Re: [ogg-dev] problem with some ogg header files with speex > CC: ogg-dev at xiph.org > >> First you need to remove ogg headers from your build system to avoid a dirty >> conflict between >> your build machine binaries and the arm binaries. They are usually in a >> libogg-dev package (rpm or deb). > > That sounds wrong, gcc should be pointed to the cross compiled includes/libs > anyway, finding them before /usr/include. > >> /usr/lib/libogg.so: could not read symbols: Invalid operation > > This is likely because the format of that file is your host's format, rather the > ARM format. If you've started replacing files, you'd need to replace this one > as well. And the .a archive too, probably. > >> Do i miss somethings ? I had to copy or remove some ogg headers ? > > There has to be another way. You mentioned following a doc, does it not > say some env variables should be set in a specific way ?_________________________________________________________________ Classez, retouchez et partagez vos photos gratuitement avec Galerie de Photos Windows Live ! http://www.windowslive.fr/hotmail/default.asp
ogg.k.ogg.k at googlemail.com
2008-Apr-01 11:03 UTC
[ogg-dev] problem with some ogg header files with speex
> /usr/include/bits/mathinline.h: In function `__atan2l': > /usr/include/bits/mathinline.h:445: error: unknown register name `st(1)' in > `asm'And it's now pulling your system includes, prob <math.h>. You really need to look up a doc on cross compiling, or you'll end up having to copy away all your system to become essentially an ARM machine, but without the actual ARM CPU to go with it. Restore your libogg includes and libs first though. I have no idea what env var may be needed, if any, that was just a suggestion to start looking.
Thanks,I have modified the --prefix option by adding the path of my arm buil system. I has compiled without mistakes.I can continue to the next step. Without mistakes i hope !Regards,Erwan> Date: Tue, 1 Apr 2008 11:03:32 +0000> From: ogg.k.ogg.k at googlemail.com> To: mout551 at hotmail.fr> Subject: Re: [ogg-dev] problem with some ogg header files with speex> CC: ogg-dev at xiph.org> > > /usr/include/bits/mathinline.h: In function `__atan2l':> > /usr/include/bits/mathinline.h:445: error: unknown register name `st(1)' in> > `asm'> > And it's now pulling your system includes, prob <math.h>.> You really need to look up a doc on cross compiling, or you'll end up having> to copy away all your system to become essentially an ARM machine, but> without the actual ARM CPU to go with it.> Restore your libogg includes and libs first though.> I have no idea what env var may be needed, if any, that was just a suggestion> to start looking. _________________________________________________________________ Votre contact a choisi Hotmail, l'e-mail ultra s?curis?. Cr?ez un compte gratuitement ! http://www.windowslive.fr/hotmail/default.asp