Unable to import ovx and nvx in Deepstream plugin

I’m trying to include ovx and nvx in my deepstream plugin. But I’m getting this error when I include them.

/usr/bin/ld: /home/user/VisionWorks-1.6-Samples/libs/aarch64/linux/release/libovx.a(UtilityOVX.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZNKSt5ctypeIcE8do_widenEc' which may bind externally can not be used when making a shared object; recompile with -fPIC
UtilityOVX.cpp:(.text+0x90c): dangerous relocation: unsupported relocation

Jetpack version: 4.4
Deepstream : 5.0
VW: 1.6

2 Likes

Try to rebuild nvxio libraries with -fPIC flag.
You need to navigate into ~/VisionWorks-1.6-Samples/nvxio then change CXX flags as CXXFLAGS += -std=c++0x -fPIC.
Then compile using make clean && make -j3.
After recompiling you should be good to go.

1 Like