Skip to content
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

Update/Fix Android project #264

Closed
jbruchanov opened this issue Jan 25, 2022 · 6 comments
Closed

Update/Fix Android project #264

jbruchanov opened this issue Jan 25, 2022 · 6 comments

Comments

@jbruchanov
Copy link

Could you please update android project & add some docs what are the prerequisites to compile it ?

Currently after some fiddling with versions I'm finally able to start compiling it, however it fails with following log...
Not exactly sure what's the issue

./gradlew app:assembleDebug
...

> Task :app:buildCMakeDebug FAILED

C/C++: ninja: Entering directory `/Users/scurab/work/kompute/examples/android/android-simple/app/.cxx/Debug/6s4j6r6l/armeabi-v7a'
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:4:
C/C++: In file included from /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/set:427:
C/C++: In file included from /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/__tree:15:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/memory:1514:22: error: type 'std::__ndk1::allocator_traits<unsigned int *>::allocator_type' (aka 'unsigned int *') cannot be used prior to '::' because it has no members
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:331:22: note: in instantiation of template class 'std::__ndk1::allocator_traits<unsigned int *>' requested here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:470:15: note: in instantiation of template class 'std::__ndk1::__vector_base<vk::PhysicalDevice, unsigned int *>' requested here
C/C++: /Users/scurab/work/kompute/src/Manager.cpp:294:22: note: in instantiation of template class 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>' requested here
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:8:
C/C++: In file included from ../../../../../../../../src/include/kompute/Manager.hpp:7:
C/C++: In file included from ../../../../../../../../src/include/kompute/Core.hpp:12:
C/C++: In file included from ../../../../../../../../external/fmt/include/fmt/core.h:18:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:480:30: error: 'reference' is a protected member of 'std::__ndk1::__vector_base<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/work/kompute/src/Manager.cpp:294:22: note: in instantiation of template class 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>' requested here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:334:54: note: declared protected here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:481:30: error: 'const_reference' is a protected member of 'std::__ndk1::__vector_base<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:335:54: note: declared protected here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:483:30: error: 'difference_type' is a protected member of 'std::__ndk1::__vector_base<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:336:54: note: declared protected here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:484:30: error: 'pointer' is a protected member of 'std::__ndk1::__vector_base<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:337:54: note: declared protected here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:485:30: error: 'const_pointer' is a protected member of 'std::__ndk1::__vector_base<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:338:54: note: declared protected here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:491:37: error: type 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::allocator_type' (aka 'unsigned int *') cannot be used prior to '::' because it has no members
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:8:
C/C++: In file included from ../../../../../../../../src/include/kompute/Manager.hpp:7:
C/C++: In file included from ../../../../../../../../src/include/kompute/Core.hpp:14:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/sources/third_party/vulkan/src/include/vulkan/vulkan.hpp:68106:38: error: member reference base type 'const nullptr_t' is not a structure or union
C/C++: /Users/scurab/work/kompute/src/Manager.cpp:294:22: note: in instantiation of function template specialization 'vk::Instance::enumeratePhysicalDevices<unsigned int *, nullptr_t>' requested here
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:8:
C/C++: In file included from ../../../../../../../../src/include/kompute/Manager.hpp:7:
C/C++: In file included from ../../../../../../../../src/include/kompute/Core.hpp:14:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/sources/third_party/vulkan/src/include/vulkan/vulkan.hpp:68110:40: error: member reference base type 'const nullptr_t' is not a structure or union
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:8:
C/C++: In file included from ../../../../../../../../src/include/kompute/Manager.hpp:7:
C/C++: In file included from ../../../../../../../../src/include/kompute/Core.hpp:12:
C/C++: In file included from ../../../../../../../../external/fmt/include/fmt/core.h:18:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:507:11: error: type 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::__base' (aka '__vector_base<vk::PhysicalDevice, unsigned int *>') is not a direct or virtual base of 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/sources/third_party/vulkan/src/include/vulkan/vulkan.hpp:68101:43: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::vector' requested here
C/C++: /Users/scurab/work/kompute/src/Manager.cpp:294:22: note: in instantiation of function template specialization 'vk::Instance::enumeratePhysicalDevices<unsigned int *, nullptr_t>' requested here
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:8:
C/C++: In file included from ../../../../../../../../src/include/kompute/Manager.hpp:7:
C/C++: In file included from ../../../../../../../../src/include/kompute/Core.hpp:12:
C/C++: In file included from ../../../../../../../../external/fmt/include/fmt/core.h:18:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:2020:39: error: no member named '__begin_' in 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/sources/third_party/vulkan/src/include/vulkan/vulkan.hpp:68109:25: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::resize' requested here
C/C++: /Users/scurab/work/kompute/src/Manager.cpp:294:22: note: in instantiation of function template specialization 'vk::Instance::enumeratePhysicalDevices<unsigned int *, nullptr_t>' requested here
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:8:
C/C++: In file included from ../../../../../../../../src/include/kompute/Manager.hpp:7:
C/C++: In file included from ../../../../../../../../src/include/kompute/Core.hpp:12:
C/C++: In file included from ../../../../../../../../external/fmt/include/fmt/core.h:18:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:1083:38: error: no member named '__end_cap' in 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:2018:15: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::__append' requested here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/sources/third_party/vulkan/src/include/vulkan/vulkan.hpp:68109:25: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::resize' requested here
C/C++: /Users/scurab/work/kompute/src/Manager.cpp:294:22: note: in instantiation of function template specialization 'vk::Instance::enumeratePhysicalDevices<unsigned int *, nullptr_t>' requested here
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:8:
C/C++: In file included from ../../../../../../../../src/include/kompute/Manager.hpp:7:
C/C++: In file included from ../../../../../../../../src/include/kompute/Core.hpp:12:
C/C++: In file included from ../../../../../../../../external/fmt/include/fmt/core.h:18:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:833:17: error: call to non-static member function without an object argument
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:2020:15: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::__destruct_at_end' requested here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/sources/third_party/vulkan/src/include/vulkan/vulkan.hpp:68109:25: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::resize' requested here
C/C++: /Users/scurab/work/kompute/src/Manager.cpp:294:22: note: in instantiation of function template specialization 'vk::Instance::enumeratePhysicalDevices<unsigned int *, nullptr_t>' requested here
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:8:
C/C++: In file included from ../../../../../../../../src/include/kompute/Manager.hpp:7:
C/C++: In file included from ../../../../../../../../src/include/kompute/Core.hpp:12:
C/C++: In file included from ../../../../../../../../external/fmt/include/fmt/core.h:18:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:833:17: error: '__destruct_at_end' is a protected member of 'std::__ndk1::__vector_base<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:375:10: note: declared protected here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:698:47: error: no member named '__begin_' in 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:891:39: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::data' requested here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:834:9: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::__annotate_shrink' requested here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:2020:15: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::__destruct_at_end' requested here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/sources/third_party/vulkan/src/include/vulkan/vulkan.hpp:68109:25: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::resize' requested here
C/C++: /Users/scurab/work/kompute/src/Manager.cpp:294:22: note: in instantiation of function template specialization 'vk::Instance::enumeratePhysicalDevices<unsigned int *, nullptr_t>' requested here
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:8:
C/C++: In file included from ../../../../../../../../src/include/kompute/Manager.hpp:7:
C/C++: In file included from ../../../../../../../../src/include/kompute/Core.hpp:12:
C/C++: In file included from ../../../../../../../../external/fmt/include/fmt/core.h:18:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:659:25: error: call to non-static member function without an object argument
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:891:56: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::capacity' requested here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:834:9: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::__annotate_shrink' requested here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:2020:15: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::__destruct_at_end' requested here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/sources/third_party/vulkan/src/include/vulkan/vulkan.hpp:68109:25: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::resize' requested here
C/C++: /Users/scurab/work/kompute/src/Manager.cpp:294:22: note: in instantiation of function template specialization 'vk::Instance::enumeratePhysicalDevices<unsigned int *, nullptr_t>' requested here
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:8:
C/C++: In file included from ../../../../../../../../src/include/kompute/Manager.hpp:7:
C/C++: In file included from ../../../../../../../../src/include/kompute/Core.hpp:12:
C/C++: In file included from ../../../../../../../../external/fmt/include/fmt/core.h:18:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:659:25: error: 'capacity' is a protected member of 'std::__ndk1::__vector_base<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:371:15: note: declared protected here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:656:46: error: no member named '__end_' in 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/sources/third_party/vulkan/src/include/vulkan/vulkan.hpp:68115:65: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::size' requested here
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/sources/third_party/vulkan/src/include/vulkan/vulkan.hpp:56:30: note: expanded from macro 'VULKAN_HPP_ASSERT'
C/C++: /Users/scurab/work/kompute/src/Manager.cpp:294:22: note: in instantiation of function template specialization 'vk::Instance::enumeratePhysicalDevices<unsigned int *, nullptr_t>' requested here
C/C++: In file included from /Users/scurab/work/kompute/src/Manager.cpp:8:
C/C++: In file included from ../../../../../../../../src/include/kompute/Manager.hpp:7:
C/C++: In file included from ../../../../../../../../src/include/kompute/Core.hpp:12:
C/C++: In file included from ../../../../../../../../external/fmt/include/fmt/core.h:18:
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/vector:1283:30: error: no member named '__alloc' in 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>'
C/C++: /Users/scurab/android-sdk/ndk/21.2.6472646/sources/third_party/vulkan/src/include/vulkan/vulkan.hpp:68118:12: note: in instantiation of member function 'std::__ndk1::vector<vk::PhysicalDevice, unsigned int *>::vector' requested here
C/C++: /Users/scurab/work/kompute/src/Manager.cpp:294:22: note: in instantiation of function template specialization 'vk::Instance::enumeratePhysicalDevices<unsigned int *, nullptr_t>' requested here
C/C++: In file included from /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:2:
C/C++: In file included from /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.hpp:9:
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:1798:83: warning: adding 'std::__ndk1::vector<std::__ndk1::shared_ptr<kp::Tensor>, std::__ndk1::allocator<std::__ndk1::shared_ptr<kp::Tensor> > >::size_type' (aka 'unsigned int') to a string does not append to the string [-Wstring-plus-int]
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:1798:83: note: use array indexing to silence this warning
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:65:22: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:65:57: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:66:22: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:66:57: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:67:22: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:67:56: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:72:32: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:674:54: note: expanded from macro 'KP_LOG_INFO'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:73:32: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:674:54: note: expanded from macro 'KP_LOG_INFO'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:74:32: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:674:54: note: expanded from macro 'KP_LOG_INFO'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:92:49: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:93:51: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:94:40: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:111:41: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:112:41: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/KomputeModelML.cpp:113:38: error: no matching member function for call to 'data'
C/C++: /Users/scurab/work/kompute/examples/android/android-simple/app/src/main/cpp/../../../../../../../single_include/kompute/Kompute.hpp:949:8: note: candidate template ignored: couldn't infer template argument 'T'

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
16 actionable tasks: 3 executed, 13 up-to-date
@axsaucedo
Copy link
Member

It seems you are running it directly through the terminal, have you t ried doing it through the AndroidStudio as outlined in this blog post? https://towardsdatascience.com/gpu-accelerated-machine-learning-in-your-mobile-applications-using-the-android-ndk-vulkan-kompute-1e9da37b7617

There are some differences, but the project as is was tested relatively recently - if you share the errors that you see when running it on the platform, as well as the versions of the various components (vulkan, android emulator, kompute, etc)

@jbruchanov
Copy link
Author

jbruchanov commented Jan 25, 2022

Running form latest stable AS doesn't work as well

image

Android Studio Arctic Fox | 2020.3.1 Patch 4
Build #AI-203.7717.56.2031.7935034, built on November 21, 2021
Runtime version: 11.0.10+0-b96-7281165 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.6
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 6
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin, com.jetbrains.kmm

@axsaucedo
Copy link
Member

Thank you for reporting this @jbruchanov - I have been able to replicate, so we'll have a deeper look at why this is happening and what may need to be updated

@axsaucedo
Copy link
Member

Thank you again for reporting this, I can confirm this is now resolved via #266

Are you able to try it again?

@jbruchanov
Copy link
Author

@axsaucedo
awesome, works fine 👍 (built in Android Studio)

@axsaucedo
Copy link
Member

Awesome! Thank you for testing out @jbruchanov 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants