Hey, i'm having trouble getting ov_open to work on my slackware 8.1 system.
The c, and makefile are as follows, and the error produced. I've also
included an ldd of the compiled file. If anyone can be of any help, it
would be greatly appreciated!
--------------------------C FILE-------------------------------
#include <stdio.h>
#include <string.h>
#include "vorbis/codec.h"
#include "vorbis/vorbisfile.h"
int main(int argc, char *argv[])
{
<p> //open the file supplied at command line
FILE *f = fopen(argv[1], "rw");
//create an instance of the OggVorbis_File class
OggVorbis_File vf;
//open the specified vorbis file.
int i = ov_testemacs(f, &vf, NULL, 0);
}
--------------------------------MAKEFILE------------------------------
CFLAGS = -g
LIBS = -L/usr/local/lib -lvorbisfile -lvorbis -logg -lao -lvorbisenc -lltdl
<p>oggPlay: oggPlay.o oggPlay.c
gcc $(CFLAGS) oggPlay.o -o oggPlay $(LIBS)
oggPlay.o : oggPlay.c
gcc $(CFLAGS) -c oggPlay.c
clean:
/bin/rm oggPlay.o *.*~
<p>------------------------------ERROR----------------------------------
bash$ oggPlay ../rock.ogg
oggPlay: relocation error: /usr/local/lib/libvorbisfile.so.3: undefined
symbol: ogg_stream_reset_serialno
-------------------------------LDD OGGPLAY------------------------------
bash-2.05a$ ldd oggPlay
libvorbisfile.so.3 => /usr/local/lib/libvorbisfile.so.3 (0x40024000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x4002c000)
libogg.so.0 => /usr/lib/libogg.so.0 (0x4004b000)
libao.so.2 => /usr/lib/libao.so.2 (0x4004f000)
libvorbisenc.so.2 => /usr/local/lib/libvorbisenc.so.2 (0x40054000)
libltdl.so.3 => /usr/lib/libltdl.so.3 (0x40135000)
libc.so.6 => /lib/libc.so.6 (0x4013b000)
libm.so.6 => /lib/libm.so.6 (0x4025e000)
libpthread.so.0 => /lib/libpthread.so.0 (0x4027f000)
libdl.so.2 => /lib/libdl.so.2 (0x40295000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bash-2.05a$
Cheers,
Oliver Sneyd
ots1@cs.waikato.ac.nz
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to
'vorbis-dev-request@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.