opencardev / aasdk

Library to build AndroidAuto headunit emulator
41 stars 33 forks source link

Compile failure with boost 1.71 #3

Open parkerlreed opened 5 years ago

parkerlreed commented 5 years ago

Noting here since I am facing this on a newer boost version.

boost 1.71.0-2 boost-libs 1.71.0-2

[ 87%] Building CXX object CMakeFiles/aasdk.dir/src/IO/IOContextWrapper.cpp.o
[ 88%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/ChannelId.cpp.o
[ 88%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/ChannelReceiveMessageQueue.cpp.o
[ 88%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/ChannelReceivePromiseQueue.cpp.o
/home/parker/.cache/yay/aasdk-git/src/aasdk-git/src/Channel/ServiceChannel.cpp: In member function ‘void f1x::aasdk::channel::ServiceChannel::send(f1x::aasdk::messenger::Message::Pointer, f1x::aasdk::io::Promise<void>::Pointer)’:
/home/parker/.cache/yay/aasdk-git/src/aasdk-git/src/Channel/ServiceChannel.cpp:41:62: error: ‘class boost::asio::io_context::strand’ has no member named ‘get_io_service’
   41 |     auto sendPromise = messenger::SendPromise::defer(strand_.get_io_service());
      |                                                              ^~~~~~~~~~~~~~
[ 89%] Building CXX object CMakeFiles/aasdk.dir/src/Messenger/Cryptor.cpp.o
make[2]: *** [CMakeFiles/aasdk.dir/build.make:193: CMakeFiles/aasdk.dir/src/Channel/ServiceChannel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:77: CMakeFiles/aasdk.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
parkerlreed commented 4 years ago

Any update on this? This is still happening. :(

parkerlreed commented 4 years ago

Notes here https://github.com/rstudio/rstudio/pull/5353

abraha2d commented 4 years ago

I've encountered something similar, don't remember whether it was this boost version or a previous. I can go back and look at it some time.

parkerlreed commented 4 years ago

There's a patch here https://aur.archlinux.org/packages/aasdk-git/#comment-731304

It worked for a second until a Play Services and AA update on Android 11 DP1. Doesn't load anymore :(

matt2005 commented 4 years ago

Added patch

parkerlreed commented 4 years ago

@matt2005 Do you have a working repo combination for aasdk and openauto? I've been wanting to update those packages to a working state but even with the patches it still seems to quit out maybe 10 seconds after loading the UI.

matt2005 commented 4 years ago

I've just rebuild crankshaft with buster and latest binaries. See latest release.