Unable to build mxnet on Jetson TX2

Hi there,

I’ve followed the guide here:

I was successfully able to build it on the jetson nano, but while trying to build on the TX2, I’m getting an error during the installation and when I try to import the library.

Any advice is much appreciated!

File “resnet18-mxnet-trt.py”, line 1, in
import mxnet as mx
File “/usr/local/lib/python3.5/dist-packages/mxnet/init.py”, line 23, in
from .context import Context, current_context, cpu, gpu, cpu_pinned
File “/usr/local/lib/python3.5/dist-packages/mxnet/context.py”, line 23, in
from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
File “/usr/local/lib/python3.5/dist-packages/mxnet/base.py”, line 351, in
_LIB = _load_lib()
File “/usr/local/lib/python3.5/dist-packages/mxnet/base.py”, line 342, in _load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
File “/usr/lib/python3.5/ctypes/init.py”, line 347, in init
self._handle = _dlopen(self._name, mode)
OSError: libnvinfer.so.7: cannot open shared object file: No such file or directory
Finish : )


The error complains about there is no TensorRT-7.1 package in your environment.
Have you installed it?
You will need to use JetPack4.4 to get the TensorRT-7.1 package.


Great! Thank you. I’m using a non-stock carrier board so the flash process is a little involved.