vkel icon indicating copy to clipboard operation
vkel copied to clipboard

Compilation issues on android (fix included)

Open char8t opened this issue 9 years ago • 0 comments

Hi,

First of all thank you for this beautiful loader!

But I have a problem. I generated the vkel source files with the current vulkan header version 38.

However on android-64 vkel.h tries to include xcb.h which of course fails.

The problem is that the header guard for the vkel platform defines does not work on android-64 (android-32 is untested).

To fix this I had to replace this line:

#elif defined(ANDROID) && defined(ARM_EABI) && !defined(ARM_ARCH_7A)

with this:

#elif defined(ANDROID) && defined(__ARM_ARCH) && __ARM_ARCH >= 7

Also in vkel.c the name of the vulkan library on android is not the same as on linux. So the following:

#ifdef VK_USE_PLATFORM_WIN32_KHR const char *name = "vulkan-1.dll"; #else const char *name = "libvulkan.so.1"; #endif

have to be changed to this:

#ifdef VK_USE_PLATFORM_WIN32_KHR const char *name = "vulkan-1.dll"; #else #ifdef VK_USE_PLATFORM_ANDROID_KHR const char *name = "libvulkan.so"; #else const char *name = "libvulkan.so.1"; #endif #endif

Hope someone can test and verify this.

char8t avatar Jan 12 '17 00:01 char8t