[GH-ISSUE #24] android build #19

Open
opened 2026-03-02 04:08:49 +03:00 by kerem · 3 comments
Owner

Originally created by @sam-cts on GitHub (Jan 19, 2021).
Original GitHub issue: https://github.com/gen2brain/cam2ip/issues/24

Hi there,

I am interested to build this application for android device, I saw you do have android support, however I am having trouble to build it. Can you please kindly share the build steps for the android build?

Thanks.

Originally created by @sam-cts on GitHub (Jan 19, 2021). Original GitHub issue: https://github.com/gen2brain/cam2ip/issues/24 Hi there, I am interested to build this application for android device, I saw you do have android support, however I am having trouble to build it. Can you please kindly share the build steps for the android build? Thanks.
Author
Owner

@gen2brain commented on GitHub (Jan 19, 2021):

Hi, you have an example here https://github.com/gen2brain/cam2ip/blob/master/make.bash#L106, you need to install the Android toolchain first. You also must have rooted devices so you can start it from the shell.
It is still a work in progress, it uses camera2 API but I don't get a callback on my current phone so I can not test it. Btw. there is a was also to build opencv2 version and use it for the native camera on Android, but up to version 4.0 I think, so only for very old devices.

<!-- gh-comment-id:762751667 --> @gen2brain commented on GitHub (Jan 19, 2021): Hi, you have an example here https://github.com/gen2brain/cam2ip/blob/master/make.bash#L106, you need to install the Android toolchain first. You also must have rooted devices so you can start it from the shell. It is still a work in progress, it uses `camera2` API but I don't get a callback on my current phone so I can not test it. Btw. there is a was also to build opencv2 version and use it for the native camera on Android, but up to version 4.0 I think, so only for very old devices.
Author
Owner

@sam-cts commented on GitHub (Jan 20, 2021):

@gen2brain thank you very much, I got it to build and running on rooted device now. However it is not able to retrieve frame from camera. does it require some camera permission setting?

<!-- gh-comment-id:763485460 --> @sam-cts commented on GitHub (Jan 20, 2021): @gen2brain thank you very much, I got it to build and running on rooted device now. However it is not able to retrieve frame from camera. does it require some camera permission setting?
Author
Owner

@gen2brain commented on GitHub (Jan 20, 2021):

Check what your camera supports, there are apps like this one https://play.google.com/store/apps/details?id=com.airbeat.device.inspector, and as I said, it is still WIP and not tested.

<!-- gh-comment-id:763507183 --> @gen2brain commented on GitHub (Jan 20, 2021): Check what your camera supports, there are apps like this one https://play.google.com/store/apps/details?id=com.airbeat.device.inspector, and as I said, it is still WIP and not tested.
Sign in to join this conversation.
No milestone
No project
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
starred/cam2ip#19
No description provided.