Without the option -Wl,--no-as-needed I get ./vio_jsonl: error while loading shared libraries: libdepthai-core.so: cannot open shared object file: No such file or directory
--no-as-needed: This is an option for the linker. By default, when linking a shared library, the linker will only link the library if there is an unsatisfied symbol in the object being linked. --no-as-needed disables this behavior, causing the linker to always link the specified libraries, regardless of whether there are any unsatisfied symbols.
Without the option
-Wl,--no-as-needed
I get./vio_jsonl: error while loading shared libraries: libdepthai-core.so: cannot open shared object file: No such file or directory