Cross-compilation record of ffmpeg Library

Source: Internet
Author: User

Cross-compilation record system information of ffmpeg Library: Ubuntu Release 10.04 host compiler version: liwei @ liwei :~ $ Gcc-vUsing built-in specs. Target: i486-linux-gnu............ Gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) Cross-compiler version: liwei @ liwei :~ $ Arm-linux-gcc-vUsing built-in specs. Target: arm-linux-uclibc............ Gcc version 4.2.11. go to the ffmpeg directory and configure it in the following way: $. /configure -- arch = arm -- target-OS = linux -- cc = arm-linux-gcc -- enable-cross-compile -- enable-shared -- disable-network -- disable-armv6-disable-armv6t2 -- disable -ffmpeg -- disable-ffplay -- disable-ffserver -- enable-avfilter -- enable-gpl -- enable-swscale -- enable-postproc -- enable-gpl -- enable-pthreads: must specify target arch and OS when cross-compilingIf you think configure made a mistake, make sure you are using the latestversion from Git. if the latest version fails, report the problem to theffmpeg-user@ffmpeg.org mailing list or IRC # ffmpeg on irc.freenode.net. include the log file "config. log "produced by configure as this will helpsolving the problem. pass. /configure-help find the relevant configuration options, pass the linux to this option, the configuration through 2. copy the target file: copy the following header file to/home/liwei/ffmpeg_install/include (the actual header file installed in the system directory when the decoder library is installed) /usr/local/include/* copy the following dynamic library file to/home/liwei/ffmpeg_install/lib: ffmpeg/libavcodec. so.53ffmpeg/libavfilter. so.2ffmpeg/libpostproc. so.52ffmpeg/libavformat. so.53ffmpeg/libswresample. sow.ffmpeg/libavdevice. so.53ffmpeg/libavutil. so.51ffmpeg/libswscale. so.2 copy the following static library file to/home/liwei/ffmpeg_install/lib: ffmpeg/libavcodec. affmpeg/libavfilter. affmpeg/libpostproc. affmpeg/libavformat. affmpeg/libswresample. affmpeg/libavdevice. affmpeg/libavutil. affmpeg/libswscale. a uses the arm-linux-strip tool to remove debugging information from the dynamic library: $ cd/home/liwei/ffmpeg_install/lib/$ arm-linux-strip *. so

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.