pi@raspberrypi:~ $ brew install opencv
Updating Homebrew...
==> Installing opencv from homebrew/science
==> Downloading https://github.com/opencv/opencv/archive/2.4.13.2.tar.gz
Already downloaded: /home/pi/.cache/Homebrew/opencv-2.4.13.2.tar.gz
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/home/pi/.linuxbrew/Cellar/opencv/2.4.13.2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DCMAKE_OSX_DEPLOYMENT_TARGET= -DBUILD_ZLIB=OFF -DBUILD_TIFF=OFF -DBUILD_PNG=OFF -DBUILD_JASPER=OFF -DBUILD_JPEG=OFF -DJPEG_INCLUDE_DIR=/home/pi/.linuxbrew/opt/jpeg/include -DJPEG_LIBRARY=/home/pi/.linuxbrew/opt/jpeg/lib/libjpeg.so -DBUILD_OPENEXR=ON -DBUILD_opencv_python=ON -DBUILD_opencv_java=OFF -DWITH_OPENEXR=ON -DWITH_EIGEN=ON -DWITH_TBB=OFF -DWITH_FFMPEG=OFF -DWITH_QUICKTIME=OFF -DWITH_1394=OFF -DWITH_OPENGL=OFF -DWITH_JASPER=OFF -DWITH_GSTREAMER=OFF -DWITH_XIMEA=OFF -DWITH_VTK=OFF -DPYTHON_LIBRARY=/home/pi/.linuxbrew/Cellar/python/2.7.13/lib/libpython2.7.so -DPYTHON_INCLUDE_DIR=/home/pi/.linuxbrew/Cellar/python/2.7.13/include/python2.7 -DWITH_CUDA=OFF -DWITH_OPENCL=OFF -DCMAKE_OSX_ARCHITECTURES=i386 -DOPENCV_EXTRA_C_FLAGS='-arch i386 -m32' -DOPENCV_EXTRA_CXX_FLAGS='-arch i386 -m32'
Last 15 lines from /home/pi/.cache/Homebrew/Logs/opencv/01.cmake:
-- Check size of unsigned short
-- Check size of unsigned short - failed
-- Check size of unsigned int
-- Check size of unsigned int - failed
-- Check size of unsigned long
-- Check size of unsigned long - failed
CMake Error at /home/pi/.linuxbrew/Cellar/cmake/3.7.2/share/cmake/Modules/TestBigEndian.cmake:41 (message):
no suitable type found
Call Stack (most recent call first):
CMakeLists.txt:481 (test_big_endian)
-- Configuring incomplete, errors occurred!
See also "/tmp/opencv-20170404-11090-4069vm/opencv-2.4.13.2/macbuild/CMakeFiles/CMakeOutput.log".
See also "/tmp/opencv-20170404-11090-4069vm/opencv-2.4.13.2/macbuild/CMakeFiles/CMakeError.log".
hello, I have a problem of installation of opencv
pi@raspberrypi:~ $ brew install opencv Updating Homebrew... ==> Installing opencv from homebrew/science ==> Downloading https://github.com/opencv/opencv/archive/2.4.13.2.tar.gz Already downloaded: /home/pi/.cache/Homebrew/opencv-2.4.13.2.tar.gz ==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/home/pi/.linuxbrew/Cellar/opencv/2.4.13.2 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DCMAKE_OSX_DEPLOYMENT_TARGET= -DBUILD_ZLIB=OFF -DBUILD_TIFF=OFF -DBUILD_PNG=OFF -DBUILD_JASPER=OFF -DBUILD_JPEG=OFF -DJPEG_INCLUDE_DIR=/home/pi/.linuxbrew/opt/jpeg/include -DJPEG_LIBRARY=/home/pi/.linuxbrew/opt/jpeg/lib/libjpeg.so -DBUILD_OPENEXR=ON -DBUILD_opencv_python=ON -DBUILD_opencv_java=OFF -DWITH_OPENEXR=ON -DWITH_EIGEN=ON -DWITH_TBB=OFF -DWITH_FFMPEG=OFF -DWITH_QUICKTIME=OFF -DWITH_1394=OFF -DWITH_OPENGL=OFF -DWITH_JASPER=OFF -DWITH_GSTREAMER=OFF -DWITH_XIMEA=OFF -DWITH_VTK=OFF -DPYTHON_LIBRARY=/home/pi/.linuxbrew/Cellar/python/2.7.13/lib/libpython2.7.so -DPYTHON_INCLUDE_DIR=/home/pi/.linuxbrew/Cellar/python/2.7.13/include/python2.7 -DWITH_CUDA=OFF -DWITH_OPENCL=OFF -DCMAKE_OSX_ARCHITECTURES=i386 -DOPENCV_EXTRA_C_FLAGS='-arch i386 -m32' -DOPENCV_EXTRA_CXX_FLAGS='-arch i386 -m32' Last 15 lines from /home/pi/.cache/Homebrew/Logs/opencv/01.cmake: -- Check size of unsigned short -- Check size of unsigned short - failed -- Check size of unsigned int -- Check size of unsigned int - failed -- Check size of unsigned long -- Check size of unsigned long - failed CMake Error at /home/pi/.linuxbrew/Cellar/cmake/3.7.2/share/cmake/Modules/TestBigEndian.cmake:41 (message): no suitable type found Call Stack (most recent call first): CMakeLists.txt:481 (test_big_endian)
-- Configuring incomplete, errors occurred! See also "/tmp/opencv-20170404-11090-4069vm/opencv-2.4.13.2/macbuild/CMakeFiles/CMakeOutput.log". See also "/tmp/opencv-20170404-11090-4069vm/opencv-2.4.13.2/macbuild/CMakeFiles/CMakeError.log".
READ THIS: https://github.com/Linuxbrew/brew/blob/master/docs/Troubleshooting.md#troubleshooting
These open issues may also help: opencv lopencv_imgcodecs not found https://github.com/Homebrew/homebrew-science/issues/4680 opencv modify libstdc++ to libc++ https://github.com/Homebrew/homebrew-science/pull/2714 OpenCV 3.1.0 Java Link Problem https://github.com/Homebrew/homebrew-science/issues/3268
help needed as soon as possible Thank You