Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cuda undefined reference #5

Open
skp1204 opened this issue Apr 29, 2022 · 2 comments
Open

Cuda undefined reference #5

skp1204 opened this issue Apr 29, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@skp1204
Copy link

skp1204 commented Apr 29, 2022

I am trying to use the shared library in my project, in AGX Xavier platform. While compiling I am getting undefined referene error for Cuda as in the image below. Can you please help?

image

@noahmr
Copy link
Owner

noahmr commented Apr 30, 2022

Hi @skp1204,

Could you share with me:

  • the commands you're using the compile the software
  • the versions of OpenCV and TensorRT that you're using

I'll try to reproduce the build error on my own Jetson system

@noahmr noahmr self-assigned this Apr 30, 2022
@noahmr noahmr added the bug Something isn't working label Apr 30, 2022
@skp1204
Copy link
Author

skp1204 commented May 2, 2022

Hello,
Thanks a lot for your reply. I am running jetpack 4.6 on my jetson platform which comes with Tensorrt 8.0.1 and OpenCV 4.1.1.
I compared my CMakeLists with the ones in the examples and saw that the undefined errors were all pertaining to the libraries listed in the command below. Once I changed my CMakeLists the code compiled successfully.
target_link_libraries(
nvinfer
nvonnxparser
${CUDA_CUDART_LIBRARY}
${OpenCV_LIBRARIES}
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants