I am using convert Desktop/iff_image.iff Desktop/iff_image.jpg to convert my images to JPEG format.
But getting as
convert: no decode delegate for this image format `Desktop/iff_image.iff' # error/constitute.c/ReadImage/552.
convert: no images defined `Desktop/iff_image.jpg' # error/convert.c/ConvertImageCommand/3127.
For .tif, .tiff, .cin, .dpx extensions it is working properly.
The issue is coming only for .iff and .exr extensions.
IFF
I am not familiar with a format named 'IFF'. Sorry to be of no help for this one...
EXR
For support of reading and writing the EXR format, your ImageMagick installation needs to have...
...access to the OpenEXR library (which also must be installed on your system);
...been built with support for the OpenEXR delegate.
In ImageMagick, 'delegates' are external programs or helper utilities which support ImageMagick to handle formats which it cannot handle on its own.
One of the most common delegates found in ImageMagick is Ghostscript. Ghostscript is required to process PDF or PostScript input files, because ImageMagick can only handle raster formats. So Ghostscript converts PDFs and PS to raster images on behalf of ImageMagick, then hands over these raster data to IM, which then does the rest of the required work.
To print the list of all built-in delegates, run this command (on Linux or Mac OS X):
convert -version | grep Delegates
The respective Windows command is:
convert -version | findstr Delegates
The output I see on my system for this command is this:
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib gvc jbig \
jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png \
ps rsvg tiff webp wmf x xml zlib
The list of supported delegates should have openexr amongst them. If it is not there, you need to install a version of ImageMagick that has it.
To check which compile-time options have been used to build your version of ImageMagick, run
convert -list configure
If the linen starting DELEGATES does not list openexr, the binary package for your system has not been built with OpenEXR in mind. If it is listed, but still not working, something else is wrong...
On my system, I see this:
Path: /opt/local/lib/ImageMagick-6.9.0//config-Q16/configure.xml
Name Value
-------------------------------------------------------------------------------
CC /usr/bin/clang
CFLAGS -I/opt/local/include/lqr-1 -I/opt/local/include/glib-2.0 \
-I/opt/local/lib/glib-2.0/include -I/opt/local/include \
-I/opt/local/include/freetype2 -I/opt/local/include \
-I/opt/local/include/libpng16 -pipe -Os -arch x86_64 \
-Wall -march=corei7-avx -fexceptions -D_FORTIFY_SOURCE=0 \
-D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=0 \
-DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH /opt/local/lib/ImageMagick-6.9.0/modules-Q16/coders
CONFIGURE ./configure '--prefix=/opt/local' '--enable-shared' \
'--enable-static' '--disable-ltdl-install' \
'--disable-silent-rules' '--with-frozenpaths' \
'--with-openexr' '--disable-hdri' '--with-dps' \
'--with-bzlib' '--with-djvu' '--with-fontconfig' \
'--with-gslib' '--with-jbig' '--with-jpeg' '--with-lcms' \
'--with-openjp2' '--with-png' '--with-tiff' '--with-webp' \
'--with-zlib' '--with-modules' '--with-xml' \
'--without-perl' '--without-fpx' '--with-wmf' \
'--with-gvc' '--with-rsvg' '--with-lqr' '--with-pango' \
'--with-x' '--with-gs-font-dir=/opt/local/share/fonts/urw-fonts' \
'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' \
'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names \
-arch x86_64' 'CPPFLAGS=-I/opt/local/include' \
'CXX=/usr/bin/clang++' 'CXXFLAGS=-pipe -Os -arch x86_64 \
-stdlib=libc++'
CONFIGURE_PATH /opt/local/etc/ImageMagick-6/
COPYRIGHT Copyright (C) 1999-2014 ImageMagick Studio LLC
CPPFLAGS -I/opt/local/include/ImageMagick-6
CXX /usr/bin/clang++
CXXFLAGS -pipe -Os -arch x86_64 -stdlib=libc++ -D_THREAD_SAFE -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib djvu mpeg fftw fontconfig freetype gslib jbig jng jpeg lcms \
lqr lzma openexr openjp2 pango png ps rsvg tiff webp wmf x xml zlib
DISTCHECK_CONFIG_FLAGS 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' \
'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/clang++' \
'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names \
-arch x86_64' --disable-deprecated --with-quantum-depth=16 \
--with-jemalloc=no --with-umem=no --with-autotrace=no \
--with-fpx=no --with-fontpath= --with-gs-font-dir=/opt/local/share/fonts/urw-fonts \
--with-perl=no
DOCUMENTATION_PATH /opt/local/share/doc/ImageMagick-6
EXEC-PREFIX /opt/local
EXECUTABLE_PATH /opt/local/bin
FEATURES DPC Modules
FILTER_PATH /opt/local/lib/ImageMagick-6.9.0/modules-Q16/filters
HOST x86_64-apple-darwin13.4.0
INCLUDE_PATH /opt/local/include/ImageMagick-6
LDFLAGS -L/opt/local/lib -L/opt/local/lib -Wl,-headerpad_max_install_names \
-arch x86_64 -L/opt/local/lib -L/opt/local/lib
LIB_VERSION 0x690
LIB_VERSION_NUMBER 6,9,0,0
LIBRARY_PATH /opt/local/lib/ImageMagick-6.9.0
LIBS -llcms2 -L/opt/local/lib -lfreetype -L/opt/local/lib -llqr-1 \
-lglib-2.0 -lintl -lfftw3 -L/opt/local/lib -lfontconfig -lfreetype \
-lXext -lSM -lICE -lX11 -lXt -L/opt/local/lib -llzma -lbz2 -lz \
-lltdl -lm
NAME ImageMagick
PCFLAGS -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX /opt/local
QuantumDepth 16
RELEASE_DATE 2014-12-06
SHARE_PATH /opt/local/share/ImageMagick-6
SHAREARCH_PATH /opt/local/lib/ImageMagick-6.9.0/config-Q16
SVN_REVISION 17068
TARGET_CPU x86_64
TARGET_OS darwin13.4.0
TARGET_VENDOR apple
VERSION 6.9.0
WEBSITE http://www.imagemagick.org
Path: [built-in]
Name Value
----------------------------------------------------------------------------
FEATURES
NAME ImageMagick
QuantumDepth 16
Related
While excuting below convert command on linux getting delegate error for font .
convert -font /usr/share/fonts/type1/gsfonts/n021003l.pfb -pointsize 48 -size
400 caption:ABC text.png
convert: delegate library support not built-in '/usr/share/fonts/type1/gsfonts/n021003l.pfb' (Freetype) # warning/annotate.c/RenderFreetype/1818.
convert: no decode delegate for this image format PNG error/constitute.c/ReadImage/509.
convert: delegate library support not built-in '/usr/share/fonts/type1/gsfonts/n021003l.pfb' (Freetype) # warning/annotate.c/RenderFreetype/1818.
convert: no decode delegate for this image format PNG' # error/constitute.c/ReadImage/509.
convert: no images defined `text.png' # error/convert.c/ConvertImageCommand/3254.
Below is the output when I run the command "convert -list configure"
Path: /usr/local/lib/ImageMagick-7.0.6//config-Q16HDRI/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -I/usr/include/libxml2 -fopenmp -g -O2 -Wall -mtune=core-
avx-i -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH /usr/local/lib/ImageMagick-7.0.6/modules-Q16HDRI/coders
CONFIGURE ./configure
CONFIGURE_PATH /usr/local/etc/ImageMagick-7/
COPYRIGHT Copyright (C) 1999-2017 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick-7
CXX g++
CXXFLAGS -g -O2 -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES mpeg ps x xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-jemalloc=no --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-perl=no
DOCUMENTATION_PATH /usr/local/share/doc/ImageMagick-7
EXEC-PREFIX /usr/local
EXECUTABLE_PATH /usr/local/bin
FEATURES DPC HDRI Cipher OpenMP
FILTER_PATH /usr/local/lib/ImageMagick-7.0.6/modules-Q16HDRI/filters
GIT_REVISION 11994
HOST x86_64-unknown-linux-gnu
INCLUDE_PATH /usr/local/include/ImageMagick-7
LDFLAGS -L/usr/local/lib
LIB_VERSION 0x706
LIB_VERSION_NUMBER 7,0,6,0
LIBRARY_PATH /usr/local/lib/ImageMagick-7.0.6
LIBS -lXext -lX11 -lxml2 -lz -lm -lgomp
NAME ImageMagick
PCFLAGS -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -
DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 2017-07-17
SHARE_PATH /usr/local/share/ImageMagick-7
SHAREARCH_PATH /usr/local/lib/ImageMagick-7.0.6/config-Q16HDRI
TARGET_CPU x86_64
TARGET_OS linux-gnu
TARGET_VENDOR unknown
VERSION 7.0.6
WEBSITE http://www.imagemagick.org
Path: [built-in]
Name Value
-------------------------------------------------------------------------------
FEATURES OpenMP
NAME ImageMagick
QuantumDepth 16'
When tried to run the "identify -list font" command it has support for the font which is used in convert command here.
Font: Times-Roman
family: Times
style: Normal
stretch: Normal
weight: 400
glyphs: /usr/share/fonts/type1/gsfonts/n021003l.pfb
Any help appreciated . Thanks.
The issue is that the font is a freetype one and you have not got the freetype delegate installed - it is not listed under DELEGATES in your identify -list configure or if you run identify -version. You need to install it.
I am using OS X 10.10.3 and installed ImageMagick using Homebrew.
I'm trying out ImageMagick to create a dynamic image generation script but I'm getting a font related error message. This is the command I use, which is an example taken from ImageMagick's Font Effect page. What can I do so that I can use the font installed on my machine with ImageMagick? The fonts are either TrueType or PostScript.
convert -size 320x100 xc:lightblue -font Arial -pointsize 72 \
-fill navy -annotate +25+65 'Anthony' \
-distort Arc 120 -trim +repage \
-bordercolor lightblue -border 10 /outputdirectory/font_arc.jpg
And this is the error message it returns.
convert: delegate library support not built-in `/Library/Fonts/Arial.ttf' (Freetype) # warning/annotate.c/RenderFreetype/1560.
Below is the output when I run the command "convert -list configure"
Path: /opt/ImageMagick/lib/ImageMagick-6.9.1//config-Q16/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc
CFLAGS -D_THREAD_SAFE -D_THREAD_SAFE -pthread -mmacosx-version-min=10.5 -Wall -march=core2 -fexceptions -D_FORTIFY_SOURCE=0 -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH /opt/ImageMagick/lib/ImageMagick-6.9.1/modules-Q16/coders
CONFIGURE ./configure '--prefix' '/opt/ImageMagick' '--enable-delegate-build' '--enable-opencl' '--without-x' '--without-freetype' '--disable-static' 'CFLAGS=-mmacosx-version-min=10.5'
CONFIGURE_PATH /opt/ImageMagick/etc/ImageMagick-6/
COPYRIGHT Copyright (C) 1999-2015 ImageMagick Studio LLC
CPPFLAGS -I/opt/ImageMagick/include/ImageMagick-6
CXX g++
CXXFLAGS -g -O2 -D_THREAD_SAFE -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib mpeg fftw jng jpeg lcms lzma png ps tiff webp xml zlib
DISTCHECK_CONFIG_FLAGS 'CFLAGS=-mmacosx-version-min=10.5' --disable-deprecated --with-quantum-depth=16 --with-jemalloc=no --with-umem=no --with-autotrace=no --with-freetype=no --with-gslib=no --with-fontpath= --with-gvc=no --with-rsvg=no --with-wmf=no --with-perl=no
DOCUMENTATION_PATH /opt/ImageMagick/share/doc/ImageMagick-6
EXEC-PREFIX /opt/ImageMagick
EXECUTABLE_PATH /opt/ImageMagick/bin
FEATURES DPC OpenCL
FILTER_PATH /opt/ImageMagick/lib/ImageMagick-6.9.1/modules-Q16/filters
HOST x86_64-apple-darwin14.1.0
INCLUDE_PATH /opt/ImageMagick/include/ImageMagick-6
LDFLAGS -L/opt/ImageMagick/lib -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/fftw/.libs -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/fftw -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/jp2 -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/jpeg/.libs -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/jpeg -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/lcms/src/.libs -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/lcms/src -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/lzma/.libs -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/lzma -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/magick -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/png/.libs -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/png -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/tiff/libtiff/.libs -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/tiff/libtiff -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/wand -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/webp/.libs -L/Users/karlvr/Development/ImageMagick/ImageMagick-6.9.1-0/webp -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib
LIB_VERSION 0x691
LIB_VERSION_NUMBER 6,9,1,0
LIBRARY_PATH /opt/ImageMagick/lib/ImageMagick-6.9.1
LIBS -llcms -ltiff -ljpeg -lpng15 -lfftw3 -lwebp -L/usr/local/Cellar/xz/5.2.1/lib -llzma -lbz2 -lxml2 -lz -lm -Wl,-framework,OpenCL -lm
NAME ImageMagick
PCFLAGS -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX /opt/ImageMagick
QuantumDepth 16
RELEASE_DATE 2015-03-22
SHARE_PATH /opt/ImageMagick/share/ImageMagick-6
SHAREARCH_PATH /opt/ImageMagick/lib/ImageMagick-6.9.1/config-Q16
SVN_REVISION 18245
TARGET_CPU x86_64
TARGET_OS darwin14.1.0
TARGET_VENDOR apple
VERSION 6.9.1
WEBSITE http://www.imagemagick.org
Path: [built-in]
Name Value
-------------------------------------------------------------------------------
FEATURES
NAME ImageMagick
QuantumDepth 16
And finally this is the result of "brew info imagemagick".
imagemagick: stable 6.9.1-3 (bottled), HEAD
http://www.imagemagick.org
/usr/local/Cellar/imagemagick/6.9.1-3 (1444 files, 21M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/imagemagick.rb
==> Dependencies
Build: xz ✔, pkg-config ✔
Required: xz ✔, libtool ✔
Recommended: jpeg ✔, libpng ✔, freetype ✔
Optional: fontconfig ✔, libtiff ✔, little-cms ✘, little-cms2 ✔, libwmf ✘, librsvg ✘, liblqr ✘, openexr ✘, ghostscript ✔, webp ✘, fftw ✘, pango ✘
Adding to the above, here is a result from "identify -list format" for TrueType and PostScript fonts.
PFA* TTF r-- Postscript Type 1 font (ASCII) (Freetype 2.5.5)
PFB* TTF r-- Postscript Type 1 font (binary) (Freetype 2.5.5)
TTC* TTF r-- TrueType font collection (Freetype 2.5.5)
TTF* TTF r-- TrueType font (Freetype 2.5.5)
Any suggestions would be very much appreciated.
Try
identify -list font
to see what fonts you have available to you. If none, have a look at my answer here.
I have been trying to integrate ffmpeg in xcode5.
The step [here][1]
[1]: FFMPEG integration on iphone/ ipad project says that cc parameter needs to be gcc in iphoneOs.platform.
But I could not find it in my xcode5.
It is present in xcode 4.6.3 that I have.
I tried the ./configure command with cc as gcc from xcode4.
Something like this :
./configure --prefix=armv7 --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable- ffserver --enable-avresample --enable-cross-compile -- sysroot="/Applications/Xcode5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk" --target-os=darwin --cc="/Applications/Xcode4.6.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc" --extra-cflags="-arch armv7 -mfpu=neon -miphoneos-version-min=6.0" --extra-ldflags="-arch armv7 -isysroot /Applications/Xcode5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=6.0" --arch=arm --cpu=cortex-a9 --enable-pic
It works ok but then the make command after fails like this:
libavcodec/arm/mdct_vfp.S:113:unknown register alias 'TCOS_D0_HEAD'
libavcodec/arm/mdct_vfp.S:114:unknown register alias 'TCOS_D1_HEAD'
libavcodec/arm/mdct_vfp.S:115:unknown register alias 'TCOS_S0_TAIL'
make: *** [libavcodec/arm/mdct_vfp.o] Error 1
What am I doing wrong here?? Where can I find gcc for xcode5??
When compiling ffmpeg for OSX, I can simply use the:
./configure --enable-librtmp --enable-gpl
command and get a build that can I/O with an rtmp stream.
If I attempt to compile for iOS using:
./configure \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-mmx \
--enable-gpl \
--enable-shared \
--enable-librtmp \
--enable-avresample \
--enable-cross-compile \
--enable-pic \
--sysroot="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs /iPhoneOS6.1.sdk" \
--target-os=darwin \
--cc="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2" \
--extra-cflags="-arch armv7s -mfpu=neon -miphoneos-version-min=6.1" \
--extra-ldflags="-arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -miphoneos-version-min=6.1" \
--arch=arm \
--cpu=cortex-a9 \
--prefix=compiled/armv7s
it errors out saying ERROR: librtmp cannot be found. Specifically:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 -arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -miphoneos-version-min=6.1 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -Wl,-dynamic,-search_paths_first -I/usr/local/include -L/usr/local/lib -o /var/folders/4m/8hcrycqx777_ksz6d32nrn_m0000gp/T//ffconf.b2zp97z8 /var/folders/4m/8hcrycqx777_ksz6d32nrn_m0000gp/T//ffconf.VhdlpSe1.o -lrtmp -lz -lssl -lcrypto -lm -lbz2 -lz
ld: warning: ld: warning: ignoring file /usr/local/lib/librtmp.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (armv7s): /usr/local/lib/librtmp.dylibignoring file /usr/local/lib/libz.a, file was built for archive which is not the architecture being linked (armv7s): /usr/local/lib/libz.a
Undefined symbols for architecture armv7s:
"_RTMP_Socket", referenced from:
_check_RTMP_Socket in ffconf.VhdlpSe1.o
(maybe you meant: _check_RTMP_Socket)
ld: symbol(s) not found for architecture armv7s
collect2: ld returned 1 exit status
ERROR: librtmp not found
I have already compiled openssl for ios using ios-openssl found on github and librtmp through rtmpdump
I ended up compiling librtmp and openssl using ios-librtmp and ios-openssl, installed rtmpdump and openssl using brew, export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig, and then changing the files in /usr/local/lib/pkgconfig for libcrypto.pc, libssl.pc, openssl.pc, and librtmp.pc to point to the iOS i386, armv7 & armv7s compiled libraries.
I'm trying to compile the FFMPEG Libraries for IOS platform with arm7 architecture. I downloaded the FFMPEG libraries from http://www.ffmpeg.org.
I'm successfully able to build the static libraries for the i386 architecture for the iPhoneSimulator. But I need the libraries for iPhoneOS. Using the configure command I'm getting an error. Below are my command details.
For i386(which is error free):
./configure --enable-cross-compile --disable-debug --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --disable-network --disable-everything --enable-protocol=file --enable-demuxer=mov --enable-muxer=mpegts --enable-bsf=h264_mp4toannexb --arch=i386 --target-os=darwin --cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc --as='./gas-preprocessor/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' --sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneOS6.1.sdk --cpu=i386 --extra-cflags='-arch i386' --extra-ldflags='-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk' --prefix="/Users/amit/Desktop/LivuLib-master/LivuLIb/ffmpeg/bin/newLib"
For armv7:
./configure --enable-cross-compile --disable-debug --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --disable-network --disable-everything --enable-protocol=file --enable-demuxer=mov --enable-muxer=mpegts --enable-bsf=h264_mp4toannexb --arch=armv7 --target-os=darwin --cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='./gas-preprocessor/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk --cpu=cortex-a9 --extra-cflags='-arch armv7' --extra-ldflags='-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk' --prefix="/Users/amit/Desktop/LivuLib-master/LivuLIb/ffmpeg/bin/newLib"
For above command for Arm7 I'm getting this error:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from SVN.
So please suggest me a possible solution. Why is it not working? Or do I need to update anything. Thanks.
I realize this question was asked about ~2.5 months ago, so the asker may have moved on, but I came across it while searching for an answer to the same issue. So, hopefully, this will be of help to someone out there!
All I really had to do was verify that ALL the paths I was using were actually pointing to something that existed.
Specifically, I was trying to run:
./configure \
--prefix=armv7 \
--disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver \
--enable-avresample --enable-cross-compile \
--sysroot="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk" \
--target-os=darwin \
--cc="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc" \
--extra-cflags="-arch armv7 -mfpu=neon -miphoneos-version-min=6.0" \
--extra-ldflags="-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=6.0" \
--arch=arm --cpu=cortex-a9 --enable-pic
^ from http://www.tangentsoftworks.com/2012/11/12/how-to-prepare-your-mac-for-ios-development-with-ffmpeg-libraries/
When I couldn't get it to work, I decided to stop being lazy and actually checked the directories listed in the paths: anything that starts with "/Applications/...".
What I found is that I didn't have "iPhoneOS6.0.sdk" (it's referenced above in the paths) installed.
Changing the script to this worked:
./configure \
--prefix=armv7 \
--disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver \
--enable-avresample --enable-cross-compile \
--sysroot="/applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk" \
--target-os=darwin --cc="/applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc" \
--extra-cflags="-arch armv7 -mfpu=neon -miphoneos-version-min=6.0" \
--extra-ldflags="-arch armv7 -isysroot /applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -miphoneos-version-min=6.0" \
--arch=arm --cpu=cortex-a9 --enable-pic
In short, just double-check your paths. Hope that helps!