D-Alex / ropencv

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

Problem installing from gem #5

Closed olegkurchin closed 10 years ago

olegkurchin commented 10 years ago

There is a problem installing gem in two cases: a) from rubygems and b) from GitHub source on OSX Maverick with Clang 5.0 and OpenCV 2.4.7

In a) case it says that opencv 2.4.7 is not supported. Looks like the gem is simply not updated, while master on GitHub solved it (updating \ext\helper.rb).

In b) case two things 1) 'lib\ropencv\ropencv_types.rb' is missing, while gemspec references to it 2) while installing it throws several errors of "expected ';' after top level declarator".

The moment is Scanning dependencies of target rbind_opencv [ 50%] Building CXX object src/CMakeFiles/rbind_opencv.dir/types.cc.o [ 75%] Building CXX object src/CMakeFiles/rbind_opencv.dir/operations.cc.o

One of examples is /ruby-2.0.0-p353@img-processing/gems/ropencv-0.0.12/ext/src/operations.h:1226:67: error: expected ';' after top level declarator rbind_cv_FileNodeIterator* rbind_cv_FileNodeIterator_operator_plus+(rbind_cv_FileNodeIterator* rbind_obj);

UPD. 1) Tried to build gem manually, running extconf.rb and rbind.rb manually - all works fine. But when running tests raise error at the same place. Suppose the problem in handling plus+ and minus-

2) Adjusting helper.rb in release published on rubygems.org to accept opencv 2.4.7. Everything works fine and passes all the tests without error. So high chances problem arise due to changes in source after publishing to rubygems.org

D-Alex commented 10 years ago

Thanks for reminding me to update the gem.

Most likely you were using a rbind version which was not compatible to your ropencv version. If you want to use the master branch of ropencv you also have to use the master branch of rbind.

I leave the ticket open until the gem is published (hopefully tomorrow).

olegkurchin commented 10 years ago

That's great! I found ropencv to be the only gem, which allows to keep uptodate with OpenCV development. Thanks a lot!

D-Alex commented 10 years ago

The gem was updated.