Did someone compiled properly a code with vulkan a...
# kotlin-native
d
Did someone compiled properly a code with vulkan api? cinterop properly generated bindings (IDE prompts vulkan methods, I am able to create vulkan structs etc) but during final compilation I get many undefined references errors.
o
Did you pass linkerOpts to link in all needed libs?
d
Yes I passed linkerOpts in cmake
o
So how linker error looks like?
d
like this:
Copy code
/tmp/combined372252388983080482.o:ld-temp.o:function vulkan_kniBridge231: error: undefined reference to 'vkMergeValidationCachesEXT'
/tmp/combined372252388983080482.o:ld-temp.o:function vulkan_kniBridge232: error: undefined reference to 'vkGetValidationCacheDataEXT'
/tmp/combined372252388983080482.o:ld-temp.o:function vulkan_kniBridge233: error: undefined reference to 'vkGetMemoryHostPointerPropertiesEXT'
exception: java.lang.IllegalStateException: The /home/kuba/.konan/dependencies/target-gcc-toolchain-3-linux-x86-64/x86_64-unknown-linux-gnu/bin/l
it seems you haven't passed
-lvulkan
as
linkerOpts
, above gist works on Ubuntu 17.10 for me