dusty-nv / jetson-utils

C++/CUDA/Python multimedia utilities for NVIDIA Jetson
MIT License
716 stars 283 forks source link

c++ read camera #168

Open kankanjiuzou123 opened 1 year ago

kankanjiuzou123 commented 1 year ago

I have compiled jetson_utils, but when I call it using c++, I get this error. What is the reason? My cmakelists file is written like this. Is it wrong? In addition, is there any demo of C++ reading the camera? I am currently working on this and need your help. image image

dusty-nv commented 1 year ago

Hi @kankanjiuzou123, try adding find_package(CUDA) to your CMakeLists.txt like in this example:

https://github.com/dusty-nv/jetson-inference/blob/master/examples/my-recognition/CMakeLists.txt

kankanjiuzou123 commented 1 year ago

Hi @kankanjiuzou123, try adding find_package(CUDA) to your CMakeLists.txt like in this example:

https://github.com/dusty-nv/jetson-inference/blob/master/examples/my-recognition/CMakeLists.txt

OK,Thank you,I will try this.