24小时热门版块排行榜     意得辑英文润色,师兄用过都说好

查看: 250  |  回复: 5
【悬赏金币】回答本帖问题,作者hjm1990818将赠送您 22 个金币

hjm1990818

金虫 (正式写手)

[求助] Caffe2 make不通过

大家好,小弟make caffe2一直不通过,由于第一次搞这个,找了半天也不知道哪里出错了,我把make信息贴在下面,有做过这个师兄师姐请帮帮我,先谢谢了

hjm@hjm:~/caffe2-master$ sudo make
-- Does not need to define long separately.
-- std::exception_ptr is supported.
-- NUMA is available
-- Current compiler supports avx2 extention. Will build perfkernels.
-- Caffe2: Found protobuf with old-style protobuf targets.
-- Caffe2 protobuf include directory: /usr/include
-- The BLAS backend of choice:Eigen
-- Could NOT find NNPACK (missing: NNPACK_INCLUDE_DIR NNPACK_LIBRARY PTHREADPOOL_LIBRARY CPUINFO_LIBRARY)
-- Brace yourself, we are building NNPACK
CMake Error at cmake/External/nnpack.cmake:73 (add_subdirectory):
  The source directory

    /home/hjm/caffe2-master/third_party/NNPACK

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:74 (include)
  CMakeLists.txt:103 (include)


CMake Error at cmake/External/nnpack.cmake:78 (set_property):
  set_property could not find TARGET nnpack.  Perhaps it has not yet been
  created.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:74 (include)
  CMakeLists.txt:103 (include)


CMake Error at cmake/External/nnpack.cmake:79 (set_property):
  set_property could not find TARGET pthreadpool.  Perhaps it has not yet
  been created.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:74 (include)
  CMakeLists.txt:103 (include)


CMake Error at cmake/External/nnpack.cmake:80 (set_property):
  set_property could not find TARGET cpuinfo.  Perhaps it has not yet been
  created.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:74 (include)
  CMakeLists.txt:103 (include)


CMake Error at cmake/Dependencies.cmake:107 (add_subdirectory):
  The source directory

    /home/hjm/caffe2-master/third_party/cpuinfo

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:103 (include)


CMake Error at cmake/Dependencies.cmake:112 (set_property):
  set_property could not find TARGET cpuinfo.  Perhaps it has not yet been
  created.
Call Stack (most recent call first):
  CMakeLists.txt:103 (include)


-- Caffe2: Cannot find gflags automatically. Using legacy find.
-- Caffe2: Found gflags  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Caffe2: Cannot find glog automatically. Using legacy find.
-- Caffe2: Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
CMake Error at cmake/Dependencies.cmake:162 (add_subdirectory):
  The source directory

    /home/hjm/caffe2-master/third_party/googletest

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:103 (include)


CMake Error at cmake/Dependencies.cmake:169 (add_subdirectory):
  The source directory

    /home/hjm/caffe2-master/third_party/benchmark

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:103 (include)


-- Found lmdb    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so)
-- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)
-- Found Snappy  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so)
-- Found Numa  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libnuma.so)
-- OpenCV found (/usr/share/OpenCV)
CMake Warning at cmake/Dependencies.cmake:280 (find_package):
  By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Eigen3", but
  CMake did not find one.

  Could not find a package configuration file provided by "Eigen3" with any
  of the following names:

    Eigen3Config.cmake
    eigen3-config.cmake

  Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set
  "Eigen3_DIR" to a directory containing one of the above files.  If "Eigen3"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:103 (include)


-- Did not find system Eigen. Using third party subdirectory.
-- NumPy ver. 1.14.5 found (include: /usr/local/lib/python2.7/dist-packages/numpy/core/include)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- MPI support found
-- MPI compile flags:
-- MPI include path: /usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include/usr/lib/openmpi/include/usr/lib/openmpi/include/openmpi
-- MPI LINK flags path:  -Wl,-rpath  -Wl,/usr/lib/openmpi/lib  -Wl,--enable-new-dtags
-- MPI libraries: /usr/lib/openmpi/lib/libmpi_cxx.so/usr/lib/openmpi/lib/libmpi.so
CMake Warning at cmake/Dependencies.cmake:334 (message):
  OpenMPI found, but it is not built with CUDA support.
Call Stack (most recent call first):
  CMakeLists.txt:103 (include)


-- Caffe2: CUDA detected: 8.0
-- Found cuDNN: v5.1.10  (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)
-- Automatic GPU detection returned 6.1.
-- Added CUDA NVCC flags for: sm_61
-- Could NOT find NCCL (missing: NCCL_INCLUDE_DIRS NCCL_LIBRARIES)
CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:1915 (message):
  No download info given for 'nccl_external' and its source directory:

   /home/hjm/caffe2-master/third_party/nccl

  is not an existing non-empty directory.  Please specify one of:

   * SOURCE_DIR with an existing non-empty directory
   * URL
   * GIT_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
   * SVN_REVISION
   * DOWNLOAD_COMMAND
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/ExternalProject.cmake:2459 (_ep_add_download_command)
  cmake/External/nccl.cmake:23 (ExternalProject_Add)
  cmake/Dependencies.cmake:390 (include)
  CMakeLists.txt:103 (include)


-- Could NOT find CUB (missing: CUB_INCLUDE_DIR)
-- Could NOT find Gloo (missing: Gloo_INCLUDE_DIR Gloo_LIBRARY)
CMake Error at cmake/Dependencies.cmake:427 (add_subdirectory):
  The source directory

    /home/hjm/caffe2-master/third_party/gloo

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:103 (include)


CMake Warning at cmake/Dependencies.cmake:467 (message):
  mobile opengl is only used in android or ios builds.
Call Stack (most recent call first):
  CMakeLists.txt:103 (include)


CMake Warning at cmake/Dependencies.cmake:543 (message):
  Metal is only used in ios builds.
Call Stack (most recent call first):
  CMakeLists.txt:103 (include)


CMake Error at cmake/Dependencies.cmake:576 (add_subdirectory):
  The source directory

    /home/hjm/caffe2-master/third_party/onnx

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:103 (include)


CMake Error at cmake/public/utils.cmake:7 (get_target_property):
  get_target_property() called with non-existent target "onnx".
Call Stack (most recent call first):
  cmake/Dependencies.cmake:584 (caffe2_interface_library)
  CMakeLists.txt:103 (include)


-- GCC 5.4.0: Adding gcc and gcc_s libs to link line
-- Include NCCL operators
-- Including image processing operators
-- Excluding video processing operators due to no opencv
-- Excluding mkl operators as we are not using mkl
-- Include Observer library
-- Using lib/python2.7/dist-packages as python relative installation path
-- Automatically generating missing __init__.py files.
--
-- ******** Summary ********
-- General:
--   CMake version         : 3.5.1
--   CMake command         : /usr/bin/cmake
--   Git version           : unknown
--   System                : Linux
--   C++ compiler          : /usr/bin/c++
--   C++ compiler version  : 5.4.0
--   BLAS                  : Eigen
--   CXX flags             :  -fvisibility-inlines-hidden -DONNX_NAMESPACE=onnx_c2 -O2 -fPIC -Wno-narrowing -Wno-invalid-partial-specialization
--   Build type            : Release
--   Compile definitions   :
--
--   BUILD_BINARY          : ON
--   BUILD_CUSTOM_PROTOBUF : OFF
--     Protobuf compiler   : /usr/bin/protoc
--     Protobuf includes   : /usr/include
--     Protobuf libraries  : optimized;/usr/lib/x86_64-linux-gnu/libprotobuf.so;debug;/usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread
--   BUILD_DOCS            : OFF
--   BUILD_PYTHON          : ON
--     Python version      : 2.7.12
--     Python includes     : /usr/include/python2.7
--   BUILD_SHARED_LIBS     : ON
--   BUILD_TEST            : ON
--   USE_ATEN              : OFF
--   USE_ASAN              : OFF
--   USE_CUDA              : ON
--     CUDA version        : 8.0
--     CuDNN version       : 5.1.10
--     CUDA root directory : /usr/local/cuda
--     CUDA library        : /usr/lib/x86_64-linux-gnu/libcuda.so
--     CUDA NVRTC library  : /usr/local/cuda/lib64/libnvrtc.so
--     CUDA runtime library: /usr/local/cuda/lib64/libcudart.so
--     CUDA include path   : /usr/local/cuda/include
--     NVCC executable     : /usr/local/cuda/bin/nvcc
--     CUDA host compiler  : /usr/bin/cc
--   USE_EIGEN_FOR_BLAS    : 1
--   USE_FFMPEG            : OFF
--   USE_GFLAGS            : ON
--   USE_GLOG              : ON
--   USE_GLOO              : ON
--   USE_LEVELDB           : ON
--     LevelDB version     : 1.18
--     Snappy version      : 1.1.3
--   USE_LITE_PROTO        : OFF
--   USE_LMDB              : ON
--     LMDB version        : 0.9.17
--   USE_METAL             : OFF
--   USE_MKL               :
--   USE_MOBILE_OPENGL     : OFF
--   USE_MPI               : ON
--   USE_NCCL              : ON
--   USE_NERVANA_GPU       : OFF
--   USE_NNPACK            : ON
--   USE_OBSERVERS         : ON
--   USE_OPENCV            : ON
--     OpenCV version      : 2.4.9.1
--   USE_OPENMP            : OFF
--   USE_PROF              : OFF
--   USE_REDIS             : OFF
--   USE_ROCKSDB           : OFF
--   USE_ZMQ               : OFF
-- Configuring incomplete, errors occurred!
See also "/home/hjm/caffe2-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/hjm/caffe2-master/build/CMakeFiles/CMakeError.log".
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 1
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hjm1990818

金虫 (正式写手)

请大家指点一下我,谢谢了

发自小木虫Android客户端
2楼2018-06-13 16:27:35
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

爱因斯不舒坦

木虫 (正式写手)

caffe2编译是坑多,最好去网上找,这个太小众了

发自小木虫Android客户端
3楼2018-06-13 19:06:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hjm1990818

金虫 (正式写手)

引用回帖:
3楼: Originally posted by 爱因斯不舒坦 at 2018-06-13 19:06:03
caffe2编译是坑多,最好去网上找,这个太小众了

师兄你好,你也搞过caffe2吗

发自小木虫Android客户端
4楼2018-06-13 19:29:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

goddiao

金虫 (小有名气)

★ ★ ★ ★ ★ ★ ★ ★
hjm1990818(conanwj代发): 金币+8, 感谢应助 2018-07-17 09:09:41
Brew install Cmake. 试一试

发自小木虫IOS客户端
Simplicityistheultimateformofsophistication
5楼2018-07-03 20:26:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hjm1990818

金虫 (正式写手)

引用回帖:
5楼: Originally posted by goddiao at 2018-07-03 20:26:54
Brew install Cmake. 试一试

好的,谢谢师兄

发自小木虫Android客户端
6楼2018-07-04 14:50:05
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 hjm1990818 的主题更新
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 一起灌鸡汤 +15 candy55 2018-12-12 20/1000 2018-12-14 08:50 by 暗淡星辰
[职场人生] 北京顺糖生物科技有限公司是骗子 +9 Larry1982 2018-12-07 20/1000 2018-12-14 08:34 by ZloveA
[访问学者] 文科访学联系导师实在太难了 +6 hanjie1988 2018-12-12 16/800 2018-12-14 00:39 by smilesweet
[文学芳草园] 囚笼 +10 二十四克 2018-12-08 11/550 2018-12-13 23:41 by 卧沃1931
[论文投稿] 各个学校所说的SCI分区,指的是中科院大类还是小类 +19 马克猪 2018-12-13 20/1000 2018-12-13 23:25 by kmght
[硕博家园] 未来的学术路怎样走----香港将军澳墓地是没机会拜祭了 +6 啊文9995 2018-12-13 12/600 2018-12-13 21:58 by 啊文9995
[精细化工] k12什么价格? +6 sunsun1908 2018-12-12 8/400 2018-12-13 17:40 by shen_1990
[材料工程] 下面的形貌图是如何做出来的 +3 raolixiang 2018-12-08 3/150 2018-12-13 17:29 by dctx0608
[硕博家园] $ +18 mcn2019 2018-12-09 18/900 2018-12-13 15:37 by wslwydgv
[公派出国] 19csc硕士项目要取消了吗? +12 Rainnie 7 2018-12-08 19/950 2018-12-13 14:40 by wslwydgv
[基金申请] 这样,青基能结题吗? +17 89509306 2018-12-07 22/1100 2018-12-13 14:07 by wslwydgv
[文学芳草园] 如果没有理想 +5 myrtle 2018-12-08 10/500 2018-12-13 13:38 by wslwydgv
[教师之家] 心情贴 +14 Aliceyonggan 2018-12-11 17/850 2018-12-13 12:40 by pan11jd
[硕博家园] 向发过文章的前辈请教 +16 17332179410 2018-12-12 18/900 2018-12-13 11:29 by 1025317176
[找工作] 深职院招聘 +6 csy886 2018-12-08 8/400 2018-12-13 08:22 by csy886
[电化学] 磷酸铁锂低温曲线不正常 +5 LBQLIB 2018-12-11 13/650 2018-12-13 08:00 by LBQLIB
[精细化工] 6501一桶50斤170元正常吗? +5 sunsun1908 2018-12-11 7/350 2018-12-12 23:29 by 15836028752
[考博] 川大 +3 呼噜噜的猫咪 2018-12-12 11/550 2018-12-12 18:48 by 呼噜噜的猫咪
[考研] 化学考研哪个方向就业前景比较好 +10 黎黎黎晓 2018-12-10 10/500 2018-12-11 13:55 by 3485585399
[高分子] 聚乳酸注塑成型 5+4 冰儿Asy 2018-12-09 5/250 2018-12-10 21:36 by 济南岱罡生物
信息提示
请填处理意见