title: Adding libusb library to a Qt project in osx
body: <p>I've been attempting for the past 16 hours to attach the libusb library to a Qt project without much success. I would appreciate any input on the matter, it's getting frustrating.</p>
  
  <p>The .pro file is this:</p>
  
  <pre><code>TEMPLATE = app
  CONFIG += console
  CONFIG -= app_bundle
  CONFIG -= qt
  
  SOURCES += main.cpp
  
  INCLUDEPATH +=/usr/local/include/libusb-1.0
  LIBS += -L/usr/local/lib -libusb-1.0.a
  LIBS += -L&lt;libusb.h&gt;
  </code></pre>
  
  <p>Source code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;libusb.h&gt;
  
  
  using namespace std;
  
  int main()
  {
      cout &lt;&lt; "Hello World!" &lt;&lt; endl;
      return 0;
  }
  </code></pre>
  
  <p>Compiler output:</p>
  
  <pre><code>13:01:50: Running steps for project lallala...
  13:01:50: Configuration unchanged, skipping qmake step.
  13:01:50: Starting: "/usr/bin/make" -w
  make: Entering directory `/Users/MAXIMUS/Documents/workspace/lallala-build-Desktop_Qt_5_0_0_clang_64bit_SDK-Debug'
  /Users/MAXIMUS/Qt5.0.0/5.0.0/clang_64/bin/qmake -spec macx-g++42 CONFIG+=debug CONFIG+=x86_64 CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ../lallala/lallala.pro
  make: Leaving directory `/Users/MAXIMUS/Documents/workspace/lallala-build-Desktop_Qt_5_0_0_clang_64bit_SDK-Debug'
  make: Entering directory `/Users/MAXIMUS/Documents/workspace/lallala-build-Desktop_Qt_5_0_0_clang_64bit_SDK-Debug'
  g++-4.2 -headerpad_max_install_names -mmacosx-version-min=10.6 -o lallala main.o   -L/usr/local/lib -libusb-1.0.a -L&lt;libusb.h&gt; 
  /bin/sh: -c: line 0: syntax error near unexpected token `newline'
  /bin/sh: -c: line 0: `g++-4.2 -headerpad_max_install_names -mmacosx-version-min=10.6 -o lallala main.o   -L/usr/local/lib -libusb-1.0.a -L&lt;libusb.h&gt; '
  make: *** [lallala] Error 2
  make: Leaving directory `/Users/MAXIMUS/Documents/workspace/lallala-build-Desktop_Qt_5_0_0_clang_64bit_SDK-Debug'
  13:01:50: The process "/usr/bin/make" exited with code 2.
  Error while building/deploying project lallala (kit: Desktop Qt 5.0.0 clang 64bit (SDK))
  When executing step 'Make'
  </code></pre>