[MPlayer-users] Problem compiling mPlayer from svn.
Giorgio Vazzana
mywing81 at gmail.com
Mon Oct 8 12:35:39 CEST 2012
2012/10/8 Carl Eugen Hoyos <cehoyos at ag.or.at>:
> Krzysztof Duchnowski <amidk75 <at> gmail.com> writes:
>
>> > The last revision that compiles is 53211.
>> > - From 53213 onward compiles nothing (more
>> > like linking problem to me).
>> > Dunno about 53212.
>>
>> Ah, typo, it should be 35211, 35213 and 35212.
>
> This is known (53213 removed internal tremor).
>
> The question is:
> Why does autodetection of vorbis_encode_ctl()
> work but linking does not?
Probably because of one of the other libs in the command line. Look at
this example:
holden at rye:~/tmp$ cat v.c
#include <vorbis/vorbisenc.h>
int main(void) { vorbis_encode_ctl(0, 0, 0); return 0; }
holden at rye:~/tmp$ gcc -Wall v.c -lvorbis
/tmp/ccxLWwPN.o: In function `main':
v.c:(.text+0x14): undefined reference to `vorbis_encode_ctl'
collect2: ld returned 1 exit status
holden at rye:~/tmp$ gcc -Wall v.c -lvorbis -lpulse
holden at rye:~/tmp$ gcc -Wall v.c -lvorbis -lSDL
holden at rye:~/tmp$ gcc -Wall v.c -lvorbis -lvorbisenc
holden at rye:~/tmp$
> (Since it works here, I have no idea what to test.)
If we use any of the functions vorbis_encode_*() we need to link
against libvorbisenc, lvorbis alone is not enough.
Something like the attached patch should always work if the user has
libvorbisenc installed.
Regards,
Giorgio Vazzana
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer_libvorbisenc.patch
Type: application/octet-stream
Size: 617 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20121008/56e94a44/attachment.obj>
More information about the MPlayer-users
mailing list