Hello,
I'm currently trying to build the SDK for Android, but I've run into some issues with some of the client classes and gRPC. I've tried a 2 methods to build it so far. The first was to just the sdk as a library in my project and link it with pre-build static gRPC libraries, and I have also configured vcpkg to build for android similar to your suggested linux build guide in combination with this guide https://vcpkg.readthedocs.io/en/latest/users/android/ .
Both methods have resulted in the same error
In file included from /home/user/spot-cpp-sdk/cpp/bosdyn/client/auth/auth_client.cpp:10:
In file included from /home/user/spot-cpp-sdk/cpp/bosdyn/client/auth/auth_client.h:13:
In file included from /home/user/spot-cpp-sdk/cpp/bosdyn/client/service_client/service_client.h:12:
In file included from /home/user/vcpkg/installed/arm64-android/include/grpcpp/grpcpp.h:54:
In file included from /home/user/vcpkg/installed/arm64-android/include/grpcpp/client_context.h:37:
/home/user/vcpkg/installed/arm64-android/include/grpcpp/impl/codegen/client_context.h:266:24: error: call to deleted constructor of 'grpc::TimePoint<time_point<system_clock, duration<long long, ratio<1, 1000000000> > > >'
grpc::TimePoint deadline_tp(deadline);
^ ~~~~~~~~
/home/user/spot-cpp-sdk/cpp/bosdyn/client/service_client/service_client.h:153:30: note: in instantiation of function template specialization 'grpc::ClientContext::set_deadline<std::__ndk1::chrono::time_point<std::__ndk1::chrono::system_clock, std::__ndk1::chrono::duration<long long, std::__ndk1::ratio<1, 1000000000> > > >' requested here
one_time->context()->set_deadline(
^
/home/user/spot-cpp-sdk/cpp/bosdyn/client/auth/auth_client.cpp:39:9: note: in instantiation of function template specialization 'bosdyn::client::ServiceClient::InitiateAsyncCall<bosdyn::api::GetAuthTokenRequest, bosdyn::api::GetAuthTokenResponse, bosdyn::api::GetAuthTokenResponse>' requested here
InitiateAsyncCall<::bosdyn::api::GetAuthTokenRequest, ::bosdyn::api::GetAuthTokenResponse, ::bosdyn::api::GetAuthTokenResponse>(
^
/home/user/vcpkg/installed/arm64-android/include/grpcpp/impl/codegen/time.h:46:3: note: 'TimePoint' has been explicitly marked deleted here
TimePoint(const T& /time/) = delete;
^
`
I'm curious if anyone has run into a similar issue and could suggest a fix. I do not get this issue when building the sdk for regular linux
Thanks!
Hello,
I'm currently trying to build the SDK for Android, but I've run into some issues with some of the client classes and gRPC. I've tried a 2 methods to build it so far. The first was to just the sdk as a library in my project and link it with pre-build static gRPC libraries, and I have also configured vcpkg to build for android similar to your suggested linux build guide in combination with this guide https://vcpkg.readthedocs.io/en/latest/users/android/ .
Both methods have resulted in the same error
I'm curious if anyone has run into a similar issue and could suggest a fix. I do not get this issue when building the sdk for regular linux
Thanks!