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.&nbsp; *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&#39;re not pulling in your host&#39;s header files or libraries.&nbsp; 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 &lt;<a href="mailto:jean-marc.valin@usherbrooke.ca">jean-marc.valin@usherbrooke.ca</a>&gt; 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&#39;t<br>
actually tried it)<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Jean-Marc<br>
<br>
Conrad Parker a écrit :<br>
<div><div></div><div class="Wj3C7c">&gt; On 01/04/2008, Erwan A &lt;<a href="mailto:mout551@hotmail.fr">mout551@hotmail.fr</a>&gt; wrote:<br>
&gt;&gt; &nbsp;Hi,<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;Yes i agree with you. You don&#39;t have to delete these files.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;But if i cross compile with ogg header files, i have the following error :<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; /usr/lib/libogg.so: could not read symbols: Invalid operation<br>
&gt;&gt; &nbsp; collect2: ld returned 1 exit status<br>
&gt;&gt; &nbsp; make[2]: *** [speexenc] Erreur 1<br>
&gt;&gt; &nbsp; make[2]: quittant le répertoire « /usr/src/linphone/arm/speex-1.1.6/src »<br>
&gt;&gt; &nbsp; make[1]: *** [all-recursive] Erreur 1<br>
&gt;&gt; &nbsp; make[1]: quittant le répertoire « /usr/src/linphone/arm/speex-1.1.6 »<br>
&gt;&gt; &nbsp; make: *** [all] Erreur 2<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Anyone have any ideas why this isn&#39;t working?<br>
&gt;<br>
&gt; It looks like it&#39;s trying to link against your host libogg, not the<br>
&gt; cross-compiled version.<br>
&gt;<br>
&gt; Perhaps you should set your PKG_CONFIG_PATH to point to the where your<br>
&gt; cross-compiled libogg.pc is, or just use the --with-ogg-libraries=DIR<br>
&gt; option to ./configure.<br>
&gt;<br>
&gt; cheers,<br>
&gt;<br>
&gt; Conrad.<br>
&gt;<br>
&gt;&gt; &nbsp;Regards,<br>
&gt;&gt; &nbsp;Erwan<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;----------------------------------------<br>
&gt;&gt; &nbsp;&gt; Date: Tue, 1 Apr 2008 18:26:27 +0900<br>
&gt;&gt; &nbsp;&gt; From: <a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a><br>
&gt;&gt; &nbsp;&gt; To: <a href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</a><br>
&gt;&gt; &nbsp;&gt; Subject: Re: [Speex-dev] cross compilation for ARM - ogg headers problem<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;&gt; Hi,<br>
&gt;&gt; &nbsp;&gt;<br>
&gt;&gt; &nbsp;&gt; this problem seems to be coming up a lot lately -- the README.arm in<br>
&gt;&gt; &nbsp;&gt; linphone tells people to remove libogg headers, but speexenc and<br>
&gt;&gt; &nbsp;&gt; speexdec require them to build.<br>
&gt;&gt; &nbsp;&gt;<br>
&gt;&gt; &nbsp;&gt; Perhaps we need a README.arm in libspeex telling people not to remove<br>
&gt;&gt; &nbsp;&gt; the libogg headers.<br>
&gt;&gt; &nbsp;&gt;<br>
&gt;&gt; &nbsp;&gt; K.<br>
&gt;&gt; &nbsp;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; On 01/04/2008, Erwan A &nbsp;wrote:<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;Hi all,<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;I am following &nbsp;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>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;I have this following error when i write this line :<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;./configure --prefix=/usr --host=arm-linux --with-gnu-ld --disable-static --enable-fixed-point --enable-arm-asm<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;the error is :<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;.<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;.<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;make[2]: entrant dans le répertoire « /arm/speex-1.1.11/src »<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;if arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I.. -I/root/armbuild/usr/include &nbsp;-O2 -fno-exceptions &nbsp;-O2 -fno-exceptions -MT speexenc.o -MD -MP -MF &quot;.deps/speexenc.Tpo&quot; -c -o speexenc.o speexenc.c; \<br>

&gt;&gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; then mv -f &quot;.deps/speexenc.Tpo&quot; &quot;.deps/speexenc.Po&quot;; else rm -f &quot;.deps/speexenc.Tpo&quot;; exit 1; fi<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:49:21: ogg/ogg.h: Aucun fichier ou répertoire de ce type<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:68: error: parse error before &#39;*&#39; token<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c: In function `oe_write_page&#39;:<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:71: error: `page&#39; undeclared (first use in this function)<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:71: error: (Each undeclared identifier is reported only once<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:71: error: for each function it appears in.)<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:71: error: `fp&#39; undeclared (first use in this function)<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c: In function `main&#39;:<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:267: error: `ogg_stream_state&#39; undeclared (first use in this function)<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:267: error: parse error before &quot;os&quot;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:268: error: `ogg_page&#39; undeclared (first use in this function)<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:269: error: `ogg_packet&#39; undeclared (first use in this function)<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:438: error: `os&#39; undeclared (first use in this function)<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:632: error: `op&#39; undeclared (first use in this function)<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;speexenc.c:648: error: `og&#39; undeclared (first use in this function)<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;make[2]: *** [speexenc.o] Erreur 1<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;make[2]: quittant le répertoire « /arm/speex-1.1.11/src »<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;make[1]: *** [all-recursive] Erreur 1<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;make[1]: quittant le répertoire « /arm/speex-1.1.11 »<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;make: *** [all] Erreur 2<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;I had to follow this rules but i dont know how to solve the problem :<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;First you need to remove ogg headers from your build system to avoid a dirty conflict between<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;your build machine binaries and the arm binaries. They are usually in a libogg-dev package (rpm or deb).<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;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>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;/usr/lib/libogg.so: could not read symbols: Invalid operation<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;collect2: ld returned 1 exit status<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;make[2]: *** [speexenc] Erreur 1<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;make[2]: quittant le répertoire « /usr/src/linphone/arm/speex-1.1.6/src »<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;make[1]: *** [all-recursive] Erreur 1<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;make[1]: quittant le répertoire « /usr/src/linphone/arm/speex-1.1.6 »<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;make: *** [all] Erreur 2<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;Do i miss somethings ? &nbsp;I had to copy or remove some ogg headers ?<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;Thanks for your help.<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;Regards<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;Erwan.<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;_________________________________________________________________<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;Découvrez les profils Messenger de vos amis !<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;<a href="http://home.services.spaces.live.com/" target="_blank">http://home.services.spaces.live.com/</a><br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;_______________________________________________<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;Speex-dev mailing list<br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;<a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
&gt;&gt; &nbsp;&gt;&gt; &nbsp;<a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt;&gt;<br>
&gt;&gt; &nbsp;&gt; _______________________________________________<br>
&gt;&gt; &nbsp;&gt; Speex-dev mailing list<br>
&gt;&gt; &nbsp;&gt; <a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
&gt;&gt; &nbsp;&gt; <a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________<br>
&gt;&gt; &nbsp;Vos e-mails vous suivent partout ! Mettez Hotmail sur votre mobile !<br>
&gt;&gt; &nbsp;<a href="http://www.messengersurvotremobile.com/?d=hotmail" target="_blank">http://www.messengersurvotremobile.com/?d=hotmail</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; &nbsp;Speex-dev mailing list<br>
&gt;&gt; &nbsp;<a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
&gt;&gt; &nbsp;<a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; _______________________________________________<br>
&gt; Speex-dev mailing list<br>
&gt; <a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>
&gt; <a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>
&gt;<br>
&gt;<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