OpenCLCapsViewer
OpenCLCapsViewer copied to clipboard
the app can not access `libOpenCL.so` for android 12 and above
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.
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.
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.
+1 Found while running on a Poco F5 phone (Adreno 725).. Android 13 by default..
Any update on this?
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.