Table of contents
Table of Contents | ||||
---|---|---|---|---|
|
Introduction
Here we will explain the steps to build a development
Table of contents
...
Table of Contents | ||||
---|---|---|---|---|
|
Introduction
...
Here we will explain the steps to build a development environment for the iPRO Camera SDK application using a Docker image. Also, in this tutorial, the SDK installation directory is described as ${SDK_DIR}
.
...
Note |
---|
Development with SDK ver.1.80 or later is only supported in the GUI environment of Linux OS. We cannot support development in Windows OS or CUI environments even if problems occur. Please use it for trial purposes until you install Linux OS. |
...
Copy the [SDK ZIP file] to any location such as home/[username]. Install unzip on Ubuntu.
Code Block |
---|
sudo apt install unzip |
Ubuntu.
Code Block |
---|
sudo apt install unzip |
Note |
---|
Be sure to copy the SDK zip file into Ubuntu before extracting the zip file. If you extract it on another OS such as Windows and then move it to Ubuntu, it will not work properly. |
The preparation of the Docker environment on Linux OS is now complete. Proceed to "Prepare the build environment".
...
Copy the [SDK ZIP file] to any location such as home/[username].
Install unzip on Ubuntu.
Code Block |
---|
sudo apt install unzip |
Note |
---|
Be sure to copy the SDK zip file into Ubuntu before extracting the zip file. If you extract it on another OS such as Windows and then move it to Ubuntu |
...
Code Block |
---|
sudo apt install unzip |
, it will not work properly. |
The preparation of the Docker environment on Windows OS is now complete. Proceed to "Prepare the build environment."
...
Info |
---|
・We cannot support operation in a CUI environment even if you contact us. ・If you develop using anything other than Visual Studio Code in a GUI environment, we cannot support it, so we recommend using Visual Studio Code. ・You must use Visual Studio Code 1.85 or earlier. Please obtain 1.85 from here. You will also need to downgrade the .devcontainer extension to 0.327.0. |
For Windows, please download from the link below.
Visual Studio Code - Code Editing. Redefined
...
Since the SDK zip file has already been placed in any folder, extract it to any folder.
...
in any folder, extract it to any folder.
Code Block |
---|
cd [any folder]
unzip iPRO_CAMERA_SDK_Vx_xx_Container.zip |
Note |
---|
Be sure to copy the SDK zip file into Ubuntu before extracting the zip file. If you extract it on another OS such as Windows and then move it to Ubuntu, it will not work properly. |
Info |
---|
Please replace the zip file name with the obtained SDK file. |
Please place your developer license (development.key) in the SDK/conf folder.
...
Change to the extracted directory.
...
Using Visual Studio Code in a GUI environment
...
GUI environment
Start Visual Studio Code in ${SDK_DIR}
.
Code Block |
---|
code . |
Info |
---|
If you are using Docker Desktop, start Visual Studio Code |
...
and open the |
Code Block |
---|
code . |
Click the >< mark at the bottom left of the screen to open the command palette, then select "Reopen in Container".
...
If bash is not displayed, press the "+" to the right of the section that says "Dev Containers" and select bash.
...
Configure the environment before making.environment before making.
Info |
---|
Please check below for the SoC (ambaCV2X or ambaCV5X) of the camera you will be using. Installation conditions for applications - Technology Partner FAQ (En) - Confluence (atlassian.net) |
If you want to build an extension app for ambaCV2X
Code Block source setup_env.sh ipro-ambaCV2X
If you want to build an extension app for ambaCV5X
Code Block source setup_env.sh ipro-ambaCV5X
Info |
---|
When restarting the PC, you will need to configure the environment again before making. If you cannot make, please make sure that you have configured the environmentcannot make, please make sure that you have configured the environment. If you are creating a Python app for CV2x developed with SDK ver.1.80 or earlier and want to create an app for CV52 with SDK ver.2.00 or later, please also refer to this. |
Now you can build the app. As an example, if you want to build C/C++ skeleton_sample_app, move to the target directory and run make as shown below.
...
Please see here for details.
Operation check
Install the app in the .ext file you created on the camera and check that it works. Here, access the camera from a web browser as shown below and try installing it.
...