while compiling the sample code in UffMNIST.cpp provided in TensorRT:3.0 getting error : Undefined ...
[After Installing the TensorRT3.0 using debian installation method (https://developer.nvidia.com/nvidia-tensorrt3rc-download) for jetson tx2, I tried to compile the sampleUffMNIST.cpp file provided in "samples" folder, but i am getting an errors like [b]Undefined References to createInferBuilder_INTERNAL()[/b]., ,[b]undefined references to cudaFree[/b] and many such undefined references. Can u please help me regarding how can i solve this error
[After Installing the TensorRT3.0 using debian installation method (https://developer.nvidia.com/nvidia-tensorrt3rc-download) for jetson tx2, I tried to compile the sampleUffMNIST.cpp file provided in "samples" folder, but i am getting an errors like Undefined References to createInferBuilder_INTERNAL()., ,undefined references to cudaFree and many such undefined references. Can u please help me regarding how can i solve this error

#1
Posted 02/14/2018 05:06 PM   
suradkarknipun, Look like your cuda library is not existed - did you flash your Jetson TX2 using Jetpack 3.1 before installing TensorRT 3.0 RC? Jetpack 3.1 includes cuda 8.0. My version looks like, nvidia@tegra-ubuntu:~/Downloads/TensorRT-3.0.0/samples/sampleUffMNIST$ make -B ../Makefile.config:6: CUDA_INSTALL_DIR variable is not specified, using /usr/local/cuda-8.0 by default, use CUDA_INSTALL_DIR=<cuda_directory> to change. ../Makefile.config:9: CUDNN_INSTALL_DIR variable is not specified, using by default, use CUDNN_INSTALL_DIR=<cudnn_directory> to change. Compiling: sampleUffMNIST.cpp Compiling: common.cpp Linking: ../../bin/sample_uff_mnist_debug Compiling: sampleUffMNIST.cpp Compiling: common.cpp Linking: ../../bin/sample_uff_mnist nvidia@tegra-ubuntu:~/Downloads/TensorRT-3.0.0/samples/sampleUffMNIST$
Answer Accepted by Forum Admin
suradkarknipun,
Look like your cuda library is not existed - did you flash your Jetson TX2 using Jetpack 3.1 before installing TensorRT 3.0 RC? Jetpack 3.1 includes cuda 8.0.

My version looks like,

nvidia@tegra-ubuntu:~/Downloads/TensorRT-3.0.0/samples/sampleUffMNIST$ make -B
../Makefile.config:6: CUDA_INSTALL_DIR variable is not specified, using /usr/local/cuda-8.0 by default, use CUDA_INSTALL_DIR=<cuda_directory> to change.
../Makefile.config:9: CUDNN_INSTALL_DIR variable is not specified, using by default, use CUDNN_INSTALL_DIR=<cudnn_directory> to change.
Compiling: sampleUffMNIST.cpp
Compiling: common.cpp
Linking: ../../bin/sample_uff_mnist_debug
Compiling: sampleUffMNIST.cpp
Compiling: common.cpp
Linking: ../../bin/sample_uff_mnist
nvidia@tegra-ubuntu:~/Downloads/TensorRT-3.0.0/samples/sampleUffMNIST$

#2
Posted 02/20/2018 11:48 PM   
Linking: ../../bin/sample_mnist_debug /usr/bin/ld: no se puede encontrar -lcudnn collect2: error: ld returned 1 exit status ../Makefile.config:165: fallo en las instrucciones para el objetivo '../../bin/sample_mnist_debug' make: *** [../../bin/sample_mnist_debug] Error
Linking: ../../bin/sample_mnist_debug
/usr/bin/ld: no se puede encontrar -lcudnn
collect2: error: ld returned 1 exit status
../Makefile.config:165: fallo en las instrucciones para el objetivo '../../bin/sample_mnist_debug'
make: *** [../../bin/sample_mnist_debug] Error

#3
Posted 05/01/2018 01:48 PM   
Hi, belamarod Please check the reply in topic_1027783: [url]https://devtalk.nvidia.com/default/topic/1027783/jetson-tx2/ssd-on-nvcaffe-/post/5255874/#5255874[/url] Thanks.
Hi, belamarod

Please check the reply in topic_1027783:
https://devtalk.nvidia.com/default/topic/1027783/jetson-tx2/ssd-on-nvcaffe-/post/5255874/#5255874

Thanks.

#4
Posted 05/03/2018 07:46 AM   
OK Thanks! I'll try!
OK Thanks! I'll try!

#5
Posted 05/10/2018 02:08 PM   
Scroll To Top

Add Reply