Build Fail on Jetson Nano
Closed this issue · 4 comments
I try to build it on Jetson nano and encountered 2 errors:
glslc
not found
- lunarg Vulkan SDK only provide x86_64 version
- glslang repo only provide
glslangValidator
andspriv-xxx
Is there any possible to build/install an armglslc
?
absl error
uVkCompute/uvkc/vulkan/dynamic_symbols.cc:179:10: error: could not convert ‘syms’ from ‘std::unique_ptr<uvkc::vulkan::DynamicSymbols>’ to ‘absl::lts_20211102::StatusOr<std::unique_ptr<uvkc::vulkan::DynamicSymbols> >’
return syms;
I have checked #14 and fixed it with cmake -DCMAKE_C_COMPILER=$(which clang) -DCMAKE_CXX_COMPILER=$(which clang++) ..
. If uVkCompute only support clang, would you please review this PR #16 ?
Ah, https://github.com/google/shaderc involves glslc
~
Yes, if you'd like to run glslc
on Jetson itself, you need an ARM build of it. Try to see if Android NDK has it, as the CMake will also try to find under ANDROID_NDK path.
Another way is that you cross compile towards Jetson with a host machine, like the way Android is targeted. Then you can use the host glslc
.
W.r.t. compilers, yeah right now only Clang is well tested. But only supporting Clang is not the intention; missing GCC support is a bug. If you are interested, pull requests to fix it would be awesome. Otherwise I can fix it later. :)
Thanks for the fix! I think there are no further actionable items for this issue. So closing.