How to use libusb for android at Qt Creatror.
-
Now I am exactly here:
[quote author="xmaze" date="1417649349"]@ LIBS += -L/home/unix/Downloads/libusb-master/android/libs/armeab
-l libusb1.0.so
INCLUDEPATH += /home/unix/Downloads/libusb-master/android/libs/armeabi @i have made this changes but i have also the following error
@/home/unix/MyCODE/QT_Creator/src/librtlsdr.c:30: error: libusb.h: No such file or directory
#include <libusb.h>@any ideas ?[/quote]
my libusb.h is in:
/home/toad/libusb-1.0.19/libusb/libusb.hand in the .pro file I have
INCLUDEPATH += /home/toad/libusb-1.0.19/libusband in the .h I've tried both:
#include "/home/esaote/libusb-1.0.19/libusb/libusb.h"
#include <libusb.h> -
Right now I have in the .pro file:
@
LIBS += -L/home/toad/libusb-1.0.19/android/libs/armeabi-v7a
-lusb1.0INCLUDEPATH += /home/toad/libusb-1.0.19/android/libs/armeabi-v7a\ INCLUDEPATH += /home/toad/libusb-1.0.19/libusb\
@
If I am not wrong this looks pretty much like your final .pro file but adding the final line, this final line is the one we agreed I should write in order to be able to do in de .h file:
@
#include <libusb.h>
@And with this (I am pretty much 100% the paths are correct, QT even autocompletes for me the include) it keeps on giving me the error:
libusb.h: No such file or directory
on the other hand I don't understand either why I should include it I already made the ndk-make to build it in the libusb1.0.so that I am including in the .pro file