Quote Originally Posted by Baasie View Post
i think i placed the include files into include the .a files into the lib and you should have gotten .dll files to... place those into your system32 folder and then it should work i think...

i bitched a lot and need to retrace what i exacly did in the end..

if this doesn't work i will try it for you on a VB soon..

regards Baasie

edit: this is my .pro entry

Qt Code:
  1. LIBS += -LC:/Qt/mingw/lib \
  2. -llibmtp \
  3. libusb \
  4. libiconv \
  5. libtag
To copy to clipboard, switch view to plain text mode 

edit2: don't forgot to place this in your header:

Qt Code:
  1. #include <usb.h>
To copy to clipboard, switch view to plain text mode 
i am running linux and dont have any .dll files after running the setup the libs were installed /use/local/lib

but when adding this to my .pro file
Qt Code:
  1. LIBS += -L/usr/local/lib \ -llibusb
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. #include </usr/local/include/libusb-1.0/libusb.h>
To copy to clipboard, switch view to plain text mode 

while compiling gives me an error

Qt Code:
  1. g++ -m64 -Wl,-rpath,/home/sisco/qtsdk-2009.04/qt/lib -o USBCom main.o mainwindow.o moc_mainwindow.o -L/home/sisco/qtsdk-2009.04/qt/lib -L/usr/local/lib \ -llibusb -lQtGui -L/home/sisco/qtsdk-2009.04/qt/lib -L/usr/X11R6/lib64 -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
  2. g++: -llibusb: No such file or directory
  3. make: Leaving directory `/home/sisco/Projects/USBCom'
  4. make: *** [USBCom] Error 1
  5. Exited with code 2.
  6. Error while building project USBCom
  7. When executing build step 'Make'
To copy to clipboard, switch view to plain text mode 

i dont know what im doing wrong, seems like i have set everything up right.