belltailjp / selective_search_py

Python-based implementation of the Selective Search for Object Recognition.
MIT License
368 stars 121 forks source link

import segment undefined symbol:_ZN5boost5numpy5emptyEiPKlRKNS0_5dtypeE #15

Closed nhfmaster closed 8 years ago

nhfmaster commented 8 years ago

When running ./demo_showcandidates.py image.jpg, I got a problem.

Traceback (most recent call last): File "./demo_showcandidates.py", line 12, in import selective_search File "/home/nhfmaster/git/selective_search_py/selective_search.py", line 10, in import segment ImportError: /home/nhfmaster/git/selective_search_py/segment.so: undefined symbol: _ZN5boost5numpy5emptyEiPKlRKNS0_5dtypeE

Why did it happen? While compiling the C++ program, I've added needed libs.(only use make can't build successfully) Following is my build order:

g++ -fPIC -c -o segment.o segment_py.cpp -I/home/anaconda2/include/python2.7 -I/home/git/selective_search_py/segment -I/usr/local/boost/lib -lpython2.7 -lboost_python

Hope you can help me!!!

nhfmaster commented 8 years ago

It was solved. So just forget it.

Patrickctyyx commented 5 years ago

@nhfmaster Could you please tell me how do you solve this problem? Thanks a lot!

Hun-ger commented 5 years ago

It was solved. So just forget it.

Could you please tell me how do you solve this problem? Thanks a lot!

tltsilveira commented 4 years ago

Anyone solved this problem?