title: OpenCV3.0 With Qt creator 3.2 & Qt 5.4 build error "mingw32-make: *** [Makefile] Error 3"
body: <p>I have compiled OpenCV 3.0 with Qt5.4 &amp; Qt Creator 3.2 64 bits in a Windows 7 machine.</p>
  
  <p>I have been trying to execute the most basic OpenCV functionalaty in loading a picture. Unfortunately it gives the following error:</p>
  
  <blockquote>
    <blockquote>
      <p>C:\Qt\qt-5.4.0-x64-mingw492r0-sjlj\qt-5.4.0-x64-mingw492r0-sjlj\bin\qmake.exe
      -spec win32-g++ CONFIG+=release -o Makefile ..\opencv_xpto\opencv_xpto.pro C:/Users/Nelson
      Faria/Documents/Programacao/opencv_xpto/opencv_xpto.pro:14: Extra
      characters after test expression. Error processing project file:
      ..\opencv_xpto\opencv_xpto.pro makefile:175: recipe for target
      'Makefile' failed mingw32-make: *** [Makefile] Error 3 20:53:17: The
      process
      "C:\Qt\qt-5.4.0-x64-mingw492r0-sjlj\mingw64\bin\mingw32-make.exe"
      exited with code 2. Error while building/deploying project opencv_xpto
      (kit: Qt 5.4) When executing step "Make" 20:53:17: Elapsed time:
      00:01.</p>
    </blockquote>
  </blockquote>
  
  <p>The code I'm trying to execute is the following:</p>
  
  <pre><code>   '#include &lt;iostream&gt;
      #include "opencv2/core/core.hpp"
      #include "opencv2/highgui/highgui.hpp"
      #include "opencv/cv.h"
  
      using namespace std;
  
      int main()
      {
          cout &lt;&lt; "Hello World!" &lt;&lt; endl;
  
          cv::Mat mat;
          mat = cv::imread("img.JPG");
          cv::namedWindow("hello");
          cv::imshow("hello",mat);
  
          cv::waitKey(0);
  
          return 0;
      }
  </code></pre>
  
  <p>And finally the .pro </p>
  
  <pre><code>TEMPLATE = app
  CONFIG += console
  CONFIG -= app_bundle
  CONFIG -= qt
  
  SOURCES += main.cpp
  
  INCLUDEPATH += C:\opencv-mingw\install\include
  LIBS += -LC:\\opencv-mingw\\install\\x64\mingw\\lib
      -lopencv_core300.dll \
      -lopencv_highgui300.dll \
      -lopencv_imgproc300.dll \
      -lopencv_features2d300.dll \
      -lopencv_calib3d300.dll
  
  include(deployment.pri)
  qtcAddDeployment()'
  </code></pre>
  
  <p>Can someone inlight me where I gone wrong?</p>