thanks for the answer.
i used compiler from Android NDK and built 'libusb' for Android (i have downloaded the source files from the github). In result i got libs and obj folders with .so files in it.
So, i updated my .pro file accordingly...
unix:!macx: LIBS += -L$$PWD/../../libusb-master/android/libs/armeabi-v7a/ -lusb1.0
INCLUDEPATH += $$PWD/../../libusb-master/android/libs/armeabi-v7a
DEPENDPATH += $$PWD/../../libusb-master/android/libs/armeabi-v7a
unix:!macx: LIBS += -L$$PWD/../../libusb-master/android/libs/armeabi-v7a/ -lusb1.0
INCLUDEPATH += $$PWD/../../libusb-master/android/libs/armeabi-v7a
DEPENDPATH += $$PWD/../../libusb-master/android/libs/armeabi-v7a
To copy to clipboard, switch view to plain text mode
...and it finally compiled successfully.
Unfortunately, my program fails to start on Android tablet and QT creator shows the following:
Starting remote process.
Unable to start "org.qtproject.example.HidManager".
Starting remote process.
Unable to start "org.qtproject.example.HidManager".
To copy to clipboard, switch view to plain text mode
Checked the logcat and found:
E/dalvikvm(13795): dlopen("/data/app-lib/org.qtproject.example.HidManager-1/libH
idManager.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1635):
could not load library "libusb1.0.so" needed by "libHidManager.so"; caused by lo
ad_library(linker.cpp:745): library "libusb1.0.so" not found
E/dalvikvm(13795): dlopen("/data/app-lib/org.qtproject.example.HidManager-1/libH
idManager.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1635):
could not load library "libusb1.0.so" needed by "libHidManager.so"; caused by lo
ad_library(linker.cpp:745): library "libusb1.0.so" not found
To copy to clipboard, switch view to plain text mode
What could be the suggestions what i am doing wrong here (again)?
BTW, when removing the usage of libusb library from the project, application on android runs successfully.
Bookmarks