ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks to Gary Servin I have build successfully by the following steps: 1.# Check if you have the rosndk image on the list. u64@u64-VirtualBox:~$ docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE rosndk latest 6c374bc001d0 12 hours ago 3.678 GB

2.# This will create a container based on the image u64@u64-VirtualBox:~$ docker run -it rosndk bash root@58dfb6a0a9f4:/#

3.# run ls -l,you should have -rw-r--r-- 1 root root 140827643 Jul 2 2014 android-sdk_r23.0.2-linux.tgz root@58dfb6a0a9f4:/# ls -l total 593516 -rw-r--r-- 1 root root 466853553 Mar 21 2013 android-ndk-r8e-linux-x86_64.tar.bz2 -rw-r--r-- 1 root root 140827643 Jul 2 2014 android-sdk_r23.0.2-linux.tgz

if not run:wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz

and run :tar -xvf android-sdk_r23.0.2-linux.tgz -C /opt

4.#run android list and if the android target have been update successfully it should be like this:

root@58dfb6a0a9f4:/# android list

Available Android targets:

id: 1 or "android-20" Name: Android 4.4W.2

if wrong, there are not any targets list,maybe the same question,then goto step 5.

5.#check if you can update android sdk successfully(Thanks to the GREETWALL I cannot visit google without VPN). root@58dfb6a0a9f4:/# android update sdk -u -t 2,3,7,8,9,11,13,16,56,57

6.#when update successfully,run exit. root@58dfb6a0a9f4:/#exit

7.# Commit the latest container to rosndk u64@u64-VirtualBox:~$docker commit $(docker ps -aq | head -n 1) rosndk

8.#delete the wrong build package

mine is:/home/u64/ros-android-ndk/roscpp_android/output/catkin_ws/src/vision_opencvzs

9.just run ./do_docker.sh again u64@u64-VirtualBox:~/ros-android-ndk/roscpp_android$ ./do_docker.sh

when you are success,it shows:

summary of what just happened: target/ was used to build static libraries for ros software include/ contains headers lib/ contains static libraries roscpp_android_ndk/ is a NDK sub-project that can be imported into an NDK app sample_app/ is an example of such an app, a native activity sample_app/bin/sample_app-debug.apk is the built apk, it implements a subscriber and a publisher move_base_sample_app/ is an example app that implements the move_base node move_base_app/bin/move_base_app-debug.apk is the built apk for the move_base example

GOOD LUCK! TNANKS TO GRAY SERVIN'S HELP!

Thanks to Gary Servin I have build successfully by the following steps: 1.# Check if you have the rosndk image on the list. list.

u64@u64-VirtualBox:~$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
rosndk              latest              6c374bc001d0        12 hours ago        3.678 GB

GB

2.# This will create a container based on the image image

u64@u64-VirtualBox:~$ docker run -it rosndk bash
root@58dfb6a0a9f4:/# 

root@58dfb6a0a9f4:/#

3.# run ls -l,you should have -rw-r--r-- 1 root root 140827643 Jul 2 2014 android-sdk_r23.0.2-linux.tgz android-sdk_r23.0.2-linux.tgz

root@58dfb6a0a9f4:/# ls -l
total 593516
-rw-r--r--   1 root root 466853553 Mar 21  2013 android-ndk-r8e-linux-x86_64.tar.bz2
-rw-r--r--   1 root root 140827643 Jul  2  2014 android-sdk_r23.0.2-linux.tgz

android-sdk_r23.0.2-linux.tgz

if not not

run:wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz

and run :tar -xvf android-sdk_r23.0.2-linux.tgz -C /opt

4.#run android list and if the android target have been update successfully it should be like this:

root@58dfb6a0a9f4:/# android list

list Available Android targets:

targets: ---------- id: 1 or "android-20" Name: Android 4.4W.2

4.4W.2

if wrong, there are not any targets list,maybe the same question,then goto step 5.

5.#check if you can update android sdk successfully(Thanks to the GREETWALL I cannot visit google without VPN). VPN).

root@58dfb6a0a9f4:/# android update sdk -u -t 2,3,7,8,9,11,13,16,56,57

2,3,7,8,9,11,13,16,56,57

6.#when update successfully,run exit. root@58dfb6a0a9f4:/#exit

exit.

root@58dfb6a0a9f4:/#exit

7.# Commit the latest container to rosndk rosndk

u64@u64-VirtualBox:~$docker commit $(docker ps -aq | head -n 1) rosndk 

rosndk

8.#delete the wrong build package

mine is:/home/u64/ros-android-ndk/roscpp_android/output/catkin_ws/src/vision_opencvzs

9.just run ./do_docker.sh again again

u64@u64-VirtualBox:~/ros-android-ndk/roscpp_android$ ./do_docker.sh

./do_docker.sh

when you are success,it shows:

summary of what just happened:
  target/      was used to build static libraries for ros software
    include/   contains headers
    lib/       contains static libraries
  roscpp_android_ndk/     is a NDK sub-project that can be imported into an NDK app
  sample_app/  is an example of such an app, a native activity
  sample_app/bin/sample_app-debug.apk  is the built apk, it implements a subscriber and a publisher
  move_base_sample_app/  is an example app that implements the move_base node
  move_base_app/bin/move_base_app-debug.apk  is the built apk for the move_base example

example

GOOD LUCK! TNANKS TO GRAY SERVIN'S HELP!

Thanks to Gary Servin I have build successfully by the following steps: steps:

1.# Check if you have the rosndk image on the list.

u64@u64-VirtualBox:~$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
rosndk              latest              6c374bc001d0        12 hours ago        3.678 GB

2.# This will create a container based on the image

u64@u64-VirtualBox:~$ docker run -it rosndk bash
root@58dfb6a0a9f4:/#

3.# run ls -l,you should have -rw-r--r-- 1 root root 140827643 Jul 2 2014 android-sdk_r23.0.2-linux.tgz

root@58dfb6a0a9f4:/# ls -l
total 593516
-rw-r--r--   1 root root 466853553 Mar 21  2013 android-ndk-r8e-linux-x86_64.tar.bz2
-rw-r--r--   1 root root 140827643 Jul  2  2014 android-sdk_r23.0.2-linux.tgz

if not

run:wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz

and run :tar -xvf android-sdk_r23.0.2-linux.tgz -C /opt

4.#run android list and if the android target have been update successfully it should be like this:

root@58dfb6a0a9f4:/# android list
Available Android targets:
----------
id: 1 or "android-20"
     Name: Android 4.4W.2

if wrong, there are not any targets list,maybe the same question,then goto step 5.

5.#check if you can update android sdk successfully(Thanks successfully
(Thanks
to the GREETWALL I cannot visit google without VPN).

root@58dfb6a0a9f4:/# android update sdk -u -t 2,3,7,8,9,11,13,16,56,57

6.#when update successfully,run exit.

root@58dfb6a0a9f4:/#exit

7.# Commit the latest container to rosndk

u64@u64-VirtualBox:~$docker commit $(docker ps -aq | head -n 1) rosndk

8.#delete the wrong build package

mine is:/home/u64/ros-android-ndk/roscpp_android/output/catkin_ws/src/vision_opencvzs

9.just run ./do_docker.sh again

u64@u64-VirtualBox:~/ros-android-ndk/roscpp_android$ ./do_docker.sh

when you are success,it shows:

summary of what just happened:
  target/      was used to build static libraries for ros software
    include/   contains headers
    lib/       contains static libraries
  roscpp_android_ndk/     is a NDK sub-project that can be imported into an NDK app
  sample_app/  is an example of such an app, a native activity
  sample_app/bin/sample_app-debug.apk  is the built apk, it implements a subscriber and a publisher
  move_base_sample_app/  is an example app that implements the move_base node
  move_base_app/bin/move_base_app-debug.apk  is the built apk for the move_base example

GOOD LUCK! TNANKS THANKS TO GRAY SERVIN'S HELP!