-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Compiled Opencv supported CANN errors #3900
Comments
my CMakeLists.txt is :if(IOS OR WINRT OR ANDROID OR APPLE OR WIN32 OR (NOT HAVE_CANN)) set(the_description "Ascend-accelerated Operations on Matrices") ocv_add_module(cannops opencv_core WRAP python) ocv_include_directories(${CMAKE_SOURCE_DIR}/modules/ts/include) ocv_add_accuracy_tests(DEPENDS_ON opencv_cannops) add_subdirectory(ascendc_kernels) set(CANN_ROOT_DIR "/data_0n1/y00836044/ascend_1.0RC2/ascend-toolkit/latest" CACHE PATH "Path to CANN toolkit") find_library(CANN_ASCENDCL_LIB ascendcl HINTS ${CANN_LIB_DIR}) if(CANN_GE_RUNNER_LIB) if(NOT CANN_ASCENDCL_LIB) set(CANN_LIBS if(TARGET example_cannops_image_processing) |
HELP! HOW can I deal with this can't find os file problem but the os file can be found!!! |
Is libge_runner.so exists? |
Yes,the cann path has the libge_runner.so : /var/lib/docker/overlay2/7922d324ea957ca734af87eb23f3a283c41708bb9380981f03de1475fb15d43c/diff/usr/local/Ascend/ascend-toolkit/8.0.RC1/compiler/lib64/stub/libge_runner.so Ascend-tooklit/data_0n1/install_ascend/ascend-toolkit/latest/aarch64-linux/devlib/libge_runner.so my cann setting path/data_0n1/y00836044/ascend_1.0RC2/ascend-toolkit/latest/aarch64-linux/devlib/libge_runner.so |
Can you provide a more complete log? I don’t see where the compilation error first appeared. |
Thanks for your help again. The whole make output error log is too big ,please see in paste: |
@121209 It seems cmake can't fine these libs, do these libs exist? Try to set LIBRARY_PATH while compiling. export LIBRARY_PATH={ASCEND_HOME_PATH}/latest/lib64:${LIBRARY_PATH} |
OS:
NAME="Huawei Cloud EulerOS"
VERSION="2.0 (aarch64)"
ID="hce"
VERSION_ID="2.0"
PRETTY_NAME="Huawei Cloud EulerOS 2.0 (aarch64)"
ANSI_COLOR="0;31
caNN8.0.RC2
camke code:
!cmake
-D CMAKE_BUILD_TYPE=RELEASE
-D ASCEND_CANN_PACKAGE_PATH=/data_0n1/y00836044/ascend_1.0RC2/ascend-toolkit/latest
-D CMAKE_INSTALL_PREFIX=$(pwd)/install
-D CMAKE_MODULE_PATH=../../opencv_contrib/modules/cannops/ascendc_kernels
-D WITH_DEBUG=0
-D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules
-D ADE_DIR=../../.cache/ade/ade-0.1.2e/
-D WITH_CUDA=0
-D WITH_CANN=1
-D CANN_DIR=/data_0n1/y00836044/ascend_1.0RC2/ascend-toolkit/latest
-D CANN_INCLUDE_DIR=/data_0n1/y00836044/ascend_1.0RC2/ascend-toolkit/latest/include
-D CANN_LIBRARY=/data_0n1/y00836044/ascend_1.0RC2/ascend-toolkit/latest/lib64/libascendcl.so
-D PYTHON3_EXECUTABLE={python_path}
-D PYTHON3_LIBRARY={python_library}
-D PYTHON3_INCLUDE_DIR={python_include_dir}
-D BUILD_opencv_wechat_qrcode=OFF
-D BUILD_opencv_xfeatures2d=OFF
-D BUILD_opencv_face=OFF
-D BUILD_opencv_dnn=ON
-D BUILD_opencv_features2d=ON
-D WITH_CAROTENE=OFF
-D WITH_IPP=OFF
-D WITH_JPEG=ON
-D BUILD_JPEG=OFF
-D JPEG_INCLUDE_DIR=/usr/lcocal/include
-D JPEG_LIBRARY=/usr/lcocal/lib64/libjpeg.so
-D CMAKE_PREFIX_PATH=/usr/lcocal
-D CMAKE_C_COMPILER=clang
-D WITH_GAPI=ON
-D BUILD_DOCS=ON
-D BUILD_EXAMPLES=ON
..
make -j5
Errors:
collect2: error: ld returned 1 exit status
make[2]: *** [modules/cannops/CMakeFiles/opencv_perf_cannops.dir/build.make:155: bin/opencv_perf_cannops] Error 1
make[1]: *** [CMakeFiles/Makefile2:7608: modules/cannops/CMakeFiles/opencv_perf_cannops.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 69%] Built target opencv_perf_imgproc
[ 69%] Linking CXX executable ../../bin/opencv_test_imgcodecs
[ 69%] Built target opencv_test_imgcodecs
[ 69%] Linking CXX executable ../../bin/opencv_test_imgproc
[ 69%] Linking CXX executable ../../bin/opencv_test_videoio
[ 69%] Built target opencv_test_videoio
[ 69%] Built target opencv_test_imgproc
[ 69%] Linking CXX executable ../../bin/opencv_test_calib3d
[ 69%] Built target opencv_test_calib3d
[ 69%] Linking CXX executable ../../bin/opencv_perf_core
[ 69%] Built target opencv_perf_core
[ 69%] Linking CXX executable ../../bin/opencv_test_core
[ 69%] Built target opencv_test_core
[ 69%] Linking CXX shared library ../../lib/libopencv_dnn.so
[ 69%] Built target opencv_dnn
make: *** [Makefile:166: all] Error 2
The text was updated successfully, but these errors were encountered: