[Libav-user] libtwolame error at Building FFmpeg

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Libav-user] libtwolame error at Building FFmpeg

Daneel V
Hi all,

I've been building FFmpeg for years in Win64 using Msys2.
--enable-libtwolame has been always on and working but starting a couple
weeks ago I'm getting an error when trying to include this library and
running ./configure command. It says the library is not present or it's
outdated.

Msys2 twolame library is up to date to last version and my FFmpeg source
code is last version via Git.

I've checked FFmpeg Configure file and it seems it is not locating
'twolame_encode_buffer_float32_interleaved' reference into twolame library.
I've modified the Configure file to ignore the warning and continue but
at linking time and I got these errors:

C:/Msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
libavcodec/libtwolame.o: in function twolame_encode_frame':
C:\Msys64\home\ion\ffmpeg/libavcodec/libtwolame.c:115: undefined
reference totwolame_encode_buffer_float32_interleaved'
C:\Msys64\home\ion\ffmpeg/libavcodec/libtwolame.c:115:(.text+0x85):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`twolame_encode_buffer_float32_interleaved'

Anyone bulding FFmpeg in Windows coming across this issue?.

     Thank you.

_______________________________________________
Libav-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: libtwolame error at Building FFmpeg

Carl Eugen Hoyos-2
Am Fr., 1. Nov. 2019 um 10:32 Uhr schrieb Daneel V <[hidden email]>:

>
> Hi all,
>
> I've been building FFmpeg for years in Win64 using Msys2.
> --enable-libtwolame has been always on and working but starting a couple
> weeks ago I'm getting an error when trying to include this library and
> running ./configure command. It says the library is not present or it's
> outdated.
>
> Msys2 twolame library is up to date to last version and my FFmpeg source
> code is last version via Git.
>
> I've checked FFmpeg Configure file and it seems it is not locating
> 'twolame_encode_buffer_float32_interleaved' reference into twolame library.
> I've modified the Configure file to ignore the warning and continue but
> at linking time and I got these errors:
>
> C:/Msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> libavcodec/libtwolame.o: in function twolame_encode_frame':
> C:\Msys64\home\ion\ffmpeg/libavcodec/libtwolame.c:115: undefined
> reference totwolame_encode_buffer_float32_interleaved'

This looks to me like a bug in the twolame.h header, where "TL_API"
is missing in the line defining totwolame_encode_buffer_float32_interleaved().
Without this define, symbols get not exported in Windows.

More important though: Why do you need libtwolame?
There was mp2 encoding support in FFmpeg since day one...

Carl Eugen
_______________________________________________
Libav-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".