[Speex-dev] speex - cross compil for ARM - problem ogg headers

Erwan A mout551 at hotmail.fr
Fri Mar 28 03:23:59 PDT 2008


Hi all, 
 
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



> 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.


So i have cross compiled libogg. Then i modified the speex-1.1.6 Makefile by changing the path of the includedir variable:

includedir = $path_of_my_new_cross_compiled_libogg /include

But i have still the same errors.

Anyone have any ideas why this isn't working?

Regards,
Erwan
_________________________________________________________________
Créez gratuitement votre disque dur virtuel Windows Live SkyDrive !
http://skydrive.live.com


More information about the Speex-dev mailing list