-
Notifications
You must be signed in to change notification settings - Fork 22
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
Comments
What's your opencv version, please? |
Hello, please reply after you see it. |
Hi @mantou22 apology you are facing issues compiling the code. Do you have required libraries used in setup.py? Also I used opencv3. |
@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. |
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
The text was updated successfully, but these errors were encountered: