Hi As per the Readme.arm I tried to compile the speex. -------------------------------------readme.arm-------------------------------------------------- ........... Cross compiling speex for ARM: ******************************** 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). Then: ................. --------------------------------------------------------------------------------------------------------
I removed libogg-devel from my system and its dependencies like libvorbis-devel, kdelibs-devel, kednetworks..... Then I tried, address@hidden speex-1.1.6]# ./configure --prefix=/usr --host=powerpc-405-linux --with-gnu-ld --disable-static --enable-fixed-point --enable-powerpc-405-asm .... Then during make I got an error saying ogg.h not found.
make[2]: Entering directory `/home/prakash/ppc/linphone/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 \ powerpc-405-linux-gnu-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: No such file or directory 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] Error 1 make[2]: Leaving directory `/home/prakash/ppc/linphone/speex-1.1.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/prakash/ppc/linphone/speex-1.1.6' make: *** [all] Error 2
Then I installed libogg-devel, alone and tried make , now the error is,
powerpc-405-linux-gnu-gcc -O2 -fno-exceptions -o .libs/speexenc speexenc.o wav_io.o ../libspeex/.libs/libspeex.so -L/usr/lib -logg
-lm /opt/powerpc-405-linux/lib/gcc/powerpc-405-linux-gnu/3.4.1/../../../../powerpc-405-linux-gnu/bin/ld: skipping incompatible /usr/lib/libogg.so when searching for -logg /opt/powerpc-405-linux/lib/gcc/powerpc-405-linux-gnu/3.4.1/../../../../powerpc-405-linux-gnu/bin/ld: skipping incompatible /usr/lib/libogg.a when searching for -logg /opt/powerpc-405-linux/lib/gcc/powerpc-405-linux-gnu/3.4.1/../../../../powerpc-405-linux-gnu/bin/ld: cannot find -logg collect2: ld returned 1 exit status make[2]: *** [speexenc] Error 1 make[2]: Leaving directory `/home/prakash/ppc/linphone/speex-1.1.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/prakash/ppc/linphone/speex-1.1.6' make: *** [all] Error 2