Erwan A
2008-Mar-25 16:24 UTC
[Speex-dev] speex - cross compil for ARM - problem ogg headers
Hi, I try to compile speex for ARM. I follow the README.arm and i always have the same errors : make[2]: entrant dans le r?pertoire ? /usr/src/linphone/arm/speex-1.1.6/src ? source='speexenc.c' object='speexenc.o' libtool=no \ depfile='.deps/speexenc.Po' tmpdepfile='.deps/speexenc.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 'speexenc.c' || echo './'`speexenc.c speexenc.c:49:21: ogg/ogg.h: Aucun fichier ou r?pertoire de ce type speexenc.c:73: error: parse error before '*' token speexenc.c: In function `oe_write_page': speexenc.c:76: error: `page' undeclared (first use in this function) speexenc.c:76: error: (Each undeclared identifier is reported only once speexenc.c:76: error: for each function it appears in.) speexenc.c:76: error: `fp' undeclared (first use in this function) speexenc.c: In function `main': speexenc.c:272: error: `ogg_stream_state' undeclared (first use in this function) speexenc.c:272: error: parse error before "os" speexenc.c:273: error: `ogg_page' undeclared (first use in this function) speexenc.c:274: error: `ogg_packet' undeclared (first use in this function) speexenc.c:443: error: `os' undeclared (first use in this function) speexenc.c:641: error: `op' undeclared (first use in this function) speexenc.c:657: error: `og' undeclared (first use in this function) make[2]: *** [speexenc.o] Erreur 1 make[2]: quittant le r?pertoire ? /usr/src/linphone/arm/speex-1.1.6/src ? I have remove the file /usr/include/ogg/ogg.h. Someone can help me Thanks, Erwan _________________________________________________________________ Cr?ez gratuitement votre disque dur virtuel Windows Live SkyDrive ! http://skydrive.live.com
Alexander Chemeris
2008-Mar-25 19:22 UTC
[Speex-dev] speex - cross compil for ARM - problem ogg headers
Hi, You should never point cross compiler to host includes, this may lead to unpredictable results. You should cross-compile libogg and poiint to crosscompiled version for includes. Hopefully this will solve your problem. -- Regards, Alexander Chemeris. SIPez LLC. SIP VoIP, IM and Presence Consulting http://www.SIPez.com tel: +1 (617) 273-4000