diff --git a/config.sh b/config.sh index 94f6f91..a015f1d 100644 --- a/config.sh +++ b/config.sh @@ -1,11 +1,10 @@ system=$(uname -s | tr 'DL' 'dl')-$(uname -m) gcc_version=4.6 toolchain=arm-linux-androideabi-$gcc_version -platform=android-14 +platform=android-16 PYTHONPATH=/opt/ros/indigo/lib/python2.7/dist-packages:$PYTHONPATH # Enable this value for debug build CMAKE_BUILD_TYPE=Debug # Enable this if you need to use pluginlib in Android. # The plugins will be statically linked use_pluginlib=1 - diff --git a/create_android_mk.sh b/create_android_mk.sh index 144e753..827697f 100755 --- a/create_android_mk.sh +++ b/create_android_mk.sh @@ -25,14 +25,14 @@ rm -rf $CMAKE_PREFIX_PATH/find_libs mkdir -p $CMAKE_PREFIX_PATH/find_libs cp $my_loc/files/FindLibrariesCMakeLists.txt $CMAKE_PREFIX_PATH/find_libs/CMakeLists.txt cd $CMAKE_PREFIX_PATH/find_libs -cmake ../find_libs -DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH;$ANDROID_NDK/platforms/android-14/arch-arm/usr/lib" \ +cmake ../find_libs -DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH;$ANDROID_NDK/platforms/android-16/arch-arm/usr/lib" \ -DALL_PACKAGES="$package_list" # Read the output file to get the paths of all of the libraries full_library_list=$(cat $CMAKE_PREFIX_PATH/find_libs/libraries.txt) # Parse this libraries (separated by ;), skip all libraries that start with the second argument paths (separated by ;) -lib_output=$($my_loc/parse_libs.py $full_library_list $ANDROID_NDK/platforms/android-14/arch-arm/usr/lib) +lib_output=$($my_loc/parse_libs.py $full_library_list $ANDROID_NDK/platforms/android-16/arch-arm/usr/lib) # Go to the output library directory if [ ! -d $2 ]; then @@ -50,4 +50,3 @@ if [ $use_pluginlib -ne 0 ]; then else cat $my_loc/files/tfa/Android.mk.in2 >> ./Android.mk fi - diff --git a/docker/Dockerfile b/docker/Dockerfile index 1d38f33..208b8eb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,11 +9,11 @@ RUN wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | s RUN apt-get update && apt-get install --no-install-recommends -y ros-indigo-ros-base python-wstool # Install Android NDK -RUN wget http://dl.google.com/android/ndk/android-ndk-r8e-linux-x86_64.tar.bz2 -RUN tar -jxvf android-ndk-r8e-linux-x86_64.tar.bz2 -C /opt +RUN wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86_64.tar.bz2 +RUN tar -jxvf android-ndk-r9d-linux-x86_64.tar.bz2 -C /opt # Set-up environment -ENV ANDROID_NDK /opt/android-ndk-r8e +ENV ANDROID_NDK /opt/android-ndk-r9d # Install g++ to avoid "CMAKE_CXX_COMPILER-NOTFOUND was not found." error RUN apt-get update && apt-get install -y g++ cmake make diff --git a/files/move_base_app/jni/Application.mk b/files/move_base_app/jni/Application.mk index 2a5d55c..2879b3a 100644 --- a/files/move_base_app/jni/Application.mk +++ b/files/move_base_app/jni/Application.mk @@ -1,4 +1,4 @@ #NDK_TOOLCHAIN_VERSION=4.4.3 APP_STL := gnustl_static -APP_PLATFORM := android-14 -APP_ABI := armeabi-v7a \ No newline at end of file +APP_PLATFORM := android-16 +APP_ABI := armeabi-v7a diff --git a/files/sample_app/jni/Application.mk b/files/sample_app/jni/Application.mk index 2a5d55c..2879b3a 100644 --- a/files/sample_app/jni/Application.mk +++ b/files/sample_app/jni/Application.mk @@ -1,4 +1,4 @@ #NDK_TOOLCHAIN_VERSION=4.4.3 APP_STL := gnustl_static -APP_PLATFORM := android-14 -APP_ABI := armeabi-v7a \ No newline at end of file +APP_PLATFORM := android-16 +APP_ABI := armeabi-v7a