

Xcode-select: note: install requested for command line developer toolsįfmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developersīuilt with Apple LLVM version 10.0.1 (clang-1001.0.46.4)Ĭonfiguration: -prefix=/usr/local/Cellar/ffmpeg/4.1.4_1 -enable-shared -enable-pthreads -enable-version3 -enable-avresample -cc=clang -host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-12.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-12.0.1.jdk/Contents/Home/include/darwin' -host-ldflags= -enable-ffplay -enable-gnutls -enable-gpl -enable-libaom -enable-libbluray -enable-libmp3lame -enable-libopus -enable-librubberband -enable-libsnappy -enable-libtesseract -enable-libtheora -enable-libvorbis -enable-libvpx -enable-libx264 -enable-libx265 -enable-libxvid -enable-lzma -enable-libfontconfig -enable-libfreetype -enable-frei0r -enable-libass -enable-libopencore-amrnb -enable-libopencore-amrwb -enable-libopenjpeg -enable-librtmp -enable-libspeex -enable-videotoolbox -disable-libjack -disable-indev=jack -enable-libaom -enable-libsoxr `brew link unbound` returns `/usr/local/sbin is not writable` error xcode command line tool not found => Installing ffmpeg dependency: pythonĮrror: Xcode alone is not sufficient on Mojave.


Linking /usr/local/Cellar/unbound/1.9.2_1. bash: cd: /usr/local/sbin: No such file or directoryĬhown: /usr/local: Operation not permitted I have to make folder and enable permission. The formula built, but is not symlinked into /usr/local I only installed in on Ubuntu as a temporary stopgap.After HomeBrew 2.0, it is not support install ffmpeg with option such as -with-fdk-aac.Įnabling libfdk_aac in ffmpeg installed with Homebrew install general version brew install ffmpegīrew link failed => Pouring unbound-1.9.2_1.Įrror: The `brew link` step did not complete successfully When I run nm those symbols are listed as undefined all right, but I can successfully install openCV 3.2.0 (with ffmpeg support) on Ubuntu 16.04 using gcc 5.4, and those same symbols are undefined in, so I guess it's trying to link them from another file, but I have no clue which. Undefined symbols for architecture x86_64:Ĭv::freetype::FreeType2Impl::~FreeType2Impl() in Ĭv::freetype::FreeType2Impl::loadFontData(cv::String, int) in Ĭv::freetype::FreeType2Impl::FreeType2Impl() in Ĭv::freetype::createFreeType2() in Īnd a bunch of other missing symbols. This produces no errors, but when I run make I get Building CXX object modules/freetype/CMakeFiles/opencv_freetype.dir/src/ D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules. D PYTHON3_NUMPY_INCLUDE_DIRS=$VIRTUAL_ENV/lib/python3.5/site-packages/numpy/core/include/ \ D PYTHON3_LIBRARY=$PYTHON3_DIR/lib/libpython3.5m.dylib \ D PYTHON3_INCLUDE_DIR=$VIRTUAL_ENV/include/python3.5m \ D PYTHON3_PACKAGES_PATH=$VIRTUAL_ENV/lib/python3.5/site-packages \ D PYTHON_EXECUTABLE=$VIRTUAL_ENV/bin/python3 \ Here's the command I'm running PYTHON3_DIR=`python3-config -prefix` # Get python 3 path
#BREW INSTALL OPENCV WITH FFMPEG UPGRADE#
Before I installed ffmpeg I ran brew upgrade and I saw that it upgraded freetype, so this may be the source of the problem, but if so I don't know what to do about it.

I then tried to build openCV again without ffmpeg, and the build failed with the same errors. I installed ffmpeg with homebrew, and when I tried to build openCV again, the build failed because of undefined symbols in freetype libraries. I built openCV 3.2.0 successfully, but then I found out that I needed ffmpeg support.
