[Vorbis] Error while cross compiling libvorbis 1.2.0

sourya roy souryaroy at gmail.com
Wed Aug 27 23:43:30 PDT 2008


Dear All,

I am trying to cross compile the dependencies of ices for arm linux. I
have been able to compile libxml2 (2.6.32) and libogg (1.1.3)
successfully but I am getting stuck at compiling libvorbis (1.2.0).

Making install in examples
make[1]: Entering directory `/home/sr/armlinux/stream/libvorbis-1.2.0/examples'
/bin/bash ../libtool --tag=CC   --mode=link
/usr/local/arm/bin/arm-linux-gcc  -O20 -ffast-math -D_REENTRANT
-fsigned-char -fPIC -DUSE_MEMORY_H   -o decoder_example
decoder_example.o ../lib/libvorbis.la
/usr/local/arm/bin/arm-linux-gcc -O20 -ffast-math -D_REENTRANT
-fsigned-char -fPIC -DUSE_MEMORY_H -o .libs/decoder_example
decoder_example.o  ../lib/.libs/libvorbis.so -Wl,--rpath
-Wl,/home/sr/armlinux/sysroot/usr/lib
/usr/local/arm/bin/../lib/gcc-lib/arm-linux/3.2/../../../../arm-linux/bin/ld:
warning: libogg.so.0, needed by ../lib/.libs/libvorbis.so, not found
(try using -rpath or -rpath-link)
decoder_example.o: In function `main':
decoder_example.o(.text+0x18): undefined reference to `ogg_sync_init'
decoder_example.o(.text+0x3c): undefined reference to `ogg_sync_buffer'
decoder_example.o(.text+0x64): undefined reference to `ogg_sync_wrote'
decoder_example.o(.text+0x70): undefined reference to `ogg_sync_pageout'
decoder_example.o(.text+0x8c): undefined reference to `ogg_page_serialno'
decoder_example.o(.text+0xa8): undefined reference to `ogg_stream_init'
decoder_example.o(.text+0xc8): undefined reference to `ogg_stream_pagein'
decoder_example.o(.text+0xe0): undefined reference to `ogg_stream_packetout'
decoder_example.o(.text+0x114): undefined reference to `ogg_sync_pageout'
decoder_example.o(.text+0x138): undefined reference to `ogg_sync_buffer'
decoder_example.o(.text+0x168): undefined reference to `ogg_sync_wrote'
decoder_example.o(.text+0x238): undefined reference to `ogg_stream_clear'
decoder_example.o(.text+0x268): undefined reference to `ogg_sync_pageout'
decoder_example.o(.text+0x288): undefined reference to `ogg_sync_buffer'
decoder_example.o(.text+0x2c0): undefined reference to `ogg_sync_wrote'
decoder_example.o(.text+0x30c): undefined reference to `ogg_stream_pagein'
decoder_example.o(.text+0x318): undefined reference to `ogg_stream_packetout'
decoder_example.o(.text+0x4ac): undefined reference to `ogg_page_eos'
decoder_example.o(.text+0x4f4): undefined reference to `ogg_stream_pagein'
decoder_example.o(.text+0x508): undefined reference to `ogg_stream_packetout'
decoder_example.o(.text+0x5c4): undefined reference to `ogg_sync_clear'
../lib/.libs/libvorbis.so: undefined reference to `oggpack_writetrunc'
../lib/.libs/libvorbis.so: undefined reference to `oggpack_writeinit'
../lib/.libs/libvorbis.so: undefined reference to `oggpack_look'
../lib/.libs/libvorbis.so: undefined reference to `oggpack_bytes'
../lib/.libs/libvorbis.so: undefined reference to `oggpack_writeclear'
../lib/.libs/libvorbis.so: undefined reference to `oggpack_adv'
../lib/.libs/libvorbis.so: undefined reference to `oggpack_get_buffer'
../lib/.libs/libvorbis.so: undefined reference to `oggpack_readinit'
../lib/.libs/libvorbis.so: undefined reference to `oggpack_read'
../lib/.libs/libvorbis.so: undefined reference to `oggpack_reset'
../lib/.libs/libvorbis.so: undefined reference to `oggpack_write'
collect2: ld returned 1 exit status
make[1]: *** [decoder_example] Error 1
make[1]: Leaving directory `/home/sr/armlinux/stream/libvorbis-1.2.0/examples'
make: *** [install-recursive] Error 1


Below is the configure commands I am using while cross compiling:

libxml2
=====
CC=arm-linux-gcc CFLAGS='-fPIC' ./configure --host=arm-linux
--build=i686-linux --prefix=/home/sr/armlinux/sysroot/usr
--disable-static --enable-shared

libogg
====
CC=/usr/local/arm/bin/arm-linux-gcc CFLAGS='-fPIC' ./configure
--host=arm-linux --build=i686-linux
--prefix=/home/sr/armlinux/sysroot/usr --disable-static
--enable-shared

libvorbis
=====
 CC=arm-linux-gcc CFLAGS='-fPIC'
PKG_CONFIG_PATH=/home/sr/armlinux/sysroot/usr/lib/pkgconfig/
./configure --host=arm-linux --build=i686-linux
--prefix=/home/sr/armlinux/sysroot/usr
--with-ogg=/home/sr/armlinux/sysroot/usr/ --disable-oggtest
--disable-static --enable-shared

Am I missing something in the configure commands?

Thanks
-Sourya

--
Sourya Roy
Electrical Engineering (Class of 2011)
Northwestern University
Evanston, Illinois


More information about the Vorbis mailing list