Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv3 build failing with linuxbrew

I'm trying to build opencv3 with linuxbrew with the standalone setup, and it seems to be failing. I've recorded the relevant gist-logs which save all of the command line commands and debug output.

To reproduce the error from scratch create a vanilla ubuntu installation (I was using a VM with vmware tools) and run the following script from ahundt/homebrew-robotics which automates the linuxbrew setup and goes through opencv3 installation (this takes quite a while because all dependencies are built from scratch):

bash <(curl -fsSL https://raw.githubusercontent.com/ahundt/homebrew-robotics/master/robonetracker.sh)

The opencv3 install command of the above script is failing seemingly on the opencv3 python setup step. Here is the error:

hbr@homebrew-robotics:~$ brew install opencv3 --with-contrib --c++11 -v
...snip...
[100%] Built target opencv_perf_stitching
make[2]: Leaving directory '/tmp/opencv320151007-99937-11ogpj9/opencv-3.0.0/macbuild'
CMakeFiles/Makefile2:13078: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
make[1]: Leaving directory '/tmp/opencv320151007-99937-11ogpj9/opencv-3.0.0/macbuild'
Makefile:152: recipe for target 'all' failed
make: *** [all] Error 2
==> Formula
Tap: homebrew/homebrew-science
Path: /home/hbr/.linuxbrew/Library/Taps/homebrew/homebrew-science/opencv3.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/linuxbrew
HEAD: 512d47d84e9eca54071a6cd69ba1c92d1f575b3d
Last commit: 2 hours ago
HOMEBREW_PREFIX: /home/hbr/.linuxbrew
HOMEBREW_REPOSITORY: /home/hbr/.linuxbrew
HOMEBREW_CELLAR: /home/hbr/.linuxbrew/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://linuxbrew.bintray.com
CPU: quad-core 64-bit 6
OS X: 0-x86_64
Xcode: N/A
CLT: N/A
Clang: N/A
X11: N/A
System Ruby: 2.2.3 => /home/hbr/.linuxbrew/Cellar/ruby/2.2.3/bin/ruby
Perl: /usr/bin/perl
Python: /home/hbr/.linuxbrew/bin/python => /home/hbr/.linuxbrew/Cellar/python/2.7.10_2/bin/python2.7
Ruby: /home/hbr/.linuxbrew/bin/ruby => /home/hbr/.linuxbrew/Cellar/ruby/2.2.3/bin/ruby
Java: N/A
==> ENV
CC: /home/hbr/.linuxbrew/bin/gcc-5 => /home/hbr/.linuxbrew/Cellar/gcc/5.2.0/bin/gcc-5
CXX: /home/hbr/.linuxbrew/bin/g++-5 -std=c++11
OBJC: /home/hbr/.linuxbrew/bin/gcc-5
OBJCXX: /home/hbr/.linuxbrew/bin/g++-5
CFLAGS: -Os -w -pipe -march=core2
CXXFLAGS: -Os -w -pipe -march=core2
CPPFLAGS: -isystem/home/hbr/.linuxbrew/include
LDFLAGS: -L/home/hbr/.linuxbrew/lib -Wl,--dynamic-linker=/home/hbr/.linuxbrew/opt/glibc/lib/ld-linux-x86-64.so.2 -Wl,-rpath,/home/hbr/.linuxbrew/lib
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /home/hbr/.linuxbrew
PKG_CONFIG_LIBDIR: /home/hbr/.linuxbrew/lib/pkgconfig
PATH: /home/hbr/.linuxbrew/bin:/home/hbr/.linuxbrew/bin:/home/hbr/.linuxbrew/bin:/home/hbr/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/hbr/.linuxbrew/Library/ENV/scm

Error: homebrew/science/opencv3 3.0.0 did not build
Logs:
     /home/hbr/.cache/Homebrew/Logs/opencv3/01.cmake
     /home/hbr/.cache/Homebrew/Logs/opencv3/02.make



    READ THIS: https://github.com/Homebrew/linuxbrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
    If reporting this issue please do so at (not Homebrew/homebrew):
      https://github.com/homebrew/homebrew-science/issues

I've also created a related homebrew-science issue.

opencv3 build failing with linuxbrew

I'm trying to build opencv3 with linuxbrew with the standalone setup, setup on ubuntu 14.04, and it seems to be failing. I've recorded the relevant gist-logs which save all of the command line commands and debug output.

To reproduce the error from scratch create a vanilla ubuntu installation (I was using a VM with vmware tools) and run the following script from ahundt/homebrew-robotics which automates the linuxbrew setup and goes through opencv3 installation (this takes quite a while because all dependencies are built from scratch):

bash <(curl -fsSL https://raw.githubusercontent.com/ahundt/homebrew-robotics/master/robonetracker.sh)

The opencv3 install command of the above script is failing seemingly on the opencv3 python setup step. Here is the error:

hbr@homebrew-robotics:~$ brew install opencv3 --with-contrib --c++11 -v
...snip...
[100%] Built target opencv_perf_stitching
make[2]: Leaving directory '/tmp/opencv320151007-99937-11ogpj9/opencv-3.0.0/macbuild'
CMakeFiles/Makefile2:13078: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
make[1]: Leaving directory '/tmp/opencv320151007-99937-11ogpj9/opencv-3.0.0/macbuild'
Makefile:152: recipe for target 'all' failed
make: *** [all] Error 2
==> Formula
Tap: homebrew/homebrew-science
Path: /home/hbr/.linuxbrew/Library/Taps/homebrew/homebrew-science/opencv3.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/linuxbrew
HEAD: 512d47d84e9eca54071a6cd69ba1c92d1f575b3d
Last commit: 2 hours ago
HOMEBREW_PREFIX: /home/hbr/.linuxbrew
HOMEBREW_REPOSITORY: /home/hbr/.linuxbrew
HOMEBREW_CELLAR: /home/hbr/.linuxbrew/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://linuxbrew.bintray.com
CPU: quad-core 64-bit 6
OS X: 0-x86_64
Xcode: N/A
CLT: N/A
Clang: N/A
X11: N/A
System Ruby: 2.2.3 => /home/hbr/.linuxbrew/Cellar/ruby/2.2.3/bin/ruby
Perl: /usr/bin/perl
Python: /home/hbr/.linuxbrew/bin/python => /home/hbr/.linuxbrew/Cellar/python/2.7.10_2/bin/python2.7
Ruby: /home/hbr/.linuxbrew/bin/ruby => /home/hbr/.linuxbrew/Cellar/ruby/2.2.3/bin/ruby
Java: N/A
==> ENV
CC: /home/hbr/.linuxbrew/bin/gcc-5 => /home/hbr/.linuxbrew/Cellar/gcc/5.2.0/bin/gcc-5
CXX: /home/hbr/.linuxbrew/bin/g++-5 -std=c++11
OBJC: /home/hbr/.linuxbrew/bin/gcc-5
OBJCXX: /home/hbr/.linuxbrew/bin/g++-5
CFLAGS: -Os -w -pipe -march=core2
CXXFLAGS: -Os -w -pipe -march=core2
CPPFLAGS: -isystem/home/hbr/.linuxbrew/include
LDFLAGS: -L/home/hbr/.linuxbrew/lib -Wl,--dynamic-linker=/home/hbr/.linuxbrew/opt/glibc/lib/ld-linux-x86-64.so.2 -Wl,-rpath,/home/hbr/.linuxbrew/lib
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /home/hbr/.linuxbrew
PKG_CONFIG_LIBDIR: /home/hbr/.linuxbrew/lib/pkgconfig
PATH: /home/hbr/.linuxbrew/bin:/home/hbr/.linuxbrew/bin:/home/hbr/.linuxbrew/bin:/home/hbr/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/hbr/.linuxbrew/Library/ENV/scm

Error: homebrew/science/opencv3 3.0.0 did not build
Logs:
     /home/hbr/.cache/Homebrew/Logs/opencv3/01.cmake
     /home/hbr/.cache/Homebrew/Logs/opencv3/02.make



    READ THIS: https://github.com/Homebrew/linuxbrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
    If reporting this issue please do so at (not Homebrew/homebrew):
      https://github.com/homebrew/homebrew-science/issues

I've also created a related homebrew-science issue.