title: OpenCV v3.1.0 with CRF-RNN
body: <p>I'm building <a href="https://github.com/torrvision/crfasrnn" rel="nofollow">CRFasRNN</a> which itself is based on caffe) after upgrading openCV to version 3.1.0 (the previous one was 2.4 I think). I keep getting errors like </p>
  
  <pre><code>io.cpp:(.text+0x11f8): undefined reference to `cv::imdecode(cv::_InputArray const&amp;, int)'
  </code></pre>
  
  <p>during compilation, specifically when complining . This didn't happen the previous time I installed it. I built caffe and pycaffe (version 1.0.0.) without much complications, but the one that crf-rnn requires apparently has a problem with opencv 3.1.0. Installing pycaffe for crf-rnn alone doesn't work either. All paths to libraries seem to work fine, I'm not sure what I'm doing wrong. </p>
  
  <p>I tried working something out with dependencies of opencv, but I keep getting  messages like </p>
  
  <pre><code>The following packages have unmet dependencies.
   libopencv-dev : Depends: libopencv-objdetect-dev (= 2.3.1-7) but it is not going to be installed
                   Depends: libopencv-highgui-dev (= 2.3.1-7) but it is not going to be installed
                   Depends: libopencv-calib3d-dev (= 2.3.1-7) but it is not going to be installed
                   Depends: libopencv-features2d-dev (= 2.3.1-7) but it is not going to be installed
                   Depends: libopencv-legacy-dev (= 2.3.1-7) but it is not going to be installed
                   Depends: libopencv-contrib-dev (= 2.3.1-7) but it is not going to be installed
  </code></pre>
  
  <p>OpenCV alone works fine. Before this installation I had no problems.</p>
  
  <p>Any suggestions?    </p>