我是靠谱客的博主 复杂悟空,最近开发中收集的这篇文章主要介绍2020-08-19,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

我在运行sh compile_op.sh时遇到下列错误,请问该怎么做

running install
running build
running build_ext
cythoning knn.pyx to knn.cpp
/home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive ‘language_level’ not set, using 2 for now (Py2). This will change in a later release! File: /home/nvidia/anaconda3/envs/randlanet2/RandLA-Net-master/utils/nearest_neighbors/knn.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building ‘nearest_neighbors’ extension
creating build
creating build/temp.linux-x86_64-3.5
gcc -pthread -B /home/nvidia/anaconda3/envs/randlanet2/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./ -I/home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/numpy/core/include -I/home/nvidia/anaconda3/envs/randlanet2/include/python3.5m -c knn.cpp -o build/temp.linux-x86_64-3.5/knn.o -std=c++11 -fopenmp
**

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++

**
In file included from /home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
from /home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from knn.cpp:612:
/home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " “#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION” [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^
gcc -pthread -B /home/nvidia/anaconda3/envs/randlanet2/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./ -I/home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/numpy/core/include -I/home/nvidia/anaconda3/envs/randlanet2/include/python3.5m -c knn_.cxx -o build/temp.linux-x86_64-3.5/knn_.o -std=c++11 -fopenmp
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from knn_.cxx:6:0:
KDTreeTableAdaptor.h: In instantiation of ‘KDTreeTableAdaptor<TableType, num_t, DIM, Distance, IndexType>::KDTreeTableAdaptor(size_t, size_t, const TableType*, int) [with TableType = float; num_t = float; int DIM = -1; Distance = nanoflann::metric_L2; IndexType = long unsigned int; size_t = long unsigned int]’:
knn_.cxx:28:40: required from here
KDTreeTableAdaptor.h:131:19: warning: ‘KDTreeTableAdaptor<float, float>::m_data’ will be initialized after [-Wreorder]
const TableType* m_data;
^
KDTreeTableAdaptor.h:129:9: warning: ‘size_t KDTreeTableAdaptor<float, float>::dim’ [-Wreorder]
size_t dim;
^
KDTreeTableAdaptor.h:134:2: warning: when initialized here [-Wreorder]
KDTreeTableAdaptor(const size_t npts, const size_t dim, const TableType* mat,
^
creating build/lib.linux-x86_64-3.5
g++ -pthread -shared -L/home/nvidia/anaconda3/envs/randlanet2/lib -B /home/nvidia/anaconda3/envs/randlanet2/compiler_compat -Wl,-rpath=/home/nvidia/anaconda3/envs/randlanet2/lib,–no-as-needed build/temp.linux-x86_64-3.5/knn.o build/temp.linux-x86_64-3.5/knn_.o -o build/lib.linux-x86_64-3.5/nearest_neighbors.cpython-35m-x86_64-linux-gnu.so -std=c++11 -fopenmp
running install_lib
creating lib
creating lib/python
copying build/lib.linux-x86_64-3.5/nearest_neighbors.cpython-35m-x86_64-linux-gnu.so -> ./lib/python
running install_egg_info
Writing ./lib/python/KNN_NanoFLANN-0.0.0-py3.5.egg-info
running build_ext
building ‘grid_subsampling’ extension
Warning: Can’t read registry to find the necessary compiler setting
Make sure that Python modules winreg, win32api or win32con are installed.
C compiler: gcc -pthread -B /home/nvidia/anaconda3/envs/randlanet2/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

creating build
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/cpp_wrappers
creating build/temp.linux-x86_64-3.5/cpp_wrappers/cpp_utils
creating build/temp.linux-x86_64-3.5/cpp_wrappers/cpp_utils/cloud
creating build/temp.linux-x86_64-3.5/grid_subsampling
compile options: ‘-I/home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/numpy/core/include -I/home/nvidia/anaconda3/envs/randlanet2/include/python3.5m -c’
extra options: ‘-std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0’
gcc: wrapper.cpp
gcc: …/cpp_utils/cloud/cloud.cpp
gcc: grid_subsampling/grid_subsampling.cpp
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
from /home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from wrapper.cpp:2:
/home/nvidia/anaconda3/envs/randlanet2/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " “#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION” [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^
grid_subsampling/grid_subsampling.cpp: In function ‘void grid_subsampling(std::vector&, std::vector&, std::vector&, std::vector&, std::vector&, std::vector&, float, int)’:
grid_subsampling/grid_subsampling.cpp:99:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < ldim; i++)
^
wrapper.cpp: In function ‘PyObject* grid_subsampling_compute(PyObject*, PyObject*, PyObject*)’:
wrapper.cpp:70:98: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
[] = {“points”, “features”, “classes”, “sampleDl”, “method”, “verbose”, NULL };
^


wrapper.cpp:70:98: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] wrapper.cpp:70:98: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] wrapper.cpp:70:98: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] wrapper.cpp:70:98: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] wrapper.cpp:70:98: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]*


g++ -pthread -shared -L/home/nvidia/anaconda3/envs/randlanet2/lib -B /home/nvidia/anaconda3/envs/randlanet2/compiler_compat -Wl,-rpath=/home/nvidia/anaconda3/envs/randlanet2/lib,–no-as-needed build/temp.linux-x86_64-3.5/cpp_wrappers/cpp_utils/cloud/cloud.o build/temp.linux-x86_64-3.5/grid_subsampling/grid_subsampling.o build/temp.linux-x86_64-3.5/wrapper.o -o /home/nvidia/anaconda3/envs/randlanet2/RandLA-Net-master/utils/cpp_wrappers/cpp_subsampling/grid_subsampling.cpython-35m-x86_64-linux-gnu.so

最后

以上就是复杂悟空为你收集整理的2020-08-19的全部内容,希望文章能够帮你解决2020-08-19所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(44)

评论列表共有 0 条评论

立即
投稿
返回
顶部