Tappa's hailofilter .so cannot open shared object file

Whenever I build my first tutorial library for Tappas following the directions I get the error below. I have tried several things such as moving the library to my home directory and ensuring proper permissions. I have not had any luck. I will paste my code for the meson.build and my cpp and hpp files below as well. Does anyone know why I have a successful build with no errors but my computer can’t seem to find the library even when providing an absolute path?

I am following the Tappas tutorial using the AI Software Suite Docker
version hailo_ai_sw_suite_2024-07.

error:

gst-launch-1.0 videotestsrc ! hailofilter so-path=libtutorial_post.so ! fakesink
Setting pipeline to PAUSED ...
Could not load lib libtutorial_post.so: cannot open shared object file: No such file or directory
Cannot load symbol: /opt/hailo/tappas/lib/x86_64-linux-gnu/gstreamer-1.0/libgsthailotools.so: undefined symbol: filter
Caught SIGSEGV
exec gdb failed: No such file or directory

meson.build in the postprocess directory (only my section):

################################################
# DETECTION SOURCES - Tutorial
################################################
tutorial_sources = [
    'detection/tutorial.cpp',
]

shared_library('tutorial_post',
               tutorial_sources,
               include_directories: [hailo_general_inc] + xtensor_inc,
               dependencies : post_deps,
               gnu_symbol_visibility : 'default',
               install: true,
               install_dir: post_proc_install_dir,
)

tutorial.hpp

#ifndef TAPPAS_TUTORIAL_HPP
#define TAPPAS_TUTORIAL_HPP

#endif //TAPPAS_TUTORIAL_HPP

#pragma once
#include "hailo_objects.hpp"
#include "hailo_common.hpp"

__BEGIN_DECLS
void filter(HailoROIPtr roi);
__END_DECLS

tutorial.cpp:

#include <iostream>
#include "tutorial.hpp"

// Default filter function
void filter(HailoROIPtr roi)
{
    std::cout << "My first postprocess!" << std::endl;
}

Hi @steven.nix,
Have you followed all the steps here:
tappas/docs/write_your_own_application/write-your-own-postprocess.rst at master · hailo-ai/tappas · GitHub
?

Maybe you forgot to actual compile?

It was a cross platform compiling issue. I compiled on an x86_64 machine and set --target_platform to arm but apparently that isn’t for compiling. So I ran the Tappas docker container on an arm system I have and compiled on that and the tutorial is working.