dingjiansw101 / AerialDetection

Apache License 2.0
786 stars 183 forks source link

按照INSTALL操作,编译不过,这是啥原因 #108

Open mahxn0 opened 9 months ago

mahxn0 commented 9 months ago

running build_ext building 'poly_nms_cuda' extension creating /maxiangjun/AerialDetection/mmdet/ops/poly_nms/build creating /maxiangjun/AerialDetection/mmdet/ops/poly_nms/build/temp.linux-x86_64-3.8 creating /maxiangjun/AerialDetection/mmdet/ops/poly_nms/build/temp.linux-x86_64-3.8/src Emitting ninja build file /maxiangjun/AerialDetection/mmdet/ops/poly_nms/build/temp.linux-x86_64-3.8/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.10.2.git.kitware.jobserver-1 creating build/lib.linux-x86_64-3.8 x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 /maxiangjun/AerialDetection/mmdet/ops/poly_nms/build/temp.linux-x86_64-3.8/src/poly_nms_cuda.o /maxiangjun/AerialDetection/mmdet/ops/poly_nms/build/temp.linux-x86_64-3.8/src/poly_nms_kernel.o -L/usr/local/lib/python3.8/dist-packages/torch/lib -L/usr/local/cuda/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda_cu -ltorch_cuda_cpp -o build/lib.linux-x86_64-3.8/poly_nms_cuda.cpython-38-x86_64-linux-gnu.so x86_64-linux-gnu-g++: error: /maxiangjun/AerialDetection/mmdet/ops/poly_nms/build/temp.linux-x86_64-3.8/src/poly_nms_cuda.o: No such file or directory x86_64-linux-gnu-g++: error: /maxiangjun/AerialDetection/mmdet/ops/poly_nms/build/temp.linux-x86_64-3.8/src/poly_nms_kernel.o: No such file or directory error: command 'x86_64-linux-gnu-g++' failed with exit status 1

mahxn0 commented 9 months ago

gcc (Ubuntu 7.5.0-6ubuntu2) 7.5.0 torch 1.9 mmcv 1.3

mahxn0 commented 9 months ago

.o编译到哪去了 

mahxn0 commented 9 months ago

为啥根本没有生成.o