查看: 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个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[留学DIY] 香港大学博士申请 +5 我是大英雄 2018-09-20 5/250 2018-09-25 11:51 by Aurora晨曦
[基金申请] 怎么发表论文,研一小白 +3 霸气小鸟111 2018-09-25 3/150 2018-09-25 11:50 by zmuyez
[教师之家] 从教感悟。 +12 苏小姐的猫 2018-09-21 34/1700 2018-09-25 11:33 by 苏小姐的猫
[职场人生] 把你招进来又不怎么用你 +29 Siyu Tian 2018-09-21 45/2250 2018-09-25 11:26 by 九尘
[硕博家园] 投稿被拒后,想重投同一期刊,请问应该怎么做 +8 雨雪中漫步 2018-09-24 13/650 2018-09-24 21:40 by 200404334
[外语学习] 有没有工作党考雅思的小伙伴们,求组队 +3 爱吃小芹菜 2018-09-24 3/150 2018-09-24 21:33 by 天猴八部
[硕博家园] 居然失眠 +7 Me诺言liu 2018-09-22 12/600 2018-09-24 17:53 by lyf1850
[考博] 选择本校读博还是外校读博? +41 Ace艾 2018-09-18 105/5250 2018-09-24 16:15 by Nature xin
[找工作] offer选择 +22 ice123 2018-09-19 27/1350 2018-09-24 14:08 by kmght
[硕博家园] 沉心静气,修身改性,半年能改变多少? +10 szj95516 2018-09-21 13/650 2018-09-24 09:11 by 李雅的雅
[职场人生] 请教一个职场问题 +4 smallgreat 2018-09-23 6/300 2018-09-24 04:55 by Timbers59
[考研] 考研 +5 8800_qq 2018-09-21 6/300 2018-09-23 12:06 by 杜莫人
[教师之家] 选第一次带硕士的导师怎么样呀 +26 lmm229 2018-09-21 33/1650 2018-09-22 18:15 by 飞行鸟
[硕博家园] 申请审核制读博难吗 +11 tell_more 2018-09-22 11/550 2018-09-22 15:58 by zhang-zhen
[高分子] DSC 100+3 为梦封情 2018-09-19 20/1000 2018-09-22 12:17 by vmuch520
[论文投稿] 又一次改文章改到凌晨,哎,真的挺累的 +38 kellysjdym 2018-09-21 55/2750 2018-09-22 09:30 by kakarote
[论文投稿] 请问中国煤炭和工业安全与环保还是最新版的核心吗 +3 zwllhl 2018-09-18 4/200 2018-09-21 13:19 by zwllhl
[论文投稿] 伤心太平洋 +13 慧子果儿 2018-09-18 18/900 2018-09-20 20:39 by 我是小老板
[版块工场] 【早起签到贴】2018年9月20日(q q 48626260 进群申请:小木虫——您个人ID) +48 8475 2018-09-20 48/2400 2018-09-20 07:47 by 加油再加油
[考博] 博导邮件回复 +18 a1995 2018-09-18 19/950 2018-09-19 21:35 by 小跟爸爸
信息提示
请填处理意见