Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7066921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:08:20+00:00 2026-05-28T05:08:20+00:00

I’m trying to compile the ffmpeg by using the make and build files in

  • 0

I’m trying to compile the ffmpeg by using the make and build files in iFrameExtractor example. firstly i tried to follow the readme file on the github, which only says to run the ./build_universal in ffmpeg folder. it did not work

i then tried to follow the info in INSTALL without success. i then tried doing the stuff in INSTALL followed by the ./build_universal which didn’t work. All the *.a files that are imported to the project exists until the end of the build sequence. when the lipo commands in build_universal are run, which i guess concat the .a files for the different architectures(?). anyhow these leave the following errors:

lipo: specifed architecture type (armv6) for file (armv6/libavcodec.a) does not match it's cputype (16777223) and cpusubtype (3) (should be cputype (12) and cpusubtype (6))
lipo: specifed architecture type (armv6) for file (armv6/libavdevice.a) does not match it's cputype (16777223) and cpusubtype (3) (should be cputype (12) and cpusubtype (6))
lipo: specifed architecture type (armv6) for file (armv6/libavformat.a) does not match it's cputype (16777223) and cpusubtype (3) (should be cputype (12) and cpusubtype (6))
lipo: specifed architecture type (armv6) for file (armv6/libavutil.a) does not match it's cputype (16777223) and cpusubtype (3) (should be cputype (12) and cpusubtype (6))
lipo: specifed architecture type (armv6) for file (armv6/libswscale.a) does not match it's cputype (16777223) and cpusubtype (3) (should be cputype (12) and cpusubtype (6))

i can get the project to compile for simulator if i only use ./build_armv7 but if i run the universal the .a files are removed in the end. and only using doesn’t work to build for iphone 4 .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:08:21+00:00Added an answer on May 28, 2026 at 5:08 am

    After a week of trial and error, I was finally able to create the ffmpeg universal libraries and successfully compile and run iFrameExtractor for the device as well as the simulator.

    To compile and run the project on your iPhone device OR simulator:

    1) open Terminal

    2) clone the repository: git clone git://github.com/lajos/iFrameExtractor.git

    3) go to the ffmpeg folder in the project: cd iFrameExtractor/ffmpeg

    4) run: ./configure

    5) Edit the build scripts (build_armv6, build_armv7, build_i386) as follows:

    These scripts assume you are using iOS SDK 5.0 on Xcode 4.2.

    build_armv6:

    #!/bin/tcsh -f
    
    if (! -d armv6) mkdir armv6
    if (! -d lib) mkdir lib
    
    rm armv6/*.a
    
    make clean
    
    ./configure \
    --disable-bzlib --disable-doc \
    --disable-ffmpeg --disable-ffplay \
    --disable-ffserver --disable-mmx \
    --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
    --as='gas-preprocessor/gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
    --enable-cross-compile --target-os=darwin \
    --arch=arm --cpu=arm1176jzf-s \
    --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk \
    --extra-ldflags="-arch armv6 -L//Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/system" \
    --extra-cflags="-arch armv6"
    
    make
    
    mv libavcodec/libavcodec.a armv6/
    mv libavdevice/libavdevice.a armv6/
    mv libavformat/libavformat.a armv6/
    mv libavutil/libavutil.a armv6/
    mv libswscale/libswscale.a armv6/
    
    rm lib/*.a
    
    cp armv6/*.a lib/
    

    build_armv7:

    #!/bin/tcsh -f
    
    if (! -d armv7) mkdir armv7
    if (! -d lib) mkdir lib
    
    rm armv7/*.a
    
    make clean
    
    ./configure \
    --disable-bzlib --disable-doc \
    --disable-ffmpeg --disable-ffplay \
    --disable-ffserver --disable-mmx \
    --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
    --as='gas-preprocessor/gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
    --enable-cross-compile --target-os=darwin \
    --arch=arm --cpu=cortex-a8 --enable-pic \
    --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk \
    --extra-ldflags="-arch armv7 -    L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/system" \
    --extra-cflags="-arch armv7"
    
    make
    
    mv libavcodec/libavcodec.a armv7/
    mv libavdevice/libavdevice.a armv7/
    mv libavformat/libavformat.a armv7/
    mv libavutil/libavutil.a armv7/
    mv libswscale/libswscale.a armv7/
    
    rm lib/*.a
    
    cp armv7/*.a lib/
    

    build_i386:

    #!/bin/tcsh -f
    
    if (! -d i386) mkdir i386
    if (! -d lib) mkdir lib
    
    rm i386/*.a
    
    make clean
    
    ./configure \
    --disable-bzlib --disable-doc \
    --disable-ffmpeg --disable-ffplay \
    --disable-ffserver --disable-mmx \
    --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \
    --as='gas-preprocessor/gas-preprocessor.pl     /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \
    --sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk \
    --extra-ldflags="-arch i386 -L//Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/lib/system" \
    --extra-cflags="-arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O0 -fasm-blocks -Wreturn-type -Wunused-variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2"
    
    make
    
    mv libavcodec/libavcodec.a i386/
    mv libavdevice/libavdevice.a i386/
    mv libavformat/libavformat.a i386/
    mv libavutil/libavutil.a i386/
    mv libswscale/libswscale.a i386/
    
    rm lib/*.a
    
    cp i386/*.a lib/
    

    6) build the ffmpeg libraries: ./build_universal

    7) open the xcode project and run it on your iPhone device or simulator

    These steps work perfectly for me. I hope this will help others struggling to get the ffmpeg libraries working for iOS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have thousands of HTML files to process using Groovy/Java and I need to
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.