0x00 问题
在运行基于MultiNet的车辆检测KittiBox(https://github.com/MarvinTeichmann/KittiBox)时,按照作者的说明配置后,产生错误:
搜索可得,_Py_ZeroStruct类型的错误往往由于编译链接库文件的python版本与运行时的python 解释器版本不一致,我用python3.5运行demo.py,在utils文件夹下编译stitch_rects.cpp,hungarian.cpp,编译结果如下:
util目录下的makefile文件为:
SHELL := /bin/bash
.PHONY: all-python2 all-python3
all-python2:
pip install runcython
makecython++ stitch_wrapper.pyx "" "stitch_rects.cpp ./hungarian/hungarian.cpp"
all-python3:
pip3 install runcython3
makecython3++ stitch_wrapper.pyx "" "stitch_rects.cpp ./hungarian/hungarian.cpp"
对应看一下,应该是用makecython++编译了这两个文件。
0x01 分析
从makefile文件可以看到,存在使用ma