how to build hidapi on Android project #118

Closed
opened 2019-11-14 03:34:27 -06:00 by Chakib-Temal · 5 comments
Chakib-Temal commented 2019-11-14 03:34:27 -06:00 (Migrated from github.com)

hi

what's the steps to build and work with the library in android os ?

before talking about android.mk ? there is no other operation ?

download the ndk or what exactly ? thank's

hi what's the steps to build and work with the library in android os ? before talking about android.mk ? there is no other operation ? download the ndk or what exactly ? thank's
z3ntu commented 2019-11-14 05:47:24 -06:00 (Migrated from github.com)

Duplicate of #24

Duplicate of #24
Youw commented 2019-11-14 06:29:50 -06:00 (Migrated from github.com)
Start with [Android: Add C and C++ code to your project](https://developer.android.com/studio/projects/add-native-code)
Chakib-Temal commented 2019-11-14 07:22:01 -06:00 (Migrated from github.com)

Start with Android: Add C and C++ code to your project

i have already do this (i can execute my c++ in android )

before asking : i used this link https://github.com/libusb/libusb/tree/master/android

for your exemple : what's the next step after adding the c++ to my project
here we have only the android.mk and nothing other to do ?
i don't realy understand 24

new project in android use the cmakeList.txt and not Android.mk !

> Start with [Android: Add C and C++ code to your project](https://developer.android.com/studio/projects/add-native-code) i have already do this (i can execute my c++ in android ) before asking : i used this link https://github.com/libusb/libusb/tree/master/android for your exemple : what's the next step after adding the c++ to my project here we have only the android.mk and nothing other to do ? i don't realy understand [24](https://github.com/libusb/hidapi/issues/24) new project in android use the cmakeList.txt and not Android.mk !
Youw commented 2019-11-14 08:00:17 -06:00 (Migrated from github.com)

This is general Android/build system related question.

If you have issues/questions related directly to hidapi - we'd be happy to help you as much as we could.

Personally I am not an Android expert, and I wouldn't expect you to search general Android-related help here.

This is general Android/build system related question. If you have issues/questions related directly to `hidapi` - we'd be happy to help you as much as we could. Personally I am not an Android expert, and I wouldn't expect you to search general Android-related help here.
Chakib-Temal commented 2019-11-14 08:40:46 -06:00 (Migrated from github.com)

This is general Android/build system related question.

If you have issues/questions related directly to hidapi - we'd be happy to help you as much as we could.

Personally I am not an Android expert, and I wouldn't expect you to search general Android-related help here.

no problem thank's

i tried to do it in my linux
now i have a problem in execution

if (hid_init()) return -1;

undefined reference to `hid_init'

the include of the file is fine , but i can't use any functions
did you have an idea ? thank you for yours answers

> This is general Android/build system related question. > > If you have issues/questions related directly to `hidapi` - we'd be happy to help you as much as we could. > > Personally I am not an Android expert, and I wouldn't expect you to search general Android-related help here. no problem thank's i tried to do it in my linux now i have a problem in execution `if (hid_init()) return -1;` undefined reference to `hid_init' the include of the file is fine , but i can't use any functions did you have an idea ? thank you for yours answers
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi#118
No description provided.