• sungh66

    有cv环境,我有opencv.hpp但没有cv.hpp,如何解决thor的安装错误
    以下是报错内容
    0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
    rm: cannot remove 'build/': No such file or directory
    -- The CXX compiler identification is GNU 7.5.0
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found OpenCV: /usr/local (found suitable version "4.5.4", minimum required is "4.0")
    -- Build with OpenCV
    -- OpenCV version: 4.5.4
    -- OpenCV include path: /usr/local/include/opencv4
    DEBUG$USE_CURL
    -- built without curl
    -- USE_OPENCV: ON
    -- USE_EIGEN: OFF
    -- USE_PROTOBUF: OFF
    -- USE_CV_EX: OFF
    -- USE_CURL: OFF
    -- BUILD_STATIC: OFF
    -- Proto headers:
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /thor_install/thor/build
    Scanning dependencies of target thor
    [ 8%] Building CXX object CMakeFiles/thor.dir/src/file.cpp.o
    [ 8%] Building CXX object CMakeFiles/thor.dir/src/cv_ex.cpp.o
    [ 17%] Building CXX object CMakeFiles/thor.dir/src/geometry.cpp.o
    [ 17%] Building CXX object CMakeFiles/thor.dir/src/generic.cpp.o
    [ 21%] Building CXX object CMakeFiles/thor.dir/src/random.cpp.o
    [ 26%] Building CXX object CMakeFiles/thor.dir/src/slam.cpp.o
    [ 30%] Building CXX object CMakeFiles/thor.dir/src/str_util.cpp.o
    [ 34%] Building CXX object CMakeFiles/thor.dir/src/algorithm/hungarian.cc.o
    [ 39%] Building CXX object CMakeFiles/thor.dir/src/app_license.cc.o
    [ 43%] Building CXX object CMakeFiles/thor.dir/src/datum.cc.o
    [ 47%] Building CXX object CMakeFiles/thor.dir/src/dl.cc.o
    In file included from /thor_install/thor/include/thor/dl.h:42:0,
    from /thor_install/thor/src/dl.cc:28:
    /thor_install/thor/include/thor/./structures.h:34:10: fatal error: opencv2/cv.hpp: No such file or directory
    #include "opencv2/cv.hpp"
    ^~~~~~~~~~~~~~~~
    compilation terminated.
    CMakeFiles/thor.dir/build.make:302: recipe for target 'CMakeFiles/thor.dir/src/dl.cc.o' failed
    make[2]: *** [CMakeFiles/thor.dir/src/dl.cc.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thor.dir/all' failed
    make[1]: *** [CMakeFiles/thor.dir/all] Error 2
    Makefile:129: recipe for target 'all' failed
    make: *** [all] Error 2
    [ 4%] Building CXX object CMakeFiles/thor.dir/src/dl.cc.o
    In file included from /thor_install/thor/include/thor/dl.h:42:0,
    from /thor_install/thor/src/dl.cc:28:
    /thor_install/thor/include/thor/./structures.h:34:10: fatal error: opencv2/cv.hpp: No such file or directory
    #include "opencv2/cv.hpp"
    ^~~~~~~~~~~~~~~~
    compilation terminated.
    CMakeFiles/thor.dir/build.make:302: recipe for target 'CMakeFiles/thor.dir/src/dl.cc.o' failed
    make[2]: *** [CMakeFiles/thor.dir/src/dl.cc.o] Error 1
    CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thor.dir/all' failed
    make[1]: *** [CMakeFiles/thor.dir/all] Error 2
    Makefile:129: recipe for target 'all' failed
    make: *** [all] Error 2
    thor installed.

    发布在 原创分享专区 阅读更多

与 神力AI社区 的连接断开,我们正在尝试重连,请耐心等待