D-Alex / ropencv

ffi ruby wrapper for opencv
Other
67 stars 14 forks source link

Cannot install on Mavericks + Homebrew #19

Closed aledalgrande closed 10 years ago

aledalgrande commented 10 years ago

Got OpenCV 2.4.8.2 installed with Homebrew and then tried to install the gem:

Building native extensions with: '--with-opencv-dir=/usr/local/Cellar/opencv/2.4.8.2'
This could take a while...
ERROR:  Error installing ropencv:
    ERROR: Failed to build gem native extension.

    /usr/local/var/rbenv/versions/2.1.0/bin/ruby extconf.rb --with-opencv-dir=/usr/local/Cellar/opencv/2.4.8.2
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28") 
-- checking for module 'opencv'
--   found opencv, version 2.4.8.2
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/var/rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/ropencv-0.0.14/ext

make "DESTDIR=" clean

make "DESTDIR="
[ 25%] Generating types.cc, operations.cc, conversions.cc
/usr/local/var/rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/ropencv-0.0.14/ext/helper.rb:121:in `find_opencv': OpenCV version 2.4.8.2 is not supported (RuntimeError)
    from /usr/local/var/rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/ropencv-0.0.14/ext/src/../rbind.rb:6:in `<main>'
make[2]: *** [src/types.cc] Error 1
make[1]: *** [src/CMakeFiles/rbind_opencv.dir/all] Error 2
make: *** [all] Error 2

make failed, exit code 2

Gem files will remain installed in /usr/local/var/rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/ropencv-0.0.14 for inspection.
Results logged to /usr/local/var/rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/ropencv-0.0.14/gem_make.out
D-Alex commented 10 years ago

Thanks for reporting. ropencv is refusing to build because of a too strict policy. If the build server passes I am going to release a new gem by this evening,

aledalgrande commented 10 years ago

Thank you, installed latest version.