Nvros_trt error while cross_compiling ros in host pc

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
[o] DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
[o] Linux
QNX
other

Hardware Platform
[o] NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
[o] 1.9.10816
other

Host Machine Version
[o] native Ubuntu 18.04
other

Host pc spec:
Cuda : 10.2

Hello, Sorry to keep asking so many questions. But now things are too urgent. Please help me.
I’m now trying to install ros on the target pc using cross-compilation. I am proceeding by following the link below.
“NVIDIA_DRIVE_OS_5.2_NvROS_Example_Integration_Guide/nvvib_docs/index.html”

During the process, the following error occurred when executing the command.
image

==> Processing catkin package: 'nvros_trt'
==> Creating build directory: '../../../../build_isolated/nvros_trt'
==> Building with env: '/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/install_isolated/env.sh'
==> /usr/bin/cmake /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt -DCATKIN_DEVEL_PREFIX=/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/devel_isolated/nvros_trt -DCMAKE_INSTALL_PREFIX=/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/install_isolated -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/ros/src/nvros/build/pdk/toolchain.cmake -DCATKIN_ENABLE_TESTING=false -G Unix Makefiles in '/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/build_isolated/nvros_trt'
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../toolchains/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
-- Check for working C compiler: /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../toolchains/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../toolchains/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++
-- Check for working CXX compiler: /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../toolchains/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda-10.2 (found version "10.2") 
-- Using CATKIN_DEVEL_PREFIX: /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/devel_isolated/nvros_trt
-- Using CMAKE_PREFIX_PATH: /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/install_isolated
-- This workspace overlays: /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/install_isolated
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: false
-- catkin 0.7.20
-- BUILD_SHARED_LIBS is on
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- nvros_trt: 2 messages, 0 services
-- Configuring done
CMake Warning (dev) at CMakeLists.txt:62 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "nvros_trt_genmsg_cpp" of target "nvros_trt_node"
  does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/build_isolated/nvros_trt
==> make -j12 -l12 in '/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/build_isolated/nvros_trt'
Scanning dependencies of target _nvros_trt_generate_messages_check_deps_nvros_trt_stop
Scanning dependencies of target std_msgs_generate_messages_cpp
Scanning dependencies of target std_msgs_generate_messages_py
Scanning dependencies of target _nvros_trt_generate_messages_check_deps_nvros_trt_start
Scanning dependencies of target std_msgs_generate_messages_nodejs
Scanning dependencies of target std_msgs_generate_messages_lisp
Scanning dependencies of target std_msgs_generate_messages_eus
[  0%] Built target std_msgs_generate_messages_nodejs
[  0%] Built target std_msgs_generate_messages_py
[  0%] Built target std_msgs_generate_messages_cpp
[  0%] Built target std_msgs_generate_messages_eus
[  0%] Built target std_msgs_generate_messages_lisp
[  0%] Built target _nvros_trt_generate_messages_check_deps_nvros_trt_stop
[  0%] Built target _nvros_trt_generate_messages_check_deps_nvros_trt_start
Scanning dependencies of target nvros_trt_generate_messages_eus
Scanning dependencies of target nvros_trt_generate_messages_py
Scanning dependencies of target nvros_trt_generate_messages_nodejs
Scanning dependencies of target nvros_trt_generate_messages_cpp
Scanning dependencies of target nvros_trt_generate_messages_lisp
[  6%] Generating Javascript code from nvros_trt/nvros_trt_start.msg
[ 26%] Generating C++ code from nvros_trt/nvros_trt_stop.msg
[ 26%] Generating Python from MSG nvros_trt/nvros_trt_start
[ 33%] Generating EusLisp code from nvros_trt/nvros_trt_start.msg
[ 33%] Generating EusLisp code from nvros_trt/nvros_trt_stop.msg
[ 40%] Generating Python from MSG nvros_trt/nvros_trt_stop
[ 46%] Generating C++ code from nvros_trt/nvros_trt_start.msg
[ 53%] Generating EusLisp manifest code for nvros_trt
[ 60%] Generating Javascript code from nvros_trt/nvros_trt_stop.msg
[ 66%] Generating Lisp code from nvros_trt/nvros_trt_start.msg
[ 73%] Generating Lisp code from nvros_trt/nvros_trt_stop.msg
[ 73%] Built target nvros_trt_generate_messages_nodejs
[ 73%] Built target nvros_trt_generate_messages_lisp
[ 80%] Generating Python msg __init__.py for nvros_trt
[ 80%] Built target nvros_trt_generate_messages_cpp
[ 80%] Built target nvros_trt_generate_messages_py
[ 80%] Built target nvros_trt_generate_messages_eus
Scanning dependencies of target nvros_trt_generate_messages
Scanning dependencies of target nvros_trt_node
[ 80%] Built target nvros_trt_generate_messages
[ 86%] Building CXX object CMakeFiles/nvros_trt_node.dir/src/NvROSTrt.cpp.o
[ 93%] Building CXX object CMakeFiles/nvros_trt_node.dir/src/nvros_trt_node.cpp.o
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/nvros_trt_node.cpp: In function ‘int main(int, char**)’:
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/nvros_trt_node.cpp:136:55: warning: invalid conversion from ‘uint32_t {aka unsigned int}’ to ‘nvros::LogLevel {aka nvros::_NvRosLogLevel}’ [-fpermissive]
     NvRosDiagnosticsType(PRINTPUBLISH, diagnosticLevel);
                                                       ^
In file included from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/include/NvROSTrt.h:13:0,
                 from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/nvros_trt_node.cpp:15:
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/install_isolated/include/nvros_diagnostics/nvros_diagnostics.h:58:7: note:   initializing argument 2 of ‘void nvros::NvRosDiagnosticsType(nvros::OpsLevel, nvros::LogLevel)’
  void NvRosDiagnosticsType(OpsLevel type = PRINTPUBLISH, LogLevel level = ERROR);
       ^~~~~~~~~~~~~~~~~~~~
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/nvros_trt_node.cpp:220:80: warning: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]
       g_engine.initialize(enigneOutWidth, enigneOutHeight, enigneOutDepth, 21, &engine0ColorMap[0][0]);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/nvros_trt_node.cpp:15:0:
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/include/NvROSTrt.h:66:7: note:   initializing argument 5 of ‘bool nvros::NvROSTrt::initialize(int32_t, int32_t, int32_t, int32_t, void*)’
  bool initialize(int32_t enigneOutWidth, int32_t enigneOutHeight, int32_t enigneOutDepth, int32_t colorMapRows, void *colorMap);
       ^~~~~~~~~~
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/nvros_trt_node.cpp:229:80: warning: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]
       g_engine.initialize(enigneOutWidth, enigneOutHeight, enigneOutDepth, 21, &engine1ColorMap[0][0]);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/nvros_trt_node.cpp:15:0:
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/include/NvROSTrt.h:66:7: note:   initializing argument 5 of ‘bool nvros::NvROSTrt::initialize(int32_t, int32_t, int32_t, int32_t, void*)’
  bool initialize(int32_t enigneOutWidth, int32_t enigneOutHeight, int32_t enigneOutDepth, int32_t colorMapRows, void *colorMap);
       ^~~~~~~~~~
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/nvros_trt_node.cpp:239:80: warning: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]
       g_engine.initialize(enigneOutWidth, enigneOutHeight, enigneOutDepth, 21, &engine2ColorMap[0][0]);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/nvros_trt_node.cpp:15:0:
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/include/NvROSTrt.h:66:7: note:   initializing argument 5 of ‘bool nvros::NvROSTrt::initialize(int32_t, int32_t, int32_t, int32_t, void*)’
  bool initialize(int32_t enigneOutWidth, int32_t enigneOutHeight, int32_t enigneOutDepth, int32_t colorMapRows, void *colorMap);
       ^~~~~~~~~~
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/nvros_trt_node.cpp:248:80: warning: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]
       g_engine.initialize(enigneOutWidth, enigneOutHeight, enigneOutDepth, 21, &engine3ColorMap[0][0]);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/nvros_trt_node.cpp:15:0:
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/include/NvROSTrt.h:66:7: note:   initializing argument 5 of ‘bool nvros::NvROSTrt::initialize(int32_t, int32_t, int32_t, int32_t, void*)’
  bool initialize(int32_t enigneOutWidth, int32_t enigneOutHeight, int32_t enigneOutDepth, int32_t colorMapRows, void *colorMap);
       ^~~~~~~~~~
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/NvROSTrt.cpp: In member function ‘bool nvros::NvROSTrt::initialize(int32_t, int32_t, int32_t, int32_t, void*)’:
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/NvROSTrt.cpp:122:21: warning: invalid conversion from ‘CUdeviceptr {aka long long unsigned int}’ to ‘void*’ [-fpermissive]
     cudaMemcpyAsync(m_colorMap, colorMap, colorMapRows*3*sizeof(unsigned int),cudaMemcpyHostToDevice);
                     ^~~~~~~~~~
In file included from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/install_isolated/include/nvros_cuda_samples/cuda_kernels.h:15:0,
                 from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/include/NvROSTrt.h:15,
                 from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/NvROSTrt.cpp:11:
/usr/local/cuda-10.2/targets/aarch64-linux/include/cuda_runtime_api.h:5836:58: note:   initializing argument 1 of ‘cudaError_t cudaMemcpyAsync(void*, const void*, size_t, cudaMemcpyKind, cudaStream_t)’
 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI cudaMemcpyAsync(void *dst, const void *src, size_t count, enum cudaMemcpyKind kind, cudaStream_t stream __dv(0));
                                                          ^~~~~~~~~~~~~~~
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/NvROSTrt.cpp: In member function ‘void nvros::NvROSTrt::release()’:
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/NvROSTrt.cpp:138:14: warning: invalid conversion from ‘CUdeviceptr {aka long long unsigned int}’ to ‘void*’ [-fpermissive]
     cudaFree(m_colorMap);
              ^~~~~~~~~~
In file included from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/install_isolated/include/nvros_cuda_samples/cuda_kernels.h:15:0,
                 from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/include/NvROSTrt.h:15,
                 from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/NvROSTrt.cpp:11:
/usr/local/cuda-10.2/targets/aarch64-linux/include/cuda_runtime_api.h:4440:58: note:   initializing argument 1 of ‘cudaError_t cudaFree(void*)’
 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI cudaFree(void *devPtr);
                                                          ^~~~~~~~
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/NvROSTrt.cpp: In member function ‘void nvros::NvROSTrt::run_trt()’:
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/NvROSTrt.cpp:315:26: warning: NULL used in arithmetic [-Wpointer-arith]
         if(inputFrame == NULL)
                          ^~~~
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/NvROSTrt.cpp:340:40: warning: invalid conversion from ‘void*’ to ‘void* const*’ [-fpermissive]
         m_context->enqueue(BATCH_SIZE, (void*)trtFrame, m_stream, nullptr);
                                        ^~~~~~~~~~~~~~~
In file included from /usr/include/aarch64-linux-gnu/NvInfer.h:53:0,
                 from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/include/NvROSTrt.h:17,
                 from /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/pkgs/nvros_trt/src/NvROSTrt.cpp:11:
/usr/include/aarch64-linux-gnu/NvInferRuntime.h:1572:18: note:   initializing argument 2 of ‘virtual bool nvinfer1::IExecutionContext::enqueue(int32_t, void* const*, cudaStream_t, CUevent_st**)’
     virtual bool enqueue(int32_t batchSize, void* const* bindings, cudaStream_t stream, cudaEvent_t* inputConsumed) noexcept = 0;
                  ^~~~~~~
[100%] Linking CXX executable /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/devel_isolated/nvros_trt/lib/nvros_trt/nvros_trt_node
/home/glad/Downloads/nvidia/sdkm_downloads/toolchains/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.3.1/../../../../aarch64-linux-gnu/bin/ld: warning: libcublas.so.10, needed by /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so, not found (try using -rpath or -rpath-link)
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasGetMathMode@libcublas.so.10'
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasGetVersion_v2@libcublas.so.10'
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasSetStream_v2@libcublas.so.10'
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasGemmEx@libcublas.so.10'
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasHgemm@libcublas.so.10'
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasHgemmStridedBatched@libcublas.so.10'
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasSgemm_v2@libcublas.so.10'
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasCreate_v2@libcublas.so.10'
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasDestroy_v2@libcublas.so.10'
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasSgemmEx@libcublas.so.10'
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasSgemmStridedBatched@libcublas.so.10'
/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/src/nvros/build/pdk/../../../../../../drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libnvinfer.so: undefined reference to `cublasSetMathMode@libcublas.so.10'
collect2: error: ld returned 1 exit status
CMakeFiles/nvros_trt_node.dir/build.make:158: recipe for target '/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/devel_isolated/nvros_trt/lib/nvros_trt/nvros_trt_node' failed
make[2]: *** [/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/devel_isolated/nvros_trt/lib/nvros_trt/nvros_trt_node] Error 1
CMakeFiles/Makefile2:957: recipe for target 'CMakeFiles/nvros_trt_node.dir/all' failed
make[1]: *** [CMakeFiles/nvros_trt_node.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'nvros_trt': 
  Command '['/home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/install_isolated/env.sh', 'make', '-j12', '-l12']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/build_isolated/nvros_trt && /home/glad/Downloads/nvidia/sdkm_downloads/drive-t186ref-linux/ros/install_isolated/env.sh make -j12 -l12

Command failed, exiting.

Currently, an error still appears in the package of nvros_trt. If there is anyway to build the package except for the ‘nvros_trt’, please let me know. or Is there anyway to solve the error which is mentioned above it.

I would suggest you follow the document as possible and avoid unnecessary file copying.

I followed the docs. No other files were copied.
What should I do? Is it better to uninstall and start over?

Per Nvros error on target pc, this topic was solved.

I just uninstall nvros_trt to solve this error.
So, I want to know how to solve above error without uninstall nvros_trt package

This issue isn’t observed on our side so you should make sure all components are installed via sdkmanager without messed-up by any manual installation.

Dear @rlfxogud961,
For issues related to undefined reference to cublas API calls, please check if the below change can fix the issue?

Edit file $(TOP)/drive-t186ref-linux/ros/src/nvros/build/pdk/toolchain.cmake follows:
- set(LD_PATH_CUDA “${CUDA_TOOLKIT_ROOT_DIR}/targets/aarch64-linux/lib”)
+ set(LD_PATH_CUDA “${MYSYSROOT}/${CUDA_TOOLKIT_ROOT_DIR}/targets/aarch64-linux/lib”)

Dear @rlfxogud961,
Could you check if the above suggested changes help to compile nvros_trt package?