Open gryphon2411 opened 5 years ago
@Eido95 Big thanks. It also helped me.
👍
Shame on the Goog for not supporting GCC
For a related issue with a different app, I tried to migrate with [these instructions] (https://android.googlesource.com/platform/ndk/+/master/docs/ClangMigration.md), but encountered a build error
I downloaded the ndk v17c from here and everything worked fine I think
After cloning the repository, according to #358 comment I replaced:
with:
According to #181 comment I additionally tried to use
NDK_TOOLCHAIN_VERSION := 4.9
in each of the following NDK's.NDK 19 - didn't work
Errors:
E/UVCCamera: [27355*UVCCamera.cpp:172:connect]:could not open camera:err=-1
NDK_TOOLCHAIN_VERSION := 4.9
:/ndk-bundle/build/core/setup-toolchain.mk:52: *** Android NDK: Invalid NDK_TOOLCHAIN_VERSION value: 4.9. GCC is no longer supported. See https://android.googlesource.com/platform/ndk/+/master/docs/ClangMigration.md. . Stop.
NDK 18 - didn't work
Errors (same as NDK 19):
E/UVCCamera: [27355*UVCCamera.cpp:172:connect]:could not open camera:err=-1
NDK_TOOLCHAIN_VERSION := 4.9
:/ndk-bundle/build/core/setup-toolchain.mk:52: *** Android NDK: Invalid NDK_TOOLCHAIN_VERSION value: 4.9. GCC is no longer supported. See https://android.googlesource.com/platform/ndk/+/master/docs/ClangMigration.md. . Stop.
NDK 17 - work
Erros:
E/libusb/usbfs: [31358*android_usbfs.c:1776:release_interface]:release interface failed, error -1 errno 22
E/UVCCamera: [31358*UVCCamera.cpp:172:connect]:could not open camera:err=-99
When using
NDK_TOOLCHAIN_VERSION := 4.9
, the video worked, with the following warning: