KhronosGroup / VK-GL-CTS

Khronos Vulkan, OpenGL, and OpenGL ES Conformance Tests
https://www.khronos.org/
Apache License 2.0
521 stars 290 forks source link

can I build and debug dEQP.apk with android studio? #421

Closed gmmo closed 10 months ago

gmmo commented 10 months ago

Hi,

I am able to build the CTS vulkan dEQP.apk on Linux and I wonder if it possible to build it from android studio and debug the conformance tests?

I was able to build from command line as below:

'lib/x86/libdeqp.so'...
 'lib/x86_64/libdeqp.so'...

Built /tmp/deqp-android-build/package/dEQP.apk
gustavo@ubuntu:~/VK-GL-CTS$ python scripts/android/build_apk.py --sdk ~/Android/Sdk --ndk ~/Android/Sdk/ndk/25.2.9519653/

However, I tried to open (I am not even sure if this is the correct gradle) the android_gradle project under:

gustavo@ubuntu:~/VK-GL-CTS/external/amber/src/android_gradle$

I get this error

C/C++: /home/gustavo/VK-GL-CTS/external/amber/src/CMakeLists.txt debug|armeabi-v7a : CMake Error at /home/gustavo/VK-GL-CTS/external/amber/src/third_party/CMakeLists.txt:19 (add_subdirectory):
  add_subdirectory given source
  "/home/gustavo/VK-GL-CTS/external/amber/src/third_party/googletest" which
  is not an existing directory.

image

and under the third_party/ I see nothing.

gustavo@ubuntu:~/VK-GL-CTS/external/amber/src/third_party$ ls
Android.mk  CMakeLists.txt
gustavo@ubuntu:~/VK-GL-CTS/external/amber/src/third_party$ 

How I get the dependencies? Do I have to clone differently?

If anyone is building with Android studio and able to debug the tests within Android studio, mind sharing the step?

thank you very much for your help.

AlexGalazin-IMG commented 10 months ago

The CTS doesn't support this use case. Amber is an external component and its android build artefacts are not really relevant