unable to resolve type 'uint32_t'
tdenovan opened this issue · comments
tdenovan commented
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!
Alexander Duda commented
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
Thanks! I was using master of ropencv but not rbind.
Thanks for a great gem.