D-Alex / ropencv

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

unable to resolve type 'uint32_t' #23

Closed tdenovan closed 10 years ago

tdenovan commented 10 years ago

I'm running OS X mavericks. I'm installing from the latest source - although I had to modify the gem spec to remove the reference to ["lib/ropencv/ropencv_types.rb","lib/ropencv/ropencv_ruby.rb"] or it wouldn't build.

Installing works ok, but when I try to include OpenCV I get the following error:

/Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/ffi-1.9.3/lib/ffi/types.rb:70:in `find_type': unable to resolve type 'uint32_t' (TypeError)
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/ffi-1.9.3/lib/ffi/library.rb:496:in `find_type'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/ffi-1.9.3/lib/ffi/library.rb:227:in `block in attach_function'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/ffi-1.9.3/lib/ffi/library.rb:227:in `map'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/ffi-1.9.3/lib/ffi/library.rb:227:in `attach_function'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/ropencv-0.0.15/lib/ropencv/ropencv.rb:32:in `attach_function'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/ropencv-0.0.15/lib/ropencv/ropencv.rb:489:in `<module:Rbind>'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/ropencv-0.0.15/lib/ropencv/ropencv.rb:8:in `<module:OpenCV>'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/ropencv-0.0.15/lib/ropencv/ropencv.rb:6:in `<top (required)>'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/ropencv-0.0.15/lib/ropencv.rb:1:in `require'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/ropencv-0.0.15/lib/ropencv.rb:1:in `<top (required)>'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `require'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `each'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `block in require'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `each'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `require'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.1/lib/bundler.rb:131:in `require'
    from /Users/theodore/projects/---/trunk/---/config/application.rb:7:in `<top (required)>'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.12/lib/rails/commands.rb:39:in `require'
    from /Users/theodore/.rvm/gems/ruby-2.0.0-p353/gems/railties-3.2.12/lib/rails/commands.rb:39:in `<top (required)>'

Thanks in advance!

D-Alex commented 10 years ago

Thank you for reporting the issue. It was already solved on master but never released as gem. I pushed a new gem for rbind and ropencv.

tdenovan commented 10 years ago

Thanks! I was using master of ropencv but not rbind.

Thanks for a great gem.