This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

qthid build fix

By: a guest on Nov 16th, 2012  |  syntax: Diff  |  size: 0.63 KB  |  views: 46  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff -u a/qthid.pro b/qthid.pro
  2. --- a/qthid.pro        2011-03-12 21:47:58.000000000 +0100
  3. +++ b/qthid.pro 2012-11-16 23:46:13.567377025 +0100
  4. @@ -37,7 +37,10 @@
  5.  
  6.  mac: SOURCES += hidmac.c
  7.  win32: SOURCES += hidwin.cpp
  8. -linux-g++: SOURCES +=hid-libusb.c
  9. +
  10. +linux-g++|linux-g++-64|glibc-g++ {
  11. +    SOURCES +=hid-libusb.c
  12. +}
  13.  
  14.  HEADERS  += mainwindow.h \
  15.      hidapi.h \
  16. @@ -50,7 +53,7 @@
  17.  win32:LIBS += "C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\Lib\\setupapi.lib"
  18.  
  19.  # libusb-1.0 on Linux uses pkg-config
  20. -linux-g++ {
  21. +linux-g++|linux-g++-64|glibc-g++ {
  22.      CONFIG += link_pkgconfig
  23.      PKGCONFIG += libusb-1.0
  24.  }
clone this paste RAW Paste Data