SUPERPOINT-SLAM

 error: #error C++14 or later compatible compiler is required to use PyTorch.
    4 | #error C++14 or later compatible compiler is required to use PyTorch.
      |  ^~~~~
In file included from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/lc/SuperPoint_SLAM/include/SPextractor.h:28,
                 from /home/lc/SuperPoint_SLAM/include/KeyFrame.h:30,
                 from /home/lc/SuperPoint_SLAM/include/MapPoint.h:24,
                 from /home/lc/SuperPoint_SLAM/include/FrameDrawer.h:25,
                 from /home/lc/SuperPoint_SLAM/include/Viewer.h:25,
                 from /home/lc/SuperPoint_SLAM/include/Tracking.h:29,
                 from /home/lc/SuperPoint_SLAM/include/System.h:31,
                 from /home/lc/SuperPoint_SLAM/src/System.cc:23:
/home/lc/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:4:2: error: #error C++14 or later compatible compiler is required to use ATen.
    4 | #error C++14 or later compatible compiler is required to use ATen.
      |  ^~~~~
In file included from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h:19,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/c10/core/DispatchKey.h:7,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/c10/core/Backend.h:4,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/c10/core/Layout.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:4,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/lc/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/lc/SuperPoint_SLAM/include/SPextractor.h:28,
                 from /home/lc/SuperPoint_SLAM/include/KeyFrame.h:30,
                 from /home/lc/SuperPoint_SLAM/include/MapPoint.h:24,
                 from /home/lc/SuperPoint_SLAM/include/FrameDrawer.h:25,
                 from /home/lc/SuperPoint_SLAM/include/Viewer.h:25,
                 from /home/lc/SuperPoint_SLAM/include/Tracking.h:29,
                 from /home/lc/SuperPoint_SLAM/include/System.h:31,
                 from /home/lc/SuperPoint_SLAM/src/System.cc:23:
/home/lc/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/C++17.h:24:2: error: #error You need C++14 to compile PyTorch
   24 | #error You need C++14 to compile PyTorch
      |  ^~~~~

Looking at this page https://gcc.gnu.org/projects/cxx-status.html 209 I am guessing if you compiler is not >= version 4.9 then you will need to upgrade it

If your compiler does support c++14 then you need to set a flag to -std=c++14 to tell the compiler to use c++14

if building from source I think you would do the following

in CMakeCache.txt file find CMAKE_CXX_FLAGS:STRING= and set it to CMAKE_CXX_FLAGS:STRING=-std=c++14
or CMAKE_CXX_FLAGS:STRING=-std=c++1y

or take a look at thisSUPERPOINT-SLAM_第1张图片


SUPERPOINT-SLAM_第2张图片


SUPERPOINT-SLAM_第3张图片


SUPERPOINT-SLAM_第4张图片

你可能感兴趣的:(pytorch,深度学习,神经网络)