SpectacularAI / sdk-examples

Spectacular AI SDK examples
Apache License 2.0
202 stars 35 forks source link

Fix C++ depthai plugin replay example #133

Closed kaatrasa closed 6 months ago

kaatrasa commented 6 months ago

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.