Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Compile

Compile sqlite module and Python module using docker.

$Run Docker in “${SDK_DIR}/external/build/sample/docker ディレクトリでDockerを実行してください。docker” directory.

Code Block
$ docker run --rm -it --name aarch64-ubuntu -v `pwd`/docker_volume:/home/docker compile/ubuntu-rel:0.1

$The compiled module is created in “${SDK_DIR}/external/build/sample/docker/docker_volume/jpeg-9eにコンパイル済みモジュールが作成されます。

AdamAppに配置する

作成されたモジュールを、AdamAppで使用できるように配置します。

チュートリアルではsrc9e”.

Deployment in AdamApp

Deploy the modules to use them with AdamApp.

Here we take “${SDK_DIR}/src/adamapp/jpeg_appを例とします。app” as an example.

 

libjpegを配置する

...

Deployment in AdamApp

libjpeg module is installed in the following directory.

${SDK_DIR}/external/build/sample/docker/docker_volume/jpeg-9e/.libs

libjpeg.so.9.5.0上記ファイルを、AdamAppソースディレクトリにコピーしてください。

Copy the above file to the AdamApp source directory.

${SDK_DIR}/src/adamapp/jpeg_app/external/lib/aarch64-linux-gnu

Code Block
$ cp -r ${SDK_DIR}/external/build/sample/docker/docker_volume/jpeg-9e/.libs/libjpeg.so.9.5.0 ${SDK_DIR}/src/adamapp/jpeg_app/external/lib/aarch64-linux-gnu

コピー後のディレクトリ構成は以下のようになります。Then, the directory structure will appear as follows.

${SDK_DIR}/src/adamapp/jpeg_app/external/lib/aarch64-linux-gnu/libjpeg.so.9.5.0

 libjpegヘッダファイルは以下のディレクトリにインストールされています。

libjpeg header files are installed in the following directory.

${SDK_DIR}/external/build/sample/docker/docker_volume/jpeg-9e

jconfig.h

jmorecfg.h

jpeglib.h上記3ファイルを、AdamAppソースディレクトリにコピーしてください。

Copy the above 3 files to the AdamApp source directory.

${SDK_DIR}/src/adamapp/jpeg_app/external/include

Code Block
$ cp -r ${SDK_DIR}/external/build/sample/docker/docker_volume/jpeg-9e/jconfig.h ${SDK_DIR}/src/adamapp/jpeg_app/external/include
$ cp -r ${SDK_DIR}/external/build/sample/docker/docker_volume/jpeg-9e/jmorecfg.h ${SDK_DIR}/src/adamapp/jpeg_app/external/include
$ cp -r ${SDK_DIR}/external/build/sample/docker/docker_volume/jpeg-9e/jpeglib.h ${SDK_DIR}/src/adamapp/jpeg_app/external/include

コピー後のディレクトリ構成は以下のようになります。

...

Then, the directory structure will appear as follows.

${SDK_DIR}/src/adamapp/jpeg_app/external/include/jconfig.h

${SDK_DIR}/src/adamapp/jpeg_app/external/include/jmorecfg.h

${SDK_DIR}/src/adamapp/jpeg_app/external/include/jpeglib.h

サンプルアプリをビルドする

サンプルアプリ「jpeg_app」をビルドして、カメラにインストールします(例:下記画像の緑枠からインストール可能)。

ビルド方法はこちらを参照してください。

アプリ画面を開いて(下記画像の赤枠ボタン)、カメラが撮影したjpeg画像が表示されていれば成功です。

...

...

Build the sample application

Build the sample application "jpeg_app" and install it on the camera (eg, it can be installed from the green frame in the image below).

See here★link★ for how to build.

Open the app screen (red frame button in the image below), and if the image of the captured by the camera is displayed, it is successful.

...