24小时热门版块排行榜     中国微生物培养皿艺术大赛

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

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

金虫 (小有名气)

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个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 投票:  目前选项设计最全的关于FS01、FS02、2018、201802等的投票 +57 x1much 2018-07-15 85/4250 2018-07-16 10:50 by 科学是寂寞的
[出国考试] 2018最近雅思口语资料 +6 shj_ 2018-07-09 18/900 2018-07-16 10:01 by shj_
[基金申请] 给大家一个前缀解析时间戳的网站 +31 WangYi_1234 2018-07-15 52/2600 2018-07-16 09:19 by xiaomuch163
[有机交流] 有没有化妆品行业的 +4 a155644 2018-07-15 4/200 2018-07-16 07:16 by 坏笑54
[硕博家园] 选择你与不选择你 +10 婷柳婷 2018-07-12 10/500 2018-07-16 02:35 by 胖子ing
[硕博家园] 本人是做石墨烯电极材料方面的,想考取明年的博士,请各位推荐下老师 +3 一朵小奇葩a 2018-07-15 6/300 2018-07-16 00:14 by 15208328714
[论文投稿] JSV编辑说可以修改后重投,不知道是不是客套话 有经验的帮我分析一下啊 以下是回复 +7 小河之酒 2018-07-15 10/500 2018-07-15 23:53 by ennlia
[论文投稿] IEEE ACCESS 投稿已经21天,刚刚分配ADM, AE没有分配。 +5 hityufei 2018-07-15 6/300 2018-07-15 23:15 by 逝水无痕1990
[论文投稿] 求一个审稿特别快的期刊 +5 jiabinguang 2018-07-15 7/350 2018-07-15 23:12 by 逝水无痕1990
[硕博家园] 不是985,211高校硕士好毕业吗 +17 418401448 2018-07-14 19/950 2018-07-15 17:19 by yaohuaibing
[版块工场] 【早起签到贴】2018年7月15日(q q 48626260 进群申请:小木虫——您个人ID) +60 8475 2018-07-15 60/3000 2018-07-15 10:03 by guangyinglee
[公派出国] 日语培训 +7 城墙下打挖坑 2018-07-12 14/700 2018-07-14 06:30 by chinachen518
[公派出国] 出国留学问题 +3 木头0号 2018-07-13 8/400 2018-07-13 21:21 by 木头0号
[微米和纳米] 请问一下高纯度的氧化铝哪里可以购买 +5 pih6190001 2018-07-11 8/400 2018-07-13 11:02 by pih6190001
[基金申请] 它,像一根稻草! +45 xiaomuch163 2018-07-10 63/3150 2018-07-13 10:16 by tyxsharp
[有机交流] 非常感谢大家能帮忙一下 +3 1786072632 2018-07-11 4/200 2018-07-12 18:58 by 1786072632
[硕博家园] +6 753tea 2018-07-10 8/400 2018-07-11 08:08 by 08逍客
[电化学] 发文章 +4 晗作业 2018-07-10 4/200 2018-07-10 10:39 by 宇极无痕
[论文投稿] 外审审回了,意见是加近三年参考文献 +9 俞锦涛 2018-07-09 10/500 2018-07-10 08:18 by 国际科学编辑
[论文投稿] 求助 +5 Sunday366 2018-07-09 7/350 2018-07-09 13:58 by 豆花妹
信息提示
请填处理意见