propublica/schooner-tk

Can't get it to compile with latest opencv in brew

onyxfish opened this issue · 1 comments

So, it looks like opencv has changed since this code was written. In particular, some of the header files were in different locations. I was able to make a few changes and work around that, but now I'm hitting this:

src/schooner-stitch.cc:127:54: error: no member named 'get' in
      'cv::Ptr<cv::detail::Blender>'
  dynamic_cast<cv::detail::FeatherBlender *>(blender.get())

I'm moderately fluent in C++, but I'm not sure what the heck that .get() was. Whatever it was, it's not there now. Suggestions?

Ok, so the get is because it is sort of like a shared pointer and we need to cast it, so we need the underlying pointer. I'm not entirely sure what has changed, in HEAD, but I changed the docs to point to, homebrew science now:

brew tap homebrew/science
brew install opencv3

sorry this thing is sorta messy -- I need to find some time to clean it up. (and for the tardiness, had a sick family over the weekend)

Let me know if what I just pushed helps, and we can close it.