Please strictly follow https://github.com/NVIDIA-AI-IOT/deepstream_tao_apps/tree/master/TRT-OSS/x86#build-tensorrt-oss-plugin---libnvinfer_pluginso
You can also refer to