[FFmpeg-trac] #4183(build system:open): Compilation problem with libav*
FFmpeg
trac at avcodec.org
Sat Dec 13 03:28:40 CET 2014
#4183: Compilation problem with libav*
-------------------------------------+-------------------------------------
Reporter: JohnCC | Owner:
Type: defect | Status: open
Priority: normal | Component: build
Version: git-master | system
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by JohnCC):
There is '-' missing in your command. I suppose that is a typo?
If doing:
./configure --prefix=/usr --libdir=/usr/lib64 --enable-shared --enable-
static
Then the installation is still wrong:
{{{
install -m 644 libavcodec/libavcodec.a "/usr/lib64"
ranlib "/usr/lib64/libavcodec.a"
mkdir -p "/usr/lib"
install -m 755 libavcodec/libavcodec.so "/usr/lib/libavcodec.so.56.14.100"
strip "/usr/lib/libavcodec.so.56.14.100"
}}}
And with your 'Quite interesting' suggestion (though with the --libdir
corrected), I get:
{{{
mkdir -p "/usr/lib64"
install -m 644 libavcodec/libavcodec.a "/usr/lib64"
ranlib "/usr/lib64/libavcodec.a"
mkdir -p "/usr/local/lib"
install -m 755 libavcodec/libavcodec.so
"/usr/local/lib/libavcodec.so.56.14.100"
strip "/usr/local/lib/libavcodec.so.56.14.100"
(cd "/usr/local/lib" && ln -s -f libavcodec.so.56.14.100
libavcodec.so.56); (cd "/usr/local/lib" && ln -s -f libav
}}}
So, the static libraries are following the --libdir=/usr/lib64
instruction, and the shared libs go into the default /usr/local/lib
directory.
I get the instruction --shlibdir=DIR - thanks for that. I do not think
this is a very well-known configure option. In all the years I use Linux,
I never used it. I just went through the configures from glib/goocanvas
/gobject-introspection, and about 10 more. None has it.
''I'd suggest a slight modification to the configure script: If --libdir
is specified, and --shlibdir is not, then set both to the same value. I
suspect that is by far the most common case.''
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4183#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list