title: link error- Qt Creator OpenCV Ubuntu
body: <p>I am currently having a link error with Qt.
  I cant compile my code since i got the error message:</p>
  
  <pre><code> error: undefined reference to `cv::imread(cv::String const&amp;, int)'
  </code></pre>
  
  <p>Heres the content of my .pro</p>
  
  <pre><code>QT       += core
  
  QT       -= gui
  
  TARGET = edge_detection
  CONFIG   += console
  CONFIG   -= app_bundle
  
  TEMPLATE = app
  
  
  SOURCES += main.cpp
  
  
  INCLUDEPATH += /usr/local/include/opencv
  INCLUDEPATH += /usr/local/include/opencv2
  LIBS += -L/usr/local/lib
  LIBS += -lopencv_core
  LIBS += -lopencv_imgproc
  LIBS += -lopencv_highgui
  </code></pre>
  
  <p>Heres my simple code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;opencv2/core/core.hpp&gt;
  #include &lt;opencv2/highgui/highgui.hpp&gt;
  #include &lt;opencv2/imgproc/imgproc.hpp&gt;
  
  
  int main(){
  
      cv::Mat img;
  
      img=cv::imread("/home/cgross/Downloads/2.jpg");
  
  
      return 0;
  
  
  }
  </code></pre>
  
  <p>I am not sure of where is the problem</p>