Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when make, generating cpu_nms.c is wrong? #41

Closed
clscy opened this issue May 10, 2017 · 3 comments
Closed

when make, generating cpu_nms.c is wrong? #41

clscy opened this issue May 10, 2017 · 3 comments

Comments

@clscy
Copy link

clscy commented May 10, 2017

hi.
I compile it with CPU, but in the fourth step, I compile some cython files in the root directory, this is a warning of make.
it is warning:

cython src/utils/cpu_nms.pyx
gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing
-I/usr/include/python2.7 -o src/utils/cpu_nms.so src/utils/cpu_nms.c
In file included from /usr/include/python2.7/numpy/ndarraytypes.h:1777:0,
from /usr/include/python2.7/numpy/ndarrayobject.h:18,
from /usr/include/python2.7/numpy/arrayobject.h:4,
from src/utils/cpu_nms.c:435:
/usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
rm -rf src/utils/cpu_nms.c

I hope to get your help. thanks.

@yingning
Copy link

I have the same warnings after I changed the Makefile line "-I/usr/include/python2.7" into "-I/home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include \ -I/home/jsj/anaconda2/include/python2.7 " And the address "-I/home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include \ -I/home/jsj/anaconda2/include/python2.7" is part of my PYTHON_INCLUDE path. I get the following warning:
cython src/utils/cpu_nms.pyx
gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing
-I/home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include
-I/home/jsj/anaconda2/include/python2.7 -o src/utils/cpu_nms.so src/utils/cpu_nms.c
In file included from /home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1788:0,
from /home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/utils/cpu_nms.c:274:
/home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
In file included from /home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:27:0,
from /home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/utils/cpu_nms.c:274:
/home/jsj/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1448:1: warning: ‘_import_array’ defined but not used [-Wunused-function]
_import_array(void)
^
rm -rf src/utils/cpu_nms.c.

Your kind heart will be appreciated,thanks in advance!

@yingning
Copy link

@tianzhi0549

@clscy
Copy link
Author

clscy commented May 11, 2017

even though there is the warning, the fifth step python tools/demo.py --no-gpu also run successfully.

@clscy clscy closed this as completed May 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants