title: OpenCV 2.4 on Ubuntu 12.04 with QtCreator
body: <p>I moved to Ubuntu recently and I can't get openCV working with QtCreator. As described in the OpenCv install guide I built and installed the openCV library in <code>/usr/local/lib</code>, I updated <code>opencv.conf</code> in <code>/etc/ld.so.conf.d/</code> and run <code>sudo ldconfig -v</code>.</p>
  
  <p>But when I try to run a simple "hello world" program that shows an image in a namedWindow I get the following error:</p>
  
  <blockquote>
    <p>OpenCv Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /home/wedontplay/documenti/Library Installer/OpenCV-2.4.0/modules/core/array.cpp, line 2482 terminate called after throwing an instace of 'cv::Excepton' what(): /home/wedontplay/Library Installer/OpenCV-2.4.0/modules/core/src/array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat</p>
  </blockquote>
  
  <p>Why does Qt search in <code>/home/wedontplay/Documenti/...</code> instead of <code>/usr/local/lib</code> (it is searching in the folder where I have the OpenCv libs source code)?</p>
  
  <p>Any suggestion would be really appreciated.</p>