I am new to QT and i have encountered the problem for which i cant find the solution.. so i want to ask for Your advices

So, currently i am writing the application for android with QT creator in win7. When it is simple (aka 'hello world') it compiles and runs on the connected android tablet successfully. The problem begins when i try to use 'libusb' library - qt creator shows lots of linking errors and fails to build (more details ahead).



I have downloaded latest libusb-1.0.19.7z (from here) with .a and .h files. I have just copy/paste Header (libusb.h) and static lib (libusb-1.0.a) files (for MinGW32) to my project directory and added to project using qt creator.


after adding library, .pro file is like this (skipping basic code lines)...
Qt Code:
  1. ...
  2. unix:!macx: LIBS += -L$$PWD/ -lusb-1.0
  3.  
  4. INCLUDEPATH += $$PWD/
  5. DEPENDPATH += $$PWD/
  6.  
  7. unix:!macx: PRE_TARGETDEPS += $$PWD/libusb-1.0.a
To copy to clipboard, switch view to plain text mode 


When i try to build project, it shows this:

Qt Code:
  1. 23:55:37: Running steps for project TestAndroid...
  2. 23:55:37: Configuration unchanged, skipping qmake step.
  3. 23:55:37: Starting: "C:\Qt\Tools\mingw482_32\bin\mingw32-make.exe"
  4. C:\Qt\5.3\android_armv7\bin\qmake.exe -spec android-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ..\TestAndroid\TestAndroid.pro
  5. C:\android\ndk\android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ --sysroot=C:\android\ndk\android-ndk-r10b/platforms/android-9/arch-arm/ -Wl,-soname,libTestAndroid.so -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libTestAndroid.so main.obj testclassAndroid.obj hid.obj qrc_qml.obj moc_testclass.obj -LC:\android\ndk\android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -LC:\android\ndk\android-ndk-r10b/platforms/android-9/arch-arm//usr/lib -LC:/Users/dainius/Desktop/qt/projects/TestAndroid/ -lusb-1.0 -LC:/Qt/5.3/android_armv7/lib -lQt5Quick -Lc:\Utils\android\ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -Lc:\Utils\android\ndk/platforms/android-9/arch-arm//usr/lib -LC:\Utils\icu32_51_1_mingw482\lib -LC:\utils\postgresql\pgsql\lib -LC:\utils\mysql\mysql\lib -LC:\Utils\pgsql\lib -LC:\temp\opensll-android-master\openssl-android-master\lib -LC:\Qt\5.3\android_armv7/lib -lQt5Qml -lQt5Widgets -lQt5Network -lQt5Gui -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc
  6. ..\TestAndroid/libusb.h:1792: error: undefined reference to 'libusb_control_transfer'
  7. ..\TestAndroid/hid.c:484: error: undefined reference to 'libusb_get_bus_number'
  8. ..\TestAndroid/hid.c:485: error: undefined reference to 'libusb_get_device_address'
  9. ..\TestAndroid/hid.c:499: error: undefined reference to 'libusb_init'
  10. ..\TestAndroid/hid.c:514: error: undefined reference to 'libusb_exit'
  11.  
  12. and more undefined references...
To copy to clipboard, switch view to plain text mode 


btw, readme.txt file from libusb-1.0.19.7z tells this:
Qt Code:
  1. MinGW/cygwin
  2. - Copy libusb.h, from include/libusb-1.0/ to your default include directory,
  3. and copy the MinGW32/ or MinGW64/ .a files to your default library directory.
  4. Or, if you don't want to use the default locations, make sure that you feed
  5. the relevant -I and -L options to the compiler.
  6. - Add the '-lusb-1.0' linker option when compiling.
To copy to clipboard, switch view to plain text mode 



So what i am doing wrong here or am i missing something??
Thanks in advance.


More info:
I am using QT Creator 3.2.2, QT 5.3.2 (msvc 2010, 32bit). I have tried on WIN7 32bit and 64bit