OpenCLCapsViewer icon indicating copy to clipboard operation
OpenCLCapsViewer copied to clipboard

the app can not access `libOpenCL.so` for android 12 and above

Open RABijl opened this issue 2 years ago • 5 comments

I tried running your app on a Samsung A53 with android 13, but it could not find the opencl library. I know it is there since I made a native app using it and encountered the same problem.

with the bump to Sdk version 31 <uses-native-library> element is required to access shared vendor native libraries like libOpenCL.so. see documentation . This field requires the gradle version to be bumped up to at least 7.2 according to this post. I personally got it to work in android studio with gradle version 7.5.

I tried to add these changes to your code, but I'm not familiar enough with the qt ecosystem to get it to successfully parse the <uses-native-library> element. Hopefully, this is enough information to fix this.

RABijl avatar Mar 31 '23 12:03 RABijl

Is there any plan to fix this?

I took a quick look and it appears that the version of QT also needs to be bumped so that a newer gradle version (supporting uses-native-library) can be used.

Jeremy-Kemp avatar May 24 '23 09:05 Jeremy-Kemp

I'll take a look at this. I'm already using a newer Gradle version for the Vulkan Hardware Capability viewer. This works without having to bump the QT version.

SaschaWillems avatar May 30 '23 19:05 SaschaWillems

+1 Found while running on a Poco F5 phone (Adreno 725).. Android 13 by default..

oscarbg avatar Oct 14 '23 01:10 oscarbg

Any update on this?

Snektron avatar Jul 01 '24 13:07 Snektron

No update yet. I can't easily update my local environment for different reasons, and I had to put OpenCL on the back burner as my spare time has been very limited recently. I'll try to take a look at this, but no ETA.

SaschaWillems avatar Jul 02 '24 18:07 SaschaWillems