-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android build error on Mac 10.15.4 #2097
Comments
cc @pezcode |
Sounds like it's not using the Vulkan headers coming with bgfx, those function pointers types are definitely defined in the bundled vulkan_core.h If you have the Vulkan SDK installed, try renaming vulkan.h temporarily so it picks up the correct headers from bgfx/3rdparty. |
@pezcode thanks . I do have a vulkan.h in ndk_dir/sysroot/usr/include/vulkan/. I renamed it and problem solved, but I can't leave ndk like that since I have multiple android projects going on. Any way to enforce the search path for bgfx android build? |
From a quick glance $(ANDROID_NDK_ROOT)/usr/include is added as an include path by bx and then transitively added to bgfx. I'm not familiar enough with the build system but @bkaradzic might have an idea on how to improve include path ordering here. |
I'll probably change directory name in 3rdparty/khronos. |
…m headers. Fixed issue bkaradzic#2097.
Pulled latest bx, bimg, bgfx. Ran
make android-arm
ormake android-arm64
and failed with the following error message:Seeme something wrong with vulkan related macros.
My android NDK is r16b. ANDROID_NDK_ROOT, ANDROID_NDK_ARM, ANDROID_NDK_MIPS. ANDROID_NDK_X86 has been set following https://bkaradzic.github.io/bgfx/build.html. Anyone ran into the same issue?
Thanks.
The text was updated successfully, but these errors were encountered: