-
Hi, I'm trying to cross-compile my own C++ application using the ZED SDK and CUDA and get some very strange error in cmake:
First it says Here is my recipe, which I derived from #440:
I also tried this (see the last EXTRA_OECMAKE arg above), but with no success. Here the CMakeLists.txt of my program:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @ElD4n1 Could you share the result of the following command ?
|
Beta Was this translation helpful? Give feedback.
-
The old and long-deprecated Otherwise, you may have to find a way to append the library (either the stub or, if you add |
Beta Was this translation helpful? Give feedback.
The old and long-deprecated
FindCUDA
CMake module has trouble locating the CUDA driver library (libcuda.so
) in some cases, and evidently this is one of them. The more modern approach is to use CUDA language support in CMake, which should be better about using thelib/stub
directory when linking.Otherwise, you may have to find a way to append the library (either the stub or, if you add
tegra-libraries
to the DEPENDS setting in your recipe, the real copy, which would be at/usr/lib/libcuda.so
in your recipe s…