[theora] compile error of libtheora example

Samul Kevin lovesummerf at gmail.com
Mon May 11 18:41:34 PDT 2009


hi all:
    i downloaded libtheora1.0.tar.gz  from xiph.org, and when i compile it,
such error message popped.

i tried to run player_example.c under /libtheora_1.0/examples/.
error message:

ivysummer at ivysummer-desktop:~/桌面/libtheora-1.0/examples$ gcc -o player
player_example.c
/tmp/ccpyle3c.o: In function `buffer_data':
player_example.c:(.text+0x15): undefined reference to `ogg_sync_buffer'
player_example.c:(.text+0x4f): undefined reference to `ogg_sync_wrote'
/tmp/ccpyle3c.o: In function `open_video':
player_example.c:(.text+0x7a5): undefined reference to `SDL_Init'
player_example.c:(.text+0x7ae): undefined reference to `SDL_GetError'
player_example.c:(.text+0x7fc): undefined reference to `SDL_SetVideoMode'
player_example.c:(.text+0x80f): undefined reference to `SDL_GetError'
player_example.c:(.text+0x873): undefined reference to
`SDL_CreateYUVOverlay'
player_example.c:(.text+0x886): undefined reference to `SDL_GetError'
player_example.c:(.text+0x8e9): undefined reference to
`SDL_DisplayYUVOverlay'
/tmp/ccpyle3c.o: In function `video_write':
player_example.c:(.text+0x909): undefined reference to
`theora_decode_YUVout'
player_example.c:(.text+0x932): undefined reference to `SDL_LockSurface'
player_example.c:(.text+0x947): undefined reference to `SDL_LockYUVOverlay'
player_example.c:(.text+0xaf8): undefined reference to `SDL_UnlockSurface'
player_example.c:(.text+0xb05): undefined reference to
`SDL_UnlockYUVOverlay'
player_example.c:(.text+0xb1a): undefined reference to
`SDL_DisplayYUVOverlay'
/tmp/ccpyle3c.o: In function `queue_page':
player_example.c:(.text+0xce4): undefined reference to `ogg_stream_pagein'
player_example.c:(.text+0xd00): undefined reference to `ogg_stream_pagein'
/tmp/ccpyle3c.o: In function `main':
player_example.c:(.text+0xe17): undefined reference to `ogg_sync_init'
player_example.c:(.text+0xe23): undefined reference to `vorbis_info_init'
player_example.c:(.text+0xe2f): undefined reference to `vorbis_comment_init'
player_example.c:(.text+0xe3b): undefined reference to `theora_comment_init'
player_example.c:(.text+0xe47): undefined reference to `theora_info_init'
player_example.c:(.text+0xe86): undefined reference to `ogg_page_bos'
player_example.c:(.text+0xeb1): undefined reference to `ogg_page_serialno'
player_example.c:(.text+0xec3): undefined reference to `ogg_stream_init'
player_example.c:(.text+0xed9): undefined reference to `ogg_stream_pagein'
player_example.c:(.text+0xef1): undefined reference to
`ogg_stream_packetout'
player_example.c:(.text+0xf18): undefined reference to
`theora_decode_header'
player_example.c:(.text+0xf6d): undefined reference to
`vorbis_synthesis_headerin'
player_example.c:(.text+0xfa9): undefined reference to `ogg_stream_clear'
player_example.c:(.text+0xfbd): undefined reference to `ogg_sync_pageout'
player_example.c:(.text+0x102f): undefined reference to
`theora_decode_header'
player_example.c:(.text+0x10a2): undefined reference to
`ogg_stream_packetout'
player_example.c:(.text+0x1112): undefined reference to
`vorbis_synthesis_headerin'
player_example.c:(.text+0x1187): undefined reference to
`ogg_stream_packetout'
player_example.c:(.text+0x11ae): undefined reference to `ogg_sync_pageout'
player_example.c:(.text+0x1265): undefined reference to `theora_decode_init'
player_example.c:(.text+0x13a6): undefined reference to `theora_control'
player_example.c:(.text+0x13d8): undefined reference to `theora_control'
player_example.c:(.text+0x13f0): undefined reference to `theora_info_clear'
player_example.c:(.text+0x13fc): undefined reference to
`theora_comment_clear'
player_example.c:(.text+0x1419): undefined reference to
`vorbis_synthesis_init'
player_example.c:(.text+0x142d): undefined reference to `vorbis_block_init'
player_example.c:(.text+0x146e): undefined reference to `vorbis_info_clear'
player_example.c:(.text+0x147a): undefined reference to
`vorbis_comment_clear'
player_example.c:(.text+0x14cf): undefined reference to
`vorbis_synthesis_pcmout'
player_example.c:(.text+0x157d): undefined reference to `rint'
player_example.c:(.text+0x1646): undefined reference to
`vorbis_synthesis_read'
player_example.c:(.text+0x1700): undefined reference to
`ogg_stream_packetout'
player_example.c:(.text+0x171e): undefined reference to `vorbis_synthesis'
player_example.c:(.text+0x1736): undefined reference to
`vorbis_synthesis_blockin'
player_example.c:(.text+0x176b): undefined reference to
`ogg_stream_packetout'
player_example.c:(.text+0x17b4): undefined reference to `theora_control'
player_example.c:(.text+0x17f7): undefined reference to `theora_control'
player_example.c:(.text+0x180d): undefined reference to
`theora_decode_packetin'
player_example.c:(.text+0x184a): undefined reference to
`theora_granule_time'
player_example.c:(.text+0x1930): undefined reference to `ogg_sync_pageout'
player_example.c:(.text+0x1d30): undefined reference to `SDL_Quit'
player_example.c:(.text+0x1d45): undefined reference to `ogg_stream_clear'
player_example.c:(.text+0x1d51): undefined reference to `vorbis_block_clear'
player_example.c:(.text+0x1d5d): undefined reference to `vorbis_dsp_clear'
player_example.c:(.text+0x1d69): undefined reference to
`vorbis_comment_clear'
player_example.c:(.text+0x1d75): undefined reference to `vorbis_info_clear'
player_example.c:(.text+0x1d8a): undefined reference to `ogg_stream_clear'
player_example.c:(.text+0x1d96): undefined reference to `theora_clear'
player_example.c:(.text+0x1da2): undefined reference to
`theora_comment_clear'
player_example.c:(.text+0x1dae): undefined reference to `theora_info_clear'
player_example.c:(.text+0x1dba): undefined reference to `ogg_sync_clear'
collect2: ld 返回 1

i've search in google but there is no suitable answer. could someone tell me
how could i solve this problem? thanks.
-- 
Bowen Ma a.k.a Samuel Kevin @ Bluesky Dev Team    XJTU
Shaanxi Province Key Lab. of Satellite and Terrestrial Network Tech
http://incubator.apache.org/bluesky/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora/attachments/20090512/4417dfac/attachment.htm 


More information about the theora mailing list