We’re trying to perform cross-compilation for our cpp code, we aim to create a tensorrt .engine file from a uff model.
In order to compile our code, we are using the cmake file for the SDK samples, we have added our source files to a new folder inside the sample folders and edited the cmake files to compile it as well.
We are compiling using these commands (as specified in the SDK samples README file):
sudo cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks/samples/cmake/Toolchain-V4L.cmake -DVIBRANTE_PDK:STRING=/home/cellaerometer/NVIDIA/Drive/5050bL_SDK/DriveSDK/drive-t186ref-linux /usr/local/driveworks/samples -- VIBRANTE_PDK = /home/cellaerometer/NVIDIA/Drive/5050bL_SDK/DriveSDK/drive-t186ref-linux sudo make -j
The problem seems to be that the libraries specified in the cmake don’t include the implementations for the following function:
This is the error:
/home/cellaerometer/NVIDIA/Drive/5050bL_SDK/DriveSDK/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/…/…/libexec/aarch64-gnu-linux/gcc/aarch64-gnu-linux/4.9.2/ld: CMakeFiles/pilotnet_inference.dir/PilotnetTRT.cpp.o: undefined reference to symbol ‘createInferBuilder_INTERNAL’
We have tried to somehow include the libnvinfer.so file, since we thought it might sort this out, but we get errors when trying to include it in the cmake.
Cross-compilation for Drive PX-2 Autochauffer, aarch64-linux
Could you help us with figuring this out?