OSVR-Android-Build icon indicating copy to clipboard operation
OSVR-Android-Build copied to clipboard

Android Studio or make on Ubuntu Studio 15.10 ?

Open CoolGames opened this issue 9 years ago • 2 comments

I am trying to get a working application running on Ubuntu or Android and nothing succeeds as documented. STEPS:

  1. change to OSVR and git the OSVR-Android-Build then recursive submodules
  2. Run cmake-gui and point NDK BUILD to crystax-ndk-10.1.0/ndk-build
  3. configure and generate with no errors
  4. bash_profile needs to include PATH to ANDROID_NDK

Now 10.3.1 is latest so installed doc version - NDK 10.1.0 is claimed to be unsupported Detected Android NDK version crystax-ndk-10.1.0 (64-bit) Undefined or not supported Android NDK version! src/CMakeFiles/Boost.dir/build.make:108: recipe for target 'src/Boost-prefix/src/Boost-stamp/Boost-build' failed CMakeFiles/Makefile2:95: recipe for target 'src/CMakeFiles/Boost.dir/all' failed Makefile:126: recipe for target 'all' failed

Further researched to boost latest 1.58 install and only 1.55 defaulted to 1.53 from Feb 14, 2013 build-android.sh line 33 register_option "--boost=" boost_version "Boost version to be used, one of {1.55.0, 1.54.0, 1.53.0, 1.49.0, 1.48.0, 1.45.0}, default is 1.53.0."

Latest is 1.60 as of December 17, 2015 http://www.boost.org/users/history/

CoolGames avatar Jan 08 '16 16:01 CoolGames

Build fails as per README.md when attempted

Using crystax-ndk-10.3.1

When following Android Build instructions there are errors at MAKE time. Terminal log at ReMake culminates in error ''' [ 40%] Building CXX object vendor/gtest-1.7.0/CMakeFiles/gtest.dir/src/gtest-all.cc.o In file included from OSVR-Android-Build/src/libfunctionality/vendor/gtest-1.7.0/src/gtest-all.cc:43:0: OSVR-Android-Build/src/libfunctionality/vendor/gtest-1.7.0/src/gtest-death-test.cc: In function 'pid_t testing::internal::ExecDeathTestSpawnChild(char* const_, int)': OSVR-Android-Build/src/libfunctionality/vendor/gtest-1.7.0/src/gtest-death-test.cc:1074:73: error: 'clone' was not declared in this scope child_pid = clone(&ExecDeathTestChildMain, stack_top, SIGCHLD, &args); ^ vendor/gtest-1.7.0/CMakeFiles/gtest.dir/build.make:54: recipe for target 'vendor/gtest-1.7.0/CMakeFiles/gtest.dir/src/gtest-all.cc.o' failed make[5]: *_* [vendor/gtest-1.7.0/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1 CMakeFiles/Makefile2:995: recipe for target 'vendor/gtest-1.7.0/CMakeFiles/gtest.dir/all' failed make[4]: *** [vendor/gtest-1.7.0/CMakeFiles/gtest.dir/all] Error 2 Makefile:126: recipe for target 'all' failed make[3]: *** [all] Error 2 src/CMakeFiles/libfunctionality.dir/build.make:108: recipe for target 'src/libfunctionality-prefix/src/libfunctionality-stamp/libfunctionality-build' failed make[2]: *** [src/libfunctionality-prefix/src/libfunctionality-stamp/libfunctionality-build] Error 2 CMakeFiles/Makefile2:369: recipe for target 'src/CMakeFiles/libfunctionality.dir/all' failed make[1]: *** [src/CMakeFiles/libfunctionality.dir/all] Error 2 Makefile:126: recipe for target 'all' failed make: *** [all] Error 2 '''

CoolGames avatar Feb 17 '16 13:02 CoolGames

I am having the exact same error:

E:/OSVR-Android-Build/src/libfunctionality/vendor/gtest-1.7.0/src/gtest-death-test.cc: In function 'pid_t testing::internal::ExecDeathTestSpawnChild(char* const*, int)': E:/OSVR-Android-Build/src/libfunctionality/vendor/gtest-1.7.0/src/gtest-death-test.cc:1074:73: error: 'clone' was not declared in this scope child_pid = clone(&ExecDeathTestChildMain, stack_top, SIGCHLD, &args);

mebalzer avatar Mar 28 '16 07:03 mebalzer