Bit of an update, as I had some progress building the last piece of the puzzle that I couldn't install from AUR by modifying the PKGBUILD: anbox-git.
To overcome the issues in my previous, I simply altered the Makefile to suppress treating warnings as errors. It netted some success (build stops at 90% now and not 37%,) where now the hold up of building this on aarch64 is testing. I'm currently trying to track down where I can disable or correct the tests. My efforts so far admittedly a bit hacky, but I want to try and do what I can in a "best practice" manner.
Here's the current progress:
If anything stands out to anyone going through it, let me know! Between work and going through these line-by-line, with a more novice skill set than many, my eyes start feeling burnt out and missing plenty.
Once I figure out how to get past the GTest issues, I'll post another update. Hopefully, it will be with a repo with the changes made so others can try it for themselves.
To overcome the issues in my previous, I simply altered the Makefile to suppress treating warnings as errors. It netted some success (build stops at 90% now and not 37%,) where now the hold up of building this on aarch64 is testing. I'm currently trying to track down where I can disable or correct the tests. My efforts so far admittedly a bit hacky, but I want to try and do what I can in a "best practice" manner.
Here's the current progress:
Code:
$ make
[ 7%] Built target process-cpp
[ 10%] Built target emugen
[ 12%] Built target OpenglCodecCommon
[ 15%] Built target GLESv2_dec
[ 17%] Built target renderControl_dec
[ 19%] Built target GLESv1_dec
[ 24%] Built target emugl_common
[ 26%] Built target OpenGLESDispatch
[ 27%] Built target xdg
[ 29%] Built target xdg_test
[ 30%] Built target backward
[ 31%] Built target backward_object
[ 36%] Built target cpu_features
[ 37%] Built target list_cpu_features
[ 40%] Built target anbox-protobuf
[ 89%] Built target anbox-core
[ 90%] Built target anbox
[ 90%] Linking CXX executable intent_tests
/usr/bin/ld: /usr/lib/gcc/aarch64-unknown-linux-gnu/9.2.0/../../../../lib/Scrt1.o: in function `_start':
init.c:(.text+0x18): undefined reference to `main'
/usr/bin/ld: init.c:(.text+0x1c): undefined reference to `main'
/usr/bin/ld: CMakeFiles/intent_tests.dir/intent_tests.cpp.o: in function `testing::internal::scoped_ptr<std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > >::reset(std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)':
/usr/include/gtest/internal/gtest-port.h:1215: undefined reference to `testing::internal::IsTrue(bool)'
/usr/bin/ld: CMakeFiles/intent_tests.dir/intent_tests.cpp.o: in function `testing::internal::scoped_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::reset(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
/usr/include/gtest/internal/gtest-port.h:1215: undefined reference to `testing::internal::IsTrue(bool)'
/usr/bin/ld: CMakeFiles/intent_tests.dir/intent_tests.cpp.o: in function `Intent_IsValid_Test::TestBody()':
/run/media/topherneal/SPACE/anbox/tests/anbox/android/intent_tests.cpp:26: undefined reference to `testing::internal::GetBoolAssertionFailureMessage[abi:cxx11](testing::AssertionResult const&, char const*, char const*, char const*)'
/usr/bin/ld: /run/media/topherneal/SPACE/anbox/tests/anbox/android/intent_tests.cpp:26: undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
/usr/bin/ld: /run/media/topherneal/SPACE/anbox/tests/anbox/android/intent_tests.cpp:26: undefined reference to `testing::Message::Message()'
/usr/bin/ld: /run/media/topherneal/SPACE/anbox/tests/anbox/android/intent_tests.cpp:26: undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
/usr/bin/ld: CMakeFiles/intent_tests.dir/intent_tests.cpp.o: in function `testing::internal::scoped_ptr<std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > >::reset(std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)':
/usr/include/gtest/internal/gtest-port.h:1215: undefined reference to `testing::internal::IsTrue(bool)'
/usr/bin/ld: CMakeFiles/intent_tests.dir/intent_tests.cpp.o: in function `Intent_IsValid_Test::TestBody()':
/run/media/topherneal/SPACE/anbox/tests/anbox/android/intent_tests.cpp:26: undefined reference to `testing::internal::AssertHelper::~AssertHelper()'
/usr/bin/ld: CMakeFiles/intent_tests.dir/intent_tests.cpp.o: in function `testing::internal::scoped_ptr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::reset(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
/usr/include/gtest/internal/gtest-port.h:1215: undefined reference to `testing::internal::IsTrue(bool)'
/usr/bin/ld: CMakeFiles/intent_tests.dir/intent_tests.cpp.o: in function `Intent_IsValid_Test::TestBody()':
/run/media/topherneal/SPACE/anbox/tests/anbox/android/intent_tests.cpp:24: undefined reference to `testing::internal::GetBoolAssertionFailureMessage[abi:cxx11](testing::AssertionResult const&, char const*, char const*, char const*)'
/usr/bin/ld: /run/media/topherneal/SPACE/anbox/tests/anbox/android/intent_tests.cpp:24: undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'
/usr/bin/ld: /run/media/topherneal/SPACE/anbox/tests/anbox/android/intent_tests.cpp:24: undefined reference to `testing::Message::Message()'
/usr/bin/ld: /run/media/topherneal/SPACE/anbox/tests/anbox/android/intent_tests.cpp:24: undefined reference to `testing::internal::AssertHelper::operator=(testing::Message const&) const'
/usr/bin/ld: CMakeFiles/intent_tests.dir/intent_tests.cpp.o: in function `testing::internal::scoped_ptr<std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > >::reset(std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)':
If anything stands out to anyone going through it, let me know! Between work and going through these line-by-line, with a more novice skill set than many, my eyes start feeling burnt out and missing plenty.
Once I figure out how to get past the GTest issues, I'll post another update. Hopefully, it will be with a repo with the changes made so others can try it for themselves.