Skip to content

compilation error #45

Description

@andyschmidt

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions