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

skipping incompatible /usr/local/cuda/lib64/libcudnn.so when searching for -lcudnn #37

Open
gadididi opened this issue Apr 29, 2021 · 0 comments

Comments

@gadididi
Copy link

gadididi commented Apr 29, 2021

hi
i have manifod g2 (DJI pc) with:
jetson tx2
jetpack 3.2
cuda 9-0

i try to use dnn with cuda.
i try to compile opencv 4.5.1 with opencv_contrib:

  -D CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} \
  -D WITH_CUDA=ON \
  -D OPENCV_DNN_CUDA=ON \
  -D CUDNN_VERSION='9.0'\
  -D CUDA_ARCH_BIN=${ARCH_BIN} \
  -D CUDA_ARCH_PTX="" \
  -D ENABLE_FAST_MATH=ON \
  -D CUDA_FAST_MATH=ON \
  -D WITH_CUBLAS=ON \
  -D WITH_LIBV4L=ON \
  -D WITH_CUDNN=ON \
  -D WITH_GSTREAMER=ON \
  -D WITH_GSTREAMER_0_10=OFF \
  -D WITH_QT=ON \
  -D WITH_OPENGL=ON \
  -D OPENCV_EXTRA_MODULES_PATH=/home/nvidia/opencv_contrib/modules \
  -D BUILD_opencv_legacy=OFF \

In the building i get weird warring:
/usr/bin/ld: skipping incompatible /usr/local/cuda/lib64/libcudnn.so when searching for -lcudnn

and i get:

CMakeFiles/Makefile2:5082: recipe for target 'modules/dnn/CMakeFiles/opencv_dnn.dir/all' failed
make[1]: *** [modules/dnn/CMakeFiles/opencv_dnn.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

i do not know what to do ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant