title: UnsatisfiedLinkError using opencv for processing
body: <p>I'm calling:</p>
  
  <pre><code>Mat opencv_K= new Mat(3, 3, CvType.CV_32F);
  </code></pre>
  
  <p>in a <a href="https://processing.org/" rel="nofollow noreferrer">Processing</a> sketch and I'm getting the following error:</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat(III)J
      at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:480)
      at java.lang.Thread.run(Thread.java:745)
  UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat(III)J
  A library relies on native code that's not available.
  Or only works properly when the sketch is run as a 32-bit application.
  </code></pre>
  
  <p>This error seems to me different from the one reported <a href="https://stackoverflow.com/questions/19942608/open-cv-with-processing-error">here</a>.</p>
  
  <p>A minimal example is:</p>
  
  <pre><code>import processing.core.PVector;
  import org.opencv.core.Mat;
  import org.opencv.core.CvType; 
  import org.opencv.core.Core;
  Mat opencv_K= new Mat(3, 3, CvType.CV_32F); 
  </code></pre>
  
  <p>And the error in this case is somewhat similar:</p>
  
  <pre><code>UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat(III)J
  A library relies on native code that's not available.
  Or only works properly when the sketch is run as a 32-bit application.
  </code></pre>
  
  <p>I'm using Processing 3 in an Ubuntu platform.</p>