Hi,<br> I am trying to cross compile the speex for the arm linux.<br>I configured using the following command:<br><span style="font-style: italic;">./configure --host=arm-linux --prefix=/opt/ARM/eldk/usr/local --with-ogg-dir=/opt/ARM/eldk/usr/local --with-ogg-includes=/opt/ARM/eldk/usr/local/include --with-ogg-libraries=/opt/ARM/eldk/usr/local/lib
</span><br>I have separately compiled the ogg for the arm linux and specified the path when configuring compile for the speex.<br><br>I am able to successfully compile, make and make install.<br>We are not able to see the shared objects file
libspeex.so.xxx, but the .so.xxx file is created when i compile the same for the x86 Linux.<br><br>Then I tried to compile the sample program that comes with the speex documentation, using the following command.<br><span style="font-style: italic;">
arm-linux-gcc -o encode -I /opt/ARM/eldk/usr/local/include -L /opt/ARM/eldk/usr/local/lib -lspeex sampleenc.c</span><br>I am getting the following error: <br><span style="font-style: italic;">/tmp/ccGmYcxv.o: In function `main':
</span><br style="font-style: italic;"><span style="font-style: italic;">sampleenc.c:(.text+0x20): undefined reference to `speex_encoder_init'</span><br style="font-style: italic;"><span style="font-style: italic;">sampleenc.c:
(.text+0x58): undefined reference to `speex_encoder_ctl'</span><br style="font-style: italic;"><span style="font-style: italic;">sampleenc.c:(.text+0x6c): undefined reference to `speex_encoder_ctl'</span><br style="font-style: italic;">
<span style="font-style: italic;">sampleenc.c:(.text+0x84): undefined reference to `speex_encoder_ctl'</span><br style="font-style: italic;"><span style="font-style: italic;">sampleenc.c:(.text+0xcc): undefined reference to `speex_bits_init'
</span><br style="font-style: italic;"><span style="font-style: italic;">sampleenc.c:(.text+0x178): undefined reference to `speex_bits_reset'</span><br style="font-style: italic;"><span style="font-style: italic;">sampleenc.c:
(.text+0x194): undefined reference to `speex_encode'</span><br style="font-style: italic;"><span style="font-style: italic;">sampleenc.c:(.text+0x1b0): undefined reference to `speex_bits_write'</span><br style="font-style: italic;">
<span style="font-style: italic;">sampleenc.c:(.text+0x1fc): undefined reference to `speex_encoder_destroy'</span><br style="font-style: italic;"><span style="font-style: italic;">sampleenc.c:(.text+0x20c): undefined reference to `speex_bits_destroy'
</span><br style="font-style: italic;"><span style="font-style: italic;">sampleenc.c:(.text+0x230): undefined reference to `speex_nb_mode'</span><br style="font-style: italic;"><span style="font-style: italic;">collect2: ld returned 1 exit status
</span><br style="font-style: italic;"><br>But, I am able to compile the same sample program for x86 linux.<br>Should I do any other ARM specfic configuration other that above for compiling the speex?<br>Please help me, in solving this error.
<br><br>Thanks & Regards,<br>Saravana Kumar<br><br><div><span class="gmail_quote">On 10/11/07, <b class="gmail_sendername">Jean-Marc Valin</b> <<a href="mailto:jean-marc.valin@usherbrooke.ca">jean-marc.valin@usherbrooke.ca
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> Is it possible for me to encode a sample.wav file to encoded.spx using
<br>> sampleenc.c and decode it using sampledec.c and store the output in a<br>> output.wav and play it using aplay? Will I be able to do the above?<br>> Please help me, I am new to speex. If i am wrong please correct me.
<br><br>No, sampleenc/sampledec work on raw (headerless) files. Either you'll<br>need to work on raw files, or else just use speexenc/speexdec. The<br>latter are more complex, but they produce portable files.<br><br>Cheers,
<br><br> Jean-Marc<br></blockquote></div><br>