Getting started with TI Jacinto 7 Edge AI/Demos/C++ Demos/Build the Docker container & apps
< Getting started with TI Jacinto 7 Edge AI | Demos | C++ Demos
Revision as of 18:14, 22 June 2021 by Crodriguez (talk | contribs)
CarlosR: Missing header and footer (please remove this box when addressed) |
Build the Docker container & apps
C++ Demos need to be run in a Docker image. This section shows the steps necessary to build the Docker container and demos.
Build the Docker container
- Login to your Jacinto 7 and navigate to the docker directory:
cd /opt/edge_ai_apps/docker/
- Build the Docker container:
./docker_build.sh
- The command line should display something like the following:
Sending build context to Docker daemon 24.06kB Step 1/13 : FROM arm64v8/ubuntu:20.04 as edgeaikit ---> 6a98cbe39225 Step 2/13 : ARG DEBIAN_FRONTEND=noninteractive ---> Using cache ---> 7099b799debf Step 3/13 : ARG NPROC=1 ---> Using cache ---> a7a8c2e2e6a7 Step 4/13 : ARG PROJECT_NAME=edge_ai_apps ---> Using cache ---> 9ead13dbe218 Step 5/13 : ENV USE_PROXY=none ---> Using cache ---> 9d192f292557 Step 6/13 : ADD entrypoint.sh setup_proxy.sh setup_ti_processor_sdk.sh /usr/bin/ ---> Using cache ---> c29446d2018a Step 7/13 : RUN /usr/bin/setup_proxy.sh ---> Using cache ---> 69a09af4e3e4 Step 8/13 : RUN apt-get update -y && apt-get dist-upgrade -y && apt-get install -y glib-2.0-dev ncurses-dev libgtk-3-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev libatlas-base-dev libtbb2 libtbb-dev libdc1394-22-dev libgl-dev libopencv-core-dev libopencv-imgproc-dev libglib2.0-0 libyaml-cpp-dev libboost-all-dev ---> Using cache ---> f27f0998d648 Step 9/13 : RUN apt-get install -y build-essential cmake ninja-build git wget unzip pkg-config gfortran openexr ---> Using cache ---> 361b456bb40d Step 10/13 : RUN apt-get install -y python3 python3-dev python3-numpy python3-opencv python3-pip && pip3 install jupyterlab meson PyYAML Dlr && pip3 install --extra-index-url https://google-coral.github.io/py-repo/ tflite_runtime ---> Using cache ---> 97b0a6b00425 Step 11/13 : RUN apt-get install -y vim rsync strace gdb net-tools dialog chrony nfs-common ---> Using cache ---> 3291eeb37839 Step 12/13 : RUN apt-get install -y libgstreamer1.0-0 libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-tools && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ---> Using cache ---> 79677fd988fd Step 13/13 : ENTRYPOINT ["/usr/bin/entrypoint.sh"] ---> Using cache ---> a27e6ab55a78 Successfully built a27e6ab55a78 Successfully tagged edge_ai_kit:latest tensorflow
- Run the Docker container:
./docker_run.sh
- After running the containter, your session should display a [docker] label before the root username:
[docker] root@j7-evm:/#
Build the C++ demos
- Navigate to the C++ apps directory:
cd /opt/edge_ai_apps/apps_cpp/
- Build the apps:
mkdir build
cd build
cmake ..
make