Closed masip85 closed 2 years ago
Ubuntu 18.04 arm64
cudnn-10.2-linux-x64-v8.2.1.32.tgz
arm64 != x64
Build / usage questions should go to Users OpenCV Q/A forum: https://forum.opencv.org/
I didn't notice! When I clicked from https://developer.nvidia.com/rdp/cudnn-download I thought it would be for any architecture. So.. I don't see possibilities for arm64 to download. And I can't guess where debian package installs it,and cmake doesn't found it. Maybe I should make another issue for that.
System information (version)
Detailed description
I can't compile with cuda and cudnn. I get this error: 16%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/struct.pb.cc.o /usr/bin/ld: skipping incompatible /usr/local/cuda/lib64/libcudnn_static_v8.a when searching for -lcudnn_static_v8 /usr/bin/ld: skipping incompatible /usr/local/cuda/lib64/libcudnn_static_v8.a when searching for -lcudnn_static_v8 /usr/bin/ld: cannot find -lcudnn_static_v8 collect2: error: ld returned 1 exit status modules/cudev/CMakeFiles/opencv_cudev.dir/build.make:95: recipe for target 'lib/libopencv_cudev.so.4.5.3' failed make[2]: [lib/libopencv_cudev.so.4.5.3] Error 1 CMakeFiles/Makefile2:3142: recipe for target 'modules/cudev/CMakeFiles/opencv_cudev.dir/all' failed make[1]: [modules/cudev/CMakeFiles/opencv_cudev.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 16%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/mathlimits.cc.o [ 16%] Building CXX object modules/CMakeFiles/ade.dir//3rdparty/ade/ade-0.1.1f/sources/ade/source/search.cpp.o [ 16%] Building CXX object modules/CMakeFiles/ade.dir//3rdparty/ade/ade-0.1.1f/sources/ade/source/subgraphs.cpp.o [ 17%] Building CXX object modules/CMakeFiles/ade.dir/__/3rdparty/ade/ade-0.1.1f/sources/ade/source/topological_sort.cpp.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/substitute.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/text_format.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/timestamp.pb.cc.o [ 17%] Linking CXX static library ../3rdparty/lib/libade.a [ 17%] Built target ade [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/type.pb.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/unknown_field_set.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/delimited_message_util.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_comparator.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_mask_util.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/datapiece.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/default_value_objectwriter.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/field_mask_utility.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_escaping.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_objectwriter.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_stream_parser.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/object_writer.cc.o [ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/proto_writer.cc.o [ 18%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/protostream_objectsource.cc.o [ 18%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/protostream_objectwriter.cc.o [ 18%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/type_info.cc.o [ 18%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/utility.cc.o [ 18%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/json_util.cc.o [ 18%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/message_differencer.cc.o [ 18%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/time_util.cc.o [ 18%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/type_resolver_util.cc.o [ 18%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format.cc.o [ 18%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wrappers.pb.cc.o [ 18%] Linking CXX static library ../lib/liblibprotobuf.a [ 18%] Built target libprotobuf Makefile:162: recipe for target 'all' failed make: [all] Error 2 The command '/bin/sh -c cd /tmp/install_cv2/opencv/build && make -j3 verbose=1' returned a non-zero code: 2
Steps to reproduce
After that and installing this requirements:
I execute:
With this fresh cuDNN install, cmake found the library and it's version:
Then I use make, and the error I've introduced at the top appears, and I've found no issues at all with cannot find -lcudnn_static_v8
I have also try to provide cudnn paths:
-D CUDNN_LIBRARY=/usr/local/cuda/lib64/libcudnn_static_v8.a \
but nothing change with this flags. And by the way, when I use this flags I list previously that the file really exists with ls /usr/local/cuda/lib64. Just the results are just the same.
Issue submission checklist