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.
Related
Why the out.png is not white?
convert -monochrome in.png out.png
convert --version
Version: ImageMagick 7.1.0-6 Q16-HDRI x86_64 2021-09-04 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(5.0)
Delegates (built-in): bzlib fontconfig freetype gslib heic jng jp2 jpeg lcms lqr ltdl lzma openexr png ps tiff webp xml zlib
Compiler: gcc (4.2)
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 was building a Rails project which requires imagemagick.
I have posted the error during installation below:
$brew install imagemagick
Error: You must `brew link jpeg' before imagemagick can be installed
$brew link jpeg
Linking /usr/local/Cellar/jpeg/8d...
Error: Could not symlink lib/libjpeg.a
Target /usr/local/lib/libjpeg.a
already exists. You may want to remove it:
rm '/usr/local/lib/libjpeg.a'
I tried to remove it, link jpeg, and install again. But it is not working. While I tried to attach a photo in my rails application, it still said 'please install imagemagick'.
Running OSX 10.10.5, anyone knows how to fix it?
Edit:
I tried to reinstall it from source, but got the following errors.
$brew install imagemagick --build-from-source
==> Downloading http://www.imagemagick.org/download/releases/ImageMagick-6.9.1-1
######################################################################## 100.0%
==> ./configure --disable-osx-universal-binary --prefix=/usr/local/Cellar/imagem
==> make install
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [magick/libMagickCore-6.Q16.la] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [install] Error 2
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
But I didn't install MacPorts or Fink. Any solution?
Edit2:
After I removed jpeg and reinstalled imagemagick, it still fails. Any idea from this info?
$brew info imagemagick
imagemagick: stable 6.9.1-10 (bottled), HEAD
Tools and libraries to manipulate images in many formats
http://www.imagemagick.org
/usr/local/Cellar/imagemagick/6.9.1-10 (1447 files, 22M)
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 ✔, libtiff ✔, freetype ✔
Optional: fontconfig ✘, little-cms ✘, little-cms2 ✘, libwmf ✘, librsvg ✘, liblqr ✘, openexr ✘, ghostscript ✘, webp ✘, fftw ✘, pango ✘
==> Options
--with-fftw
Compile with FFTW support
--with-fontconfig
Build with fontconfig support
--with-ghostscript
Build with ghostscript support
--with-hdri
Compile with HDRI support
--with-jp2
Compile with Jpeg2000 support
--with-liblqr
Build with liblqr support
--with-librsvg
Build with librsvg support
--with-libwmf
Build with libwmf support
--with-little-cms
Build with little-cms support
--with-little-cms2
Build with little-cms2 support
--with-openexr
Build with openexr support
--with-openmp
Compile with OpenMP support
--with-pango
Build with pango support
--with-perl
enable build/install of PerlMagick
--with-quantum-depth-16
Compile with a quantum depth of 16 bit
--with-quantum-depth-32
Compile with a quantum depth of 32 bit
--with-quantum-depth-8
Compile with a quantum depth of 8 bit
--with-webp
Build with webp support
--with-x11
Build with x11 support
--without-freetype
Build without freetype support
--without-jpeg
Build without jpeg support
--without-libpng
Build without libpng support
--without-libtiff
Build without libtiff support
--without-magick-plus-plus
disable build/install of Magick++
--without-opencl
Disable OpenCL
--HEAD
Install HEAD version
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
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.