Ask Your Question

athundt's profile - activity

2015-10-12 16:25:21 -0500 commented question opencv3 build failing with linuxbrew

@berak I can't, the dependencies that come with ubuntu by default are too old so the next library utilizing opencv and other libraries won't compile with the default ubuntu packages!

2015-10-08 13:02:10 -0500 received badge  Editor (source)
2015-10-08 13:01:03 -0500 asked a question opencv3 build failing with linuxbrew

I'm trying to build opencv3 with linuxbrew with the standalone 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 ...
(more)
2015-06-23 14:02:01 -0500 commented question OCV3 replacing static CV_IMPLEMENT_QSORT( icvSortDistances, int, CV_LT )

@berak Thanks for the definition! That helps, any advice on replacing it or am I better of simply copy/pasting the original code into my own tree?

2015-06-23 05:07:21 -0500 received badge  Student (source)
2015-06-22 22:36:30 -0500 asked a question Google Accounts Broken

This is a meta question, but didn't know where else to put it.

Google accounts are broken, I had to create a new account. Is it possible to update opencv answers so that the google sign on system can continue to be used?

2015-06-22 22:36:30 -0500 asked a question OCV3 replacing static CV_IMPLEMENT_QSORT( icvSortDistances, int, CV_LT )

I'm in the process of upgrading from opencv2.4.10 to opencv3, and there is a macro in use in one of the libraries I need that has been removed.

static CV_IMPLEMENT_QSORT( icvSortDistances, int, CV_LT )

What do I do to replace this?