Log in or register to post comments

UVC driver sample is broken

November 8, 2019 - 3:39pm #1

Hello, 

I'm trying to build vuforia-driver-sample-uvcdriver-android-8-5-8 code without success.

I have cloned UVCCamera code and reset it to commit 477aee87ba763d003b039ab26406724bba721e8e as mentioned in README. I have built it successfully. But when I try to build Vuforia driver it gives me linker errors (see attachment)

 

Please advise what is wrong here.

AttachmentSize
Plain text icon errors.txt6.31 KB

UVC driver sample is broken

November 12, 2019 - 12:43pm #3

I have found solution in release note for version 8.1.7.

It's about to add USBController.requestUSBPermission(session.mActivityRef.get()); after Vuforia.setDriverLibrary("libUVCDriver.so"); and before Vuforia.init(); Also import com.vuforia.samples.uvcDriver.USBController; is required.

USB camera works now.

UVC driver sample is broken

November 12, 2019 - 11:32am #2

Hello, 

I have managed to build UVCDriver by playing with NDK and cmake versions.

But I'm facing next issue now. The sample app can't  open USB camera due to no permission according to log (see attachment). Good thing there is no any crash but meaningful log output. Bad thing that I don't know what to do with it. I guess that I'm missing some step here which is missed and documentation also. I see the permission dialog when the app starts and answer yes but looks like it doesn't affect permission status. Vuforia 8.5.8

Could you please help me to identify this step? Any workaround?

AttachmentSize
Plain text icon permission.txt5.78 KB
Log in or register to post comments