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

There is an error in the generated so file, why? #2

Open
mantou22 opened this issue Nov 28, 2019 · 4 comments
Open

There is an error in the generated so file, why? #2

mantou22 opened this issue Nov 28, 2019 · 4 comments

Comments

@mantou22
Copy link

There is an error in the generated so file, why?
Traceback (most recent call last):
File "run.py", line 4, in
import cfar
ImportError: /usr/local/lib/python3.5/dist-packages/cfar.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZN2cv6dilateERKNS_11_InputArrayERKNS_12_OutputArrayES2_NS_6Point_IiEEiiRKNS_7Scalar_IdEE

@mantou22
Copy link
Author

mantou22 commented Dec 4, 2019

What's your opencv version, please?

@mantou22
Copy link
Author

Hello, please reply after you see it.

@nasir6
Copy link
Owner

nasir6 commented Jan 23, 2020

Hi @mantou22 apology you are facing issues compiling the code. Do you have required libraries used in setup.py? Also I used opencv3.

@laoyandujiang
Copy link

laoyandujiang commented Mar 30, 2020

@mantou22 I also meet the same problem, which is caused by lacking two opencv libraties, i.e., opencv_imgproc and opencv_imgcodecs in my situation. The solution is adding them in the dependent libraries. Specifically, change the line 16 of setup.py as "libraries = ['opencv_core', 'opencv_imgproc', 'opencv_imgcodecs', 'opencv_highgui','opencv_video','opencv_videoio', 'gsl', 'gslcblas'],", and then recompile the code. Note the old generated folder "build" must be first deleted before the recompiling.

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

3 participants