D-Alex / ropencv

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

compilation error #45

Open andyschmidt opened 3 years ago

andyschmidt commented 3 years ago

Hi, I'm using ruby 2.7.1 and opencv 4.2.0.

On executing 'gem install ropencv' I get the following error:

Rbind: found opencv 4.2.0

/home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/ropencv-0.0.32/ext/helper.rb:85: warning: deprecated Object#=~ is called on FalseClass; it always returns nil
/home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/ropencv-0.0.32/ext/helper.rb:85: warning: deprecated Object#=~ is called on FalseClass; it always returns nil
/home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/ropencv-0.0.32/ext/helper.rb:85: warning: deprecated Object#=~ is called on FalseClass; it always returns nil
ignore: parent class cv::class which is invalid for 
ignore: class Feature2D cannot be parent class of itself
ignore: parent class Algorithm was added multiple time to class Feature2D
Parsing Error: input line 7890: cv::ShapeContextDistanceExtractor has no type called Ptr<ShapeTransformer>
Line 7889:
--------------------------------------------------
cv.ShapeContextDistanceExtractor.setTransformAlgorithm void /V;/PV
    Ptr_ShapeTransformer transformer 
--------------------------------------------------
Traceback (most recent call last):
    10: from /home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/ropencv-0.0.32/ext/src/../rbind.rb:63:in `<main>'
     9: from /home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rbind-0.0.33/lib/rbind/rbind.rb:99:in `parse_headers'
     8: from /home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rbind-0.0.33/lib/rbind/default_parser.rb:374:in `parse'
     7: from /home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rbind-0.0.33/lib/rbind/default_parser.rb:374:in `each'
     6: from /home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rbind-0.0.33/lib/rbind/default_parser.rb:386:in `block in parse'
     5: from /home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rbind-0.0.33/lib/rbind/default_parser.rb:349:in `parse_operation'
     4: from /home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rbind-0.0.33/lib/rbind/default_parser.rb:349:in `map'
     3: from /home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rbind-0.0.33/lib/rbind/default_parser.rb:350:in `block in parse_operation'
     2: from /home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rbind-0.0.33/lib/rbind/default_parser.rb:95:in `parameter'
     1: from /home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rbind-0.0.33/lib/rbind/default_parser.rb:85:in `find_type'
/home/znow/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/rbind-0.0.33/lib/rbind/core/rnamespace.rb:489:in `type': cv::ShapeContextDistanceExtractor has no type called Ptr<ShapeTransformer> (RuntimeError)

I appreciate any hint.

regards, Andy