hukaixuan19970627 / yolov5_obb

yolov5 + csl_label.(Oriented Object Detection)(Rotation Detection)(Rotated BBox)基于yolov5的旋转目标检测
GNU General Public License v3.0
1.77k stars 421 forks source link

DOTA_devkit can't install properly #474

Open ghost opened 1 year ago

ghost commented 1 year ago

install issue

expected behavior

successfully install DOTA_devkit

situation description:

thanks for impressive work, it is such great contribution to community however though I followed instruction from install.md, it did not successfully install DOTA_devkit

reproduce the situation:

packages:

gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)

Python 3.8.10

newest main version on the date 2022/9/27

git branch -vv
* master b00c3f2 [origin/master] Update README.md

swig 4.0.1

SWIG Version 4.0.1

Compiled with g++ [x86_64-pc-linux-gnu]

Configured options: +pcre

pytorch 1.10.1+cu113

code:

inheriate from install.md

swig -c++ -python polyiou.i  #works fine without any output
#then , it has following situation
python setup.py build_ext --inplace
running build_ext
building '_polyiou' extension
gcc -pthread -B /root/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/miniconda3/include/python3.8 -c polyiou_wrap.cxx -o build/temp.linux-x86_64-3.8/polyiou_wrap.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /root/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/miniconda3/include/python3.8 -c polyiou.cpp -o build/temp.linux-x86_64-3.8/polyiou.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
polyiou.cpp: In function ‘double intersectArea(Point, Point, Point, Point)’:
polyiou.cpp:88:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   88 |     if(s1*s2==-1) res=-res;return res;
      |     ^~
polyiou.cpp:88:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   88 |     if(s1*s2==-1) res=-res;return res;
      |                            ^~~~~~
g++ -pthread -shared -B /root/miniconda3/compiler_compat -L/root/miniconda3/lib -Wl,-rpath=/root/miniconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.8/polyiou_wrap.o build/temp.linux-x86_64-3.8/polyiou.o -o /root/repo/yolov5_obb/DOTA_devkit/_polyiou.cpython-38-x86_64-linux-gnu.so
BrantonLiu commented 1 year ago

same here

ZZzero0O commented 1 year ago

存在一样的问题,想问您是怎么解决的呀?

XUAN6288 commented 7 months ago

存在一样的问题,请问有没有好的解决方法,谢谢

xuxiansheng2018 commented 5 months ago

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