
 Originally Posted by 
Baasie
					
				 
				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
	
	LIBS += -LC:/Qt/mingw/lib \
    -llibmtp \
    libusb \
    libiconv \
    libtag
        LIBS += -LC:/Qt/mingw/lib \
    -llibmtp \
    libusb \
    libiconv \
    libtag
To copy to clipboard, switch view to plain text mode 
  
edit2:  don't forgot to place this in your header:
	
	#include <usb.h>
        #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 
	
	LIBS += -L/usr/local/lib \ -llibusb
        LIBS += -L/usr/local/lib \ -llibusb
To copy to clipboard, switch view to plain text mode 
  
	
	#include </usr/local/include/libusb-1.0/libusb.h>
        #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
	
	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
g++: -llibusb: No such file or directory
make: Leaving directory `/home/sisco/Projects/USBCom'
make: *** [USBCom] Error 1
Exited with code 2.
Error while building project USBCom
When executing build step 'Make'
        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
g++: -llibusb: No such file or directory
make: Leaving directory `/home/sisco/Projects/USBCom'
make: *** [USBCom] Error 1
Exited with code 2.
Error while building project USBCom
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.
				
			
Bookmarks