hi all:<br> i downloaded libtheora1.0.tar.gz from <a href="http://xiph.org" target="_blank">xiph.org</a>, and when i compile it, such error message popped.<br><br>i tried to run player_example.c under /libtheora_1.0/examples/.<br>
error message:<br><br>ivysummer@ivysummer-desktop:~/×ÀÃæ/libtheora-1.0/examples$ gcc -o player player_example.c<br>/tmp/ccpyle3c.o: In function `buffer_data':<br>player_example.c:(.text+0x15): undefined reference to `ogg_sync_buffer'<br>
player_example.c:(.text+0x4f): undefined reference to `ogg_sync_wrote'<br>/tmp/ccpyle3c.o: In function `open_video':<br>player_example.c:(.text+0x7a5): undefined reference to `SDL_Init'<br>player_example.c:(.text+0x7ae): undefined reference to `SDL_GetError'<br>
player_example.c:(.text+0x7fc): undefined reference to `SDL_SetVideoMode'<br>player_example.c:(.text+0x80f): undefined reference to `SDL_GetError'<br>player_example.c:(.text+0x873): undefined reference to `SDL_CreateYUVOverlay'<br>
player_example.c:(.text+0x886): undefined reference to `SDL_GetError'<br>player_example.c:(.text+0x8e9): undefined reference to `SDL_DisplayYUVOverlay'<br>/tmp/ccpyle3c.o: In function `video_write':<br>player_example.c:(.text+0x909): undefined reference to `theora_decode_YUVout'<br>
player_example.c:(.text+0x932): undefined reference to `SDL_LockSurface'<br>player_example.c:(.text+0x947): undefined reference to `SDL_LockYUVOverlay'<br>player_example.c:(.text+0xaf8): undefined reference to `SDL_UnlockSurface'<br>
player_example.c:(.text+0xb05): undefined reference to `SDL_UnlockYUVOverlay'<br>player_example.c:(.text+0xb1a): undefined reference to `SDL_DisplayYUVOverlay'<br>/tmp/ccpyle3c.o: In function `queue_page':<br>
player_example.c:(.text+0xce4): undefined reference to `ogg_stream_pagein'<br>player_example.c:(.text+0xd00): undefined reference to `ogg_stream_pagein'<br>/tmp/ccpyle3c.o: In function `main':<br>player_example.c:(.text+0xe17): undefined reference to `ogg_sync_init'<br>
player_example.c:(.text+0xe23): undefined reference to `vorbis_info_init'<br>player_example.c:(.text+0xe2f): undefined reference to `vorbis_comment_init'<br>player_example.c:(.text+0xe3b): undefined reference to `theora_comment_init'<br>
player_example.c:(.text+0xe47): undefined reference to `theora_info_init'<br>player_example.c:(.text+0xe86): undefined reference to `ogg_page_bos'<br>player_example.c:(.text+0xeb1): undefined reference to `ogg_page_serialno'<br>
player_example.c:(.text+0xec3): undefined reference to `ogg_stream_init'<br>player_example.c:(.text+0xed9): undefined reference to `ogg_stream_pagein'<br>player_example.c:(.text+0xef1): undefined reference to `ogg_stream_packetout'<br>
player_example.c:(.text+0xf18): undefined reference to `theora_decode_header'<br>player_example.c:(.text+0xf6d): undefined reference to `vorbis_synthesis_headerin'<br>player_example.c:(.text+0xfa9): undefined reference to `ogg_stream_clear'<br>
player_example.c:(.text+0xfbd): undefined reference to `ogg_sync_pageout'<br>player_example.c:(.text+0x102f): undefined reference to `theora_decode_header'<br>player_example.c:(.text+0x10a2): undefined reference to `ogg_stream_packetout'<br>
player_example.c:(.text+0x1112): undefined reference to `vorbis_synthesis_headerin'<br>player_example.c:(.text+0x1187): undefined reference to `ogg_stream_packetout'<br>player_example.c:(.text+0x11ae): undefined reference to `ogg_sync_pageout'<br>
player_example.c:(.text+0x1265): undefined reference to `theora_decode_init'<br>player_example.c:(.text+0x13a6): undefined reference to `theora_control'<br>player_example.c:(.text+0x13d8): undefined reference to `theora_control'<br>
player_example.c:(.text+0x13f0): undefined reference to `theora_info_clear'<br>player_example.c:(.text+0x13fc): undefined reference to `theora_comment_clear'<br>player_example.c:(.text+0x1419): undefined reference to `vorbis_synthesis_init'<br>
player_example.c:(.text+0x142d): undefined reference to `vorbis_block_init'<br>player_example.c:(.text+0x146e): undefined reference to `vorbis_info_clear'<br>player_example.c:(.text+0x147a): undefined reference to `vorbis_comment_clear'<br>
player_example.c:(.text+0x14cf): undefined reference to `vorbis_synthesis_pcmout'<br>player_example.c:(.text+0x157d): undefined reference to `rint'<br>player_example.c:(.text+0x1646): undefined reference to `vorbis_synthesis_read'<br>
player_example.c:(.text+0x1700): undefined reference to `ogg_stream_packetout'<br>player_example.c:(.text+0x171e): undefined reference to `vorbis_synthesis'<br>player_example.c:(.text+0x1736): undefined reference to `vorbis_synthesis_blockin'<br>
player_example.c:(.text+0x176b): undefined reference to `ogg_stream_packetout'<br>player_example.c:(.text+0x17b4): undefined reference to `theora_control'<br>player_example.c:(.text+0x17f7): undefined reference to `theora_control'<br>
player_example.c:(.text+0x180d): undefined reference to `theora_decode_packetin'<br>player_example.c:(.text+0x184a): undefined reference to `theora_granule_time'<br>player_example.c:(.text+0x1930): undefined reference to `ogg_sync_pageout'<br>
player_example.c:(.text+0x1d30): undefined reference to `SDL_Quit'<br>player_example.c:(.text+0x1d45): undefined reference to `ogg_stream_clear'<br>player_example.c:(.text+0x1d51): undefined reference to `vorbis_block_clear'<br>
player_example.c:(.text+0x1d5d): undefined reference to `vorbis_dsp_clear'<br>player_example.c:(.text+0x1d69): undefined reference to `vorbis_comment_clear'<br>player_example.c:(.text+0x1d75): undefined reference to `vorbis_info_clear'<br>
player_example.c:(.text+0x1d8a): undefined reference to `ogg_stream_clear'<br>player_example.c:(.text+0x1d96): undefined reference to `theora_clear'<br>player_example.c:(.text+0x1da2): undefined reference to `theora_comment_clear'<br>
player_example.c:(.text+0x1dae): undefined reference to `theora_info_clear'<br>player_example.c:(.text+0x1dba): undefined reference to `ogg_sync_clear'<br>collect2: ld ·µ»Ø 1<br><br clear="all">i've search in google but there is no suitable answer. could someone tell me how could i solve this problem? thanks.<br>
-- <br>Bowen Ma a.k.a Samuel Kevin @ Bluesky Dev Team XJTU<br>Shaanxi Province Key Lab. of Satellite and Terrestrial Network Tech<br>
<a href="http://incubator.apache.org/bluesky/" target="_blank">http://incubator.apache.org/bluesky/</a><br>