Thank you very much for your reply
I have downloaded the Hailo-15 Vision Processor SW package and located the SDK. I was also able to build a sample application, just a hello-world, on my host and run it on the HAILO 15 SBC. So far so good…
I would now like to start developing my vision application, starting by recompiling and modifying the ai_example_app in the tappas repo. I try to follow documentation. I would like to use the docker container instead of a native installation.
In the tappas master branch, not the master-vpu, I find the documentation on using a prebuilt docker container. When trying to download the corresponding files in the dev zone, the following is stated when trying to download tappas:
For vision processors, the TAPPAS package is included in the Vision Processors Software Package, to be compiled into the application processor’s image.
However, in the mentioned package, I find no reference to Tappas. I then downloaded the TAPPAS – Docker for x86_64 files and launched the docker container as explained here. As described here, I then copied the toolchain script from the Vision Processor Software Package into the running docker container and tried to compile the apps using the cross_compile_tappas script
./cross_compile_tappas.py aarch64 hailo15 debug /local/workspace/tappas/sdk/ --build-lib apps
I first had to edit the script to use python3 instead of python, as there seems to be no python binary or symlink.
After editing the scrtipt, the toolchain seems to be installed correctly, when meson tries to setup the project, the following error occurs:
INFO:/local/workspace/tappas/tools/cross_compiler/common.py:Starting the installation of the toolchain
INFO:/local/workspace/tappas/tools/cross_compiler/common.py:installing /local/workspace/tappas/sdk/poky-glibc-x86_64-core-image-minimal-armv8a-hailo15-sbc-toolchain-4.0.23.sh
INFO:/local/workspace/tappas/tools/cross_compiler/common.py:Toolchain ready to use (/local/workspace/tappas/sdk)
INFO:/local/workspace/tappas/tools/cross_compiler/common.py:Building gsthailotools plugins and post processes
Build dir: /local/workspace/tappas/tools/cross_compiler/aarch64-gsthailotools-build-debug/hailo
INFO:/local/workspace/tappas/tools/cross_compiler/common.py:Running Meson build.
meson-wrapper: Implicit setup command assumed
meson-wrapper: Running meson with setup options: " --cross-file=/local/workspace/tappas/sdk/sysroots/x86_64-pokysdk-linux/usr/share/meson/aarch64-poky-linux-meson.cross --native-file=/local/workspace/tappas/sdk/sysroots/x86_64-pokysdk-linux/usr/share/meson/meson.native "
The Meson build system
Version: 0.61.3
Source dir: /local/workspace/tappas/core/hailo
Build dir: /local/workspace/tappas/tools/cross_compiler/aarch64-gsthailotools-build-debug/hailo
Build type: cross build
meson.build:3:0: ERROR: Unknown options: "include_unit_tests"
A full log can be found at /local/workspace/tappas/tools/cross_compiler/aarch64-gsthailotools-build-debug/hailo/meson-logs/meson-log.txt
Traceback (most recent call last):
File "/local/workspace/tappas/tools/cross_compiler/./cross_compile_tappas.py", line 98, in <module>
gst_installer.build()
File "/local/workspace/tappas/tools/cross_compiler/common.py", line 285, in build
self.run_meson_build_command(env)
File "/local/workspace/tappas/tools/cross_compiler/common.py", line 208, in run_meson_build_command
self._runner.run(build_cmd, env=env, print_output=True)
File "/local/workspace/tappas/tools/cross_compiler/common.py", line 113, in run
p.check_returncode()
File "/usr/lib/python3.10/subprocess.py", line 457, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['meson', '/local/workspace/tappas/tools/cross_compiler/aarch64-gsthailotools-build-debug/hailo', '--buildtype', 'debug', '-Dlibargs=-I/local/workspace/tappas/sdk/sysroots/aarch64-poky-linux/usr/include/hailort,-I/local/workspace/tappas/sdk/sysroots/aarch64-poky-linux/usr/include/gst-hailo/metadata,-std=c++17', '-Dprefix=/local/workspace/tappas/sdk/sysroots/aarch64-poky-linux/usr', '-Dinclude_blas=false', '-Dtarget_platform=hailo15', '-Dtarget=apps', '-Dlibxtensor=/local/workspace/tappas/core/open_source/xtensor_stack/base', '-Dlibblas=/local/workspace/tappas/core/open_source/xtensor_stack/blas', '-Dlibcxxopts=/local/workspace/tappas/core/open_source/cxxopts', '-Dlibrapidjson=/local/workspace/tappas/core/open_source/rapidjson', '-Dinclude_unit_tests=false']' returned non-zero exit status 1.
I am almost certain that I am doing something wrong but would be glad, if someone could help me getting the development environment ready to cross-compile the example apps and to get started with developing y own application.