title: No rule to make target
body: <p>I am trying to make QT application using C++ language which will record the video from analogue camera. so I included the <code>videoInput.h</code> and <code>videoInput.lib</code> files in my project but when i am trying to run the my project then the following error occurs.
  the error is:</p>
  
  <p><strong>mingw32-make[1]:</strong> <code>No rule to make target path/to/videoInputd.lib', needed by 'debug\test.exe'.  Stop.</code></p>
  
  <p>please give me the solution.
  thanks for help.</p>
  
  <p>Thanks for your reply. I already added LIBS.</p>
  
  <p><strong>My .pro file is</strong> </p>
  
  <pre><code>QT += core gui
  QT += widgets
  greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  
  TARGET = test
  TEMPLATE = app
  
  SOURCES += main.cpp\
          mainwindow.cpp
  
  HEADERS  += mainwindow.h \
      ../../../"Qt Projects/Test projects/test" \
      videoInput.h
  
  FORMS    += mainwindow.ui
  
  INCLUDEPATH += E:\\ImageProcessing\\opencv_cmake_binaries\\install\\include
  LIBS += -LE:\\ImageProcessing\\opencv_cmake_binaries\\install\\lib \
      -lopencv_core244.dll \
      -lopencv_highgui244.dll \
      -lopencv_imgproc244.dll \
      -lopencv_features2d244.dll \
      -lopencv_calib3d244.dll
  
  
  
  win32:CONFIG(release, debug|release): LIBS += -L$$PWD/ -lvideoInput
  else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/ -lvideoInputd
  
  INCLUDEPATH += $$PWD/../../../"Qt Projects/Test projects/test/videoInput"
  DEPENDPATH += $$PWD/../../../"Qt Projects/Test projects/test/videoInput"
  
  win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/videoInput.lib
  else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/videoInputd.lib
  </code></pre>
  
  <p><strong>end of .pro file.</strong>
  and I changed the build mode to release mode and then try to run then new error comes. The error is</p>
  
  <pre><code>error: redefinition of 'bool comInit'
  
  error: 'bool comInit' previously declared here
  static bool comInit;
  
  error: redefinition of 'class videoInput'
  class videoInput{
  
  error: previous definition of 'class videoInput'
  class videoInput{
  </code></pre>
  
  <p>These four errors are in <code>videoinput.h</code> file the compiler shows me like this.
  And I know the file name is <code>videoInput.h</code> but compile output shows me that <code>videoInputd.lib</code>, needed by <code>debug\test.exe</code></p>