Created
April 24, 2012 12:50
-
-
Save kristopherjohnson/2479381 to your computer and use it in GitHub Desktop.
brew install -v opencv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kdj@luna ~$ brew install -v opencv | |
/usr/bin/env python -c import numpy | |
==> Downloading http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.3.1/OpenCV-2.3.1a.tar.bz2 | |
Already downloaded: /Users/kdj/Library/Caches/Homebrew/opencv-2.3.1a.tar.bz2 | |
/usr/bin/tar xf /Users/kdj/Library/Caches/Homebrew/opencv-2.3.1a.tar.bz2 | |
==> Patching | |
/usr/bin/patch -f -p1 -i 000-homebrew.diff | |
patching file modules/highgui/src/grfmt_exr.hpp | |
patching file modules/flann/include/opencv2/flann/any.h | |
patching file modules/flann/include/opencv2/flann/defines.h | |
patching file modules/flann/include/opencv2/flann/any.h | |
patching file modules/flann/include/opencv2/flann/lsh_index.h | |
==> cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/opencv/2.3.1a' -DCMAKE_BUILD_TYPE=None -Wno-dev -DPYTHON_LIBRARY='/System/Library/Frameworks/Python.framework/Versions/2.7/Python' -DPYTHON_INCLUDE_DIR='/System/Library/Frameworks/Python.framework/Versions/2.7/Headers' -DPYTHON_PACKAGES_PATH='/usr/local/Cellar/opencv/2.3.1a/lib/python2.7/site-packages' | |
cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/opencv/2.3.1a' -DCMAKE_BUILD_TYPE=None -Wno-dev -DPYTHON_LIBRARY='/System/Library/Frameworks/Python.framework/Versions/2.7/Python' -DPYTHON_INCLUDE_DIR='/System/Library/Frameworks/Python.framework/Versions/2.7/Headers' -DPYTHON_PACKAGES_PATH='/usr/local/Cellar/opencv/2.3.1a/lib/python2.7/site-packages' | |
-- The C compiler identification is Clang 3.1.0 | |
-- The CXX compiler identification is Clang 3.1.0 | |
-- Check for working C compiler: /usr/bin/clang | |
-- Check for working C compiler: /usr/bin/clang -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working CXX compiler: /usr/bin/clang++ | |
-- Check for working CXX compiler: /usr/bin/clang++ -- works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Extracting svn version, please wait... | |
-- SVNVERSION: exported | |
-- checking for module 'libavcodec' | |
-- package 'libavcodec' not found | |
-- checking for module 'libavformat' | |
-- package 'libavformat' not found | |
-- checking for module 'libavutil' | |
-- package 'libavutil' not found | |
-- checking for module 'libswscale' | |
-- package 'libswscale' not found | |
-- Looking for libavformat/avformat.h | |
-- Looking for libavformat/avformat.h - not found | |
-- Looking for ffmpeg/avformat.h | |
-- Looking for ffmpeg/avformat.h - not found | |
-- checking for module 'libdc1394-2' | |
-- package 'libdc1394-2' not found | |
-- checking for module 'libdc1394' | |
-- package 'libdc1394' not found | |
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5") | |
-- Found PNG: /usr/X11R6/lib/libpng.dylib (found version "1.2.47") | |
-- Looking for /Library/Frameworks/old-Mono.framework/Headers/png.h | |
-- Looking for /Library/Frameworks/old-Mono.framework/Headers/png.h - found | |
-- Looking for /Library/Frameworks/old-Mono.framework/Headers/libpng/png.h | |
-- Looking for /Library/Frameworks/old-Mono.framework/Headers/libpng/png.h - not found | |
-- Found TIFF: /usr/local/lib/libtiff.dylib (found version "3.8.2") | |
-- Found JPEG: /usr/local/lib/libjpeg.dylib | |
-- Found Jasper: /usr/local/lib/libjasper.dylib (found version "1.900.1") | |
-- Found PythonInterp: /usr/bin/python (found version "2.7.1") | |
-- Found PythonLibs: /System/Library/Frameworks/Python.framework/Versions/2.7/Python (found version "2.7.1") | |
-- Use NumPy headers from: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
ImportError: No module named sphinx | |
CUDA_TOOLKIT_ROOT_DIR not found or specified | |
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "4.0") | |
-- Parsing 'cvconfig.h.cmake' | |
-- | |
-- General configuration for opencv 2.3.1 ===================================== | |
-- | |
-- Built as dynamic libs?: YES | |
-- Compiler: /usr/bin/clang++ | |
-- C++ flags (Release): -Os -w -pipe -march=native -Qunused-arguments -O3 -DNDEBUG | |
-- C++ flags (Debug): -Os -w -pipe -march=native -Qunused-arguments -g | |
-- Linker flags (Release): | |
-- Linker flags (Debug): | |
-- | |
-- GUI: | |
-- Cocoa: YES | |
-- | |
-- Media I/O: | |
-- ZLib: YES | |
-- JPEG: TRUE | |
-- PNG: TRUE | |
-- TIFF: TRUE | |
-- JPEG 2000: TRUE | |
-- OpenEXR: NO | |
-- OpenNI: NO | |
-- OpenNI PrimeSensor Modules: NO | |
-- XIMEA: NO | |
-- | |
-- Video I/O: QTKit | |
-- | |
-- Other third-party libraries: | |
-- Use IPP: NO | |
-- Use TBB: NO | |
-- Use ThreadingFramework: NO | |
-- Use Cuda: NO | |
-- Use Eigen: NO | |
-- | |
-- Interfaces: | |
-- Python: YES | |
-- Python interpreter: /usr/bin/python -B (ver 2.7) | |
-- Python numpy: YES | |
-- Java: NO | |
-- | |
-- Documentation: | |
-- Sphinx: NO | |
-- PdfLaTeX compiler: NO | |
-- Build Documentation: NO | |
-- | |
-- Tests and samples: | |
-- Tests: YES | |
-- Examples: NO | |
-- | |
-- Install path: /usr/local/Cellar/opencv/2.3.1a | |
-- | |
-- cvconfig.h is in: /tmp/homebrew-opencv-2.3.1a-d56K/OpenCV-2.3.1 | |
-- ----------------------------------------------------------------- | |
-- | |
CMake Warning at CMakeLists.txt:1755 (message): | |
The source directory is the same as binary directory. "make clean" may | |
damage the source tree | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /tmp/homebrew-opencv-2.3.1a-d56K/OpenCV-2.3.1 | |
==> make | |
make | |
Scanning dependencies of target opencv_core | |
[ 1%] [ 1%] [ 1%] [ 1%] [ 1%] [ 2%] [ 2%] [ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/arithm.o | |
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cmdparser.o | |
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.o | |
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/array.o | |
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/copy.o | |
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert.o | |
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/datastructs.o | |
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/drawing.o | |
[ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/dxt.o | |
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lapack.o | |
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/mathfuncs.o | |
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matmul.o | |
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matop.o | |
[ 4%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix.o | |
[ 4%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/out.o | |
[ 4%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence.o | |
[ 4%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/precomp.o | |
[ 5%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/rand.o | |
[ 5%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat.o | |
[ 5%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.o | |
[ 5%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/tables.o | |
Linking CXX shared library ../../lib/libopencv_core.dylib | |
[ 5%] Built target opencv_core | |
Scanning dependencies of target opencv_flann | |
Scanning dependencies of target opencv_ts | |
Scanning dependencies of target opencv_ml | |
Scanning dependencies of target opencv_imgproc | |
[ 6%] [ 6%] [ 6%] [ 6%] [ 6%] [ 7%] Building CXX object modules/flann/CMakeFiles/opencv_flann.dir/src/precomp.o | |
Building CXX object modules/flann/CMakeFiles/opencv_flann.dir/src/miniflann.o | |
Building CXX object modules/flann/CMakeFiles/opencv_flann.dir/src/flann.o | |
Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts.o | |
Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/precomp.o | |
Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_arrtest.o | |
[ 7%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/ann_mlp.o | |
[ 7%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/accum.o | |
[ 7%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_func.o | |
[ 7%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_gtest.o | |
[ 7%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/boost.o | |
[ 8%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/approx.o | |
[ 8%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/cnn.o | |
[ 8%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/canny.o | |
[ 8%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color.o | |
[ 9%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/data.o | |
[ 9%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/em.o | |
[ 9%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/contours.o | |
[ 9%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/ertrees.o | |
[ 10%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/convhull.o | |
[ 10%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/estimate.o | |
[ 11%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/gbt.o | |
[ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/corner.o | |
[ 11%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/cornersubpix.o | |
[ 11%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/inner_functions.o | |
[ 11%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/knearest.o | |
[ 11%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/nbayes.o | |
[ 11%] [ 12%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/deriv.o | |
[ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/distransform.o | |
Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/precomp.o | |
[ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/emd.o | |
Linking CXX shared library ../../lib/libopencv_flann.dylib | |
[ 13%] Built target opencv_flann | |
[ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/featureselect.o | |
[ 13%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/rtrees.o | |
[ 13%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/featuretree.o | |
[ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/filter.o | |
[ 14%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/svm.o | |
[ 14%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/testset.o | |
[ 14%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/tree.o | |
[ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/floodfill.o | |
[ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/geometry.o | |
[ 14%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/grabcut.o | |
Linking CXX shared library ../../lib/libopencv_ts.dylib | |
[ 14%] Built target opencv_ts | |
[ 15%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/histogram.o | |
[ 15%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hough.o | |
[ 15%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.o | |
[ 15%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/inpaint.o | |
[ 16%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/kdtree.o | |
[ 16%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/linefit.o | |
[ 16%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/lsh.o | |
[ 16%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/matchcontours.o | |
Linking CXX shared library ../../lib/libopencv_ml.dylib | |
[ 16%] Built target opencv_ml | |
[ 16%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/moments.o | |
[ 17%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/morph.o | |
[ 17%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/precomp.o | |
[ 17%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/pyramids.o | |
[ 17%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/pyrsegmentation.o | |
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/rotcalipers.o | |
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/samplers.o | |
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/segmentation.o | |
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/shapedescr.o | |
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/smooth.o | |
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/spilltree.o | |
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/subdivision2d.o | |
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/sumpixels.o | |
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/tables.o | |
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/templmatch.o | |
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/thresh.o | |
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/undistort.o | |
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/utils.o | |
Linking CXX shared library ../../lib/libopencv_imgproc.dylib | |
[ 21%] Built target opencv_imgproc | |
Scanning dependencies of target opencv_video | |
Scanning dependencies of target opencv_highgui | |
[ 22%] [ 22%] [ 22%] [ 22%] [ 22%] [ 23%] [ 23%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_common.o | |
Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_gaussmix.o | |
Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_acmmm2003.o | |
Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_codebook.o | |
Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_gaussmix2.o | |
Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/camshift.o | |
Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/kalman.o | |
[ 23%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap.o | |
[ 23%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/lkpyramid.o | |
[ 23%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/motempl.o | |
[ 24%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_images.o | |
[ 24%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.o | |
[ 25%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/optflowbm.o | |
[ 25%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/optflowgf.o | |
[ 25%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/optflowhs.o | |
[ 25%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/optflowlk.o | |
[ 25%] [ 25%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/loadsave.o | |
Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/precomp.o | |
[ 26%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/precomp.o | |
[ 27%] [ 27%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/utils.o | |
Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window.o | |
[ 27%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_cocoa.o | |
[ 27%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_qtkit.o | |
[ 28%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/bitstrm.o | |
[ 28%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_base.o | |
[ 28%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_bmp.o | |
Linking CXX shared library ../../lib/libopencv_video.dylib | |
[ 28%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_exr.o | |
[ 28%] Built target opencv_video | |
[ 29%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_imageio.o | |
[ 29%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_jpeg.o | |
[ 29%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_jpeg2000.o | |
[ 29%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_png.o | |
[ 30%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_pxm.o | |
[ 30%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_sunras.o | |
[ 30%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_tiff.o | |
Linking CXX shared library ../../lib/libopencv_highgui.dylib | |
Undefined symbols for architecture x86_64: | |
"_png_set_gray_1_2_4_to_8", referenced from: | |
cv::PngDecoder::readData(cv::Mat&) in grfmt_png.o | |
ld: symbol(s) not found for architecture x86_64 | |
clang: error: linker command failed with exit code 1 (use -v to see invocation) | |
make[2]: *** [lib/libopencv_highgui.2.3.1.dylib] Error 1 | |
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 | |
make: *** [all] Error 2 | |
CMakeCache.txt was copied to /Users/kdj/Library/Logs/Homebrew | |
==> Exit Status: 2 | |
https://github.com/mxcl/master/blob/master/Library/Formula/opencv.rb#L78 | |
==> Build Environment | |
CPU: 8-core 64-bit sandybridge | |
MacOS: 10.7.3-x86_64 | |
Xcode: 4.3.2 | |
CC: /usr/bin/clang | |
CXX: /usr/bin/clang++ => /usr/bin/clang | |
LD: /usr/bin/clang | |
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments | |
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments | |
MAKEFLAGS: -j8 | |
Error: Failed executing: make (opencv.rb:78) | |
These existing issues may help you: | |
https://github.com/mxcl/homebrew/issues/10862 | |
Otherwise, please report the bug: | |
https://github.com/mxcl/homebrew/wiki/reporting-bugs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment