[FFmpeg-user] ffmpeg with static x264
Reindl Harald
h.reindl at thelounge.net
Sun Oct 7 21:08:34 CEST 2012
Am 07.10.2012 21:00, schrieb Carl Eugen Hoyos:
> Reindl Harald <h.reindl <at> thelounge.net> writes:
>
>> Am 06.10.2012 20:21, schrieb Carl Eugen Hoyos:
>>> If you don't need libx264.a for other applications,
>>> you don't have to install it, simply pass the
>>> necessary include and lib paths as extra-ldflags
>>> and extra-cflags to FFmpeg's configure.
>>> (See configure --help)
>>
>> correct me BUT would libx264.a not be exactly that
>> file fro STATIC linking of x264 into the ffmpeg-binary?
>
> fro?
>
> I am just trying to explain that if you simply point
> FFmpeg's configure to the header file and the .a file
> of the x264 version you want to use, you are already
> done.
> (There is *really* no hidden magic.)
but it does not use the libx264.a
[builduser at testserver:~]$ ls /usr/local/lib64/
insgesamt 1,5M
drwxr-xr-x 2 root root 4,0K 2012-10-06 18:28 pkgconfig
-rw-r--r-- 1 root root 1,5M 2012-10-07 18:31 libx264.a
../configure \
--prefix=/usr/local \
--bindir=/usr/local/bin \
--datadir=/usr/local/share/ffmpeg \
--incdir=/usr/local/include/ffmpeg \
--libdir=/usr/local/lib64 \
--mandir=/usr/local/man \
--arch=x86_64 \
--extra-cflags="-I/usr/local/includes" \
--extra-ldflags="-I/usr/local/include -L/usr/local/lib64" \
ERROR: libx264 not found
_______________________
if i build x264 with --emable-shared it compiles and links
the x264.so BUT as shared object and NOt statically
> --extra-ldflags="-L/usr/local/lib64" compiles against
> the x264 in /usr/local BUT it is not linked static
> nor is it found after install
Then either configure x264 so it does not build a
shared library or remove the .so symlink from
/usr/local/lib64 (only for the FFmpeg build process
if you want) or put the .a file to a random place
and point configure to it (or, best, leave the .a
where it is originally built and point FFmpeg's
configure there).
see above - it does NOT use the "libx264.a"
it tries to link the lib264 SHARED object all the time
ffmpeg-snapshot: N-45111-g293e542
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20121007/8f641741/attachment.asc>
More information about the ffmpeg-user
mailing list