IIRC, under ARM, I believe I was having issues with --without-libogg.<br>I
resorted to just downloading libogg sources, setting up my
cross-compilation environment, and cross compiling it per the general
build directions (./configure, make, make install), then went back to
building speex -- everything worked like a charm for me then.<br>
<br>So -- Conrad. *Make sure* that you have libogg cross-compiled and
installed to your cross-compilation environment before you compile
speex.<br><br>Make doubly sure that you're not pulling in your host's
header files or libraries. This is *very* important -- it will keep
breaking if you do.<br><br><br><div class="gmail_quote">On Tue, Apr 1, 2008 at 12:05 PM, Jean-Marc Valin <<a href="mailto:jean-marc.valin@usherbrooke.ca">jean-marc.valin@usherbrooke.ca</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think --without-libogg should do the trick, no? (though I haven't<br>
actually tried it)<br>
<br>
Jean-Marc<br>
<br>
Conrad Parker a écrit :<br>
<div><div></div><div class="Wj3C7c">> On 01/04/2008, Erwan A <<a href="mailto:mout551@hotmail.fr">mout551@hotmail.fr</a>> wrote:<br>
>> Hi,<br>
>><br>
>> Yes i agree with you. You don't have to delete these files.<br>
>><br>
>> But if i cross compile with ogg header files, i have the following error :<br>
>><br>
>><br>
>> /usr/lib/libogg.so: could not read symbols: Invalid operation<br>
>> collect2: ld returned 1 exit status<br>
>> make[2]: *** [speexenc] Erreur 1<br>
>> make[2]: quittant le répertoire « /usr/src/linphone/arm/speex-1.1.6/src »<br>
>> make[1]: *** [all-recursive] Erreur 1<br>
>> make[1]: quittant le répertoire « /usr/src/linphone/arm/speex-1.1.6 »<br>
>> make: *** [all] Erreur 2<br>
>><br>
>><br>
>><br>
>> Anyone have any ideas why this isn't working?<br>
><br>
> It looks like it's trying to link against your host libogg, not the<br>
> cross-compiled version.<br>
><br>
> Perhaps you should set your PKG_CONFIG_PATH to point to the where your<br>
> cross-compiled libogg.pc is, or just use the --with-ogg-libraries=DIR<br>
> option to ./configure.<br>
><br>
> cheers,<br>
><br>
> Conrad.<br>
><br>
>> Regards,<br>
>> Erwan<br>
>><br>
>> ----------------------------------------<br>
>> > Date: Tue, 1 Apr 2008 18:26:27 +0900<br>
>> > From: <a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a><br>
>> > To: <a href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</a><br>
>> > Subject: Re: [Speex-dev] cross compilation for ARM - ogg headers problem<br>
>><br>
>> > Hi,<br>
>> ><br>
>> > this problem seems to be coming up a lot lately -- the README.arm in<br>
>> > linphone tells people to remove libogg headers, but speexenc and<br>
>> > speexdec require them to build.<br>
>> ><br>
>> > Perhaps we need a README.arm in libspeex telling people not to remove<br>
>> > the libogg headers.<br>
>> ><br>
>> > K.<br>
>> ><br>
>><br>
>>> On 01/04/2008, Erwan A wrote:<br>
>> >><br>
>> >> Hi all,<br>
>> >><br>
>> >> I am following the README.arm from Simon to cross compile linphone from my PC to an arm architecture. But i encounter problems about the ogg header.<br>
>> >><br>
>> >> I have this following error when i write this line :<br>
>> >><br>
>> >> ./configure --prefix=/usr --host=arm-linux --with-gnu-ld --disable-static --enable-fixed-point --enable-arm-asm<br>
>> >><br>
>> >> the error is :<br>
>> >> .<br>
>> >> .<br>
>> >> make[2]: entrant dans le répertoire « /arm/speex-1.1.11/src »<br>
>> >> if arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I.. -I/root/armbuild/usr/include -O2 -fno-exceptions -O2 -fno-exceptions -MT speexenc.o -MD -MP -MF ".deps/speexenc.Tpo" -c -o speexenc.o speexenc.c; \<br>
>> >> then mv -f ".deps/speexenc.Tpo" ".deps/speexenc.Po"; else rm -f ".deps/speexenc.Tpo"; exit 1; fi<br>
>> >> speexenc.c:49:21: ogg/ogg.h: Aucun fichier ou répertoire de ce type<br>
>> >> speexenc.c:68: error: parse error before '*' token<br>
>> >> speexenc.c: In function `oe_write_page':<br>
>> >> speexenc.c:71: error: `page' undeclared (first use in this function)<br>
>> >> speexenc.c:71: error: (Each undeclared identifier is reported only once<br>
>> >> speexenc.c:71: error: for each function it appears in.)<br>
>> >> speexenc.c:71: error: `fp' undeclared (first use in this function)<br>
>> >> speexenc.c: In function `main':<br>
>> >> speexenc.c:267: error: `ogg_stream_state' undeclared (first use in this function)<br>
>> >> speexenc.c:267: error: parse error before "os"<br>
>> >> speexenc.c:268: error: `ogg_page' undeclared (first use in this function)<br>
>> >> speexenc.c:269: error: `ogg_packet' undeclared (first use in this function)<br>
>> >> speexenc.c:438: error: `os' undeclared (first use in this function)<br>
>> >> speexenc.c:632: error: `op' undeclared (first use in this function)<br>
>> >> speexenc.c:648: error: `og' undeclared (first use in this function)<br>
>> >> make[2]: *** [speexenc.o] Erreur 1<br>
>> >> make[2]: quittant le répertoire « /arm/speex-1.1.11/src »<br>
>> >> make[1]: *** [all-recursive] Erreur 1<br>
>> >> make[1]: quittant le répertoire « /arm/speex-1.1.11 »<br>
>> >> make: *** [all] Erreur 2<br>
>> >><br>
>> >><br>
>> >> I had to follow this rules but i dont know how to solve the problem :<br>
>> >><br>
>> >> First you need to remove ogg headers from your build system to avoid a dirty conflict between<br>
>> >> your build machine binaries and the arm binaries. They are usually in a libogg-dev package (rpm or deb).<br>
>> >><br>
>> >><br>
>> >> So, i have cross compiled libogg and put the ogg.h in the /usr/include/ogg/ directory of my host. and now i have this following error :<br>
>> >><br>
>> >> /usr/lib/libogg.so: could not read symbols: Invalid operation<br>
>> >> collect2: ld returned 1 exit status<br>
>> >> make[2]: *** [speexenc] Erreur 1<br>
>> >> make[2]: quittant le répertoire « /usr/src/linphone/arm/speex-1.1.6/src »<br>
>> >> make[1]: *** [all-recursive] Erreur 1<br>
>> >> make[1]: quittant le répertoire « /usr/src/linphone/arm/speex-1.1.6 »<br>
>> >> make: *** [all] Erreur 2<br>
>> >><br>
>> >><br>
>> >> Do i miss somethings ? I had to copy or remove some ogg headers ?<br>
>> >> Thanks for your help.<br>
>> >><br>
>> >> Regards<br>
>> >> Erwan.<br>
>> >> _________________________________________________________________<br>
>> >> Découvrez les profils Messenger de vos amis !<br>
>> >> <a href="http://home.services.spaces.live.com/" target="_blank">http://home.services.spaces.live.com/</a><br>
>> >> _______________________________________________<br>
>> >> Speex-dev mailing list<br>
>> >> <a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
>> >> <a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
>> >><br>
>> >><br>
>> > _______________________________________________<br>
>> > Speex-dev mailing list<br>
>> > <a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
>> > <a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
>><br>
>><br>
>> _________________________________________________________________<br>
>> Vos e-mails vous suivent partout ! Mettez Hotmail sur votre mobile !<br>
>> <a href="http://www.messengersurvotremobile.com/?d=hotmail" target="_blank">http://www.messengersurvotremobile.com/?d=hotmail</a><br>
>><br>
>> _______________________________________________<br>
>> Speex-dev mailing list<br>
>> <a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
>> <a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
>><br>
>><br>
> _______________________________________________<br>
> Speex-dev mailing list<br>
> <a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
> <a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
><br>
><br>
_______________________________________________<br>
Speex-dev mailing list<br>
<a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Keith Kyzivat<br><br>SIPez LLC.<br>SIP VoIP, IM and Presence Consulting<br><a href="http://www.SIPez.com">http://www.SIPez.com</a><br>tel: +1 (617) 273-4000