On Tue, Mar 15, 2011 at 03:33:58PM +0000, Jacob Meuser wrote:
> On Tue, Mar 15, 2011 at 12:22:23PM +0100, Dmitrij D. Czarkoff wrote:
> > Hello!
> >
> > While trying to build a game I faced an issue with libvorbis.
> >
> > The configure script of the game checks sdl-mixer by compiling and running
> > following test program:
> >
> > #include <SDL/SDL_mixer.h>
> > #include <stdio.h>
> >
> > int main()
> > {
> > if
> > (!Mix_LoadMUS("file.ogg"))
> > return -1;
> > return 0;
> > }
> >
> > The programs compiles OK, but fails to run. On compiling it manually and
> > running it manually I get the following output:
> >
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_info_clear'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'ogg_sync_wrote'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'ogg_sync_reset'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_synthesis_headerin'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'ogg_page_granulepos'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_info_blocksize'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'ogg_stream_reset'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'ogg_sync_pageseek'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'ogg_page_continued'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'ogg_stream_reset_serialno'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_comment_clear'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_synthesis_halfrate'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_synthesis_restart'
> > ./test./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_synthesis_idheader'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'ogg_sync_clear'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol 'ogg_page_bos'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_dsp_clear'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'ogg_page_serialno'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_block_init'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_synthesis_blockin'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'ogg_sync_buffer'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_synthesis'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol 'vorbis_window'
> > ./test:/usr/local/lib/libvorbisfile.so.6.0: undefined symbol
> > 'vorbis_block_clear'
> >
> > What does that mean and what can I do to sove issue?
>
> it means you didn't specify the right libraries to be linked.
>
> pkg-config --libs vorbisfile
or since this is really about SDL_mixer,
pkg-config --libs SDL_mixer
will give you the libraries needed for linking with SDL_mixer.
>
>
> > Thanks in advance.
> >
> > --
> > Dmitrij D. Czarkoff
>
> --
> [email protected]
> SDF Public Access UNIX System - http://sdf.lonestar.org
--
[email protected]
SDF Public Access UNIX System - http://sdf.lonestar.org