From e5de97e5c8ed7710e479a662f48ddd00041e1c35 Mon Sep 17 00:00:00 2001 From: Utkarsh Dalal Date: Fri, 23 Oct 2026 10:53:10 +0530 Subject: [PATCH] Link nativewindow instead of android on Android libandroid.so pulls in ~200 system libraries, and inside a Wine guest they resolve their own dependencies through LD_LIBRARY_PATH, so they bind to imagefs libraries of the same name. On Samsung and Xiaomi HyperOS that fails to link, and the Vulkan loader then cannot load the layer at all. The layer only needs AHardwareBuffer from the Android libraries, which libnativewindow.so exports, and its dependencies share no names with imagefs. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bfe5cf9..dd4d44a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,7 @@ target_link_libraries(lsfg-vk PRIVATE lsfg-vk-framegen) if(ANDROID) - target_link_libraries(lsfg-vk PRIVATE android) + target_link_libraries(lsfg-vk PRIVATE nativewindow) target_include_directories(lsfg-vk PRIVATE "${ANDROID_NDK}/sources/android/native_app_glue") endif()