Hi Moritz,
I have installed the following packages: yum install glibc-devel glibc-static zlib-static libstdc++-static And I use the following command to build static ffmpeg without any dependent dynamic library: ./configure --disable-ffplay \ --extra-libs='-static -L/usr/lib' --extra-cflags='--static' \ --enable-version3 --enable-asm --enable-x86asm --enable-avfilter \ --enable-static --disable-shared --enable-gpl --enable-nonfree --prefix=/usr/local/ \ --enable-stripping But I also want to build static ffmpeg with the option of '--enable-libmfx'. I fail to run the following command: ./configure --disable-ffplay \ --extra-libs='-static -L/usr/lib' --extra-cflags='--static' \ --enable-version3 --enable-asm --enable-x86asm --enable-avfilter \ --enable-static --disable-shared --enable-gpl --enable-nonfree --prefix=/usr/local/ \ --enable-stripping --enable-libmfx configure reported : /bin/ld: cannot find -lva /bin/ld: cannot find -lva-drm Is there any way to install install libva and libva-drm libraries? Thanks Regards Andrew At 2018-07-04 22:20:07, "Moritz Barsnick" <[email protected]> wrote: >On Wed, Jul 04, 2018 at 20:52:29 +0800, qw wrote: >> Thanks for your help. >> I use CentOS 7.4 to build static ffmpeg. > >Could you please show us: >$ objdump -p /usr/local/bin/ffmpeg | grep NEEDED > >Furthermore, please make sure the following packages are installed: >glibc-devel >glibc-static # covers libc, libm, libdl(?), librt, libpthread dependencies >zlib-static # covers libz dependency > >Please add the following ffmpeg configure options: > --disable-libxcb # gets rid of libxcb* dependencies > --disable-xlib # gets rid of libX* dependencies > --disable-lzma # gets rid of liblzma dependency > --disable-vaapi # gets rid of libva dependency > --disable-alsa # gets rid of libasound dependency > >(At the loss of a few features.) > >And then build once more. > >Again: Can you not just install the required dynamic libs on the >target? > >Moritz >_______________________________________________ >ffmpeg-user mailing list >[email protected] >http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >To unsubscribe, visit link above, or email >[email protected] with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
