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

Linking Problems During Building #7

Open
NicolaCovallero opened this issue Jul 15, 2015 · 6 comments
Open

Linking Problems During Building #7

NicolaCovallero opened this issue Jul 15, 2015 · 6 comments

Comments

@NicolaCovallero
Copy link

Hi,

I have problems compiling the source codes. When I run cmake I have no errors. But when I do "make" I got this error:

/usr/bin/ld: CMakeFiles/BING_linux.dir/CmShow.cpp.o: undefined reference to symbol '_ZN2cv7imwriteERKNS_6StringERKNS_11_InputArrayERKSt6vectorIiSaIiEE'
/usr/local/lib/libopencv_imgcodecs.so.3.0: error adding symbols: DSO missing from command line

I found several post with other problems related to DSO missing, but none was helpful for me. Do you know how manage with this?

@bittnt
Copy link
Collaborator

bittnt commented Jul 20, 2015

Thanks for reporting this error. From your error message, It seems to be the error of opencv 3.0. Could you provide more detail information, e.g. ubuntu linux? gcc version? opencv version?

Current code was tested under ubuntu 14.04 and opencv 2.4.

Please let me know if you make any progress. Otherwise, I can try to reproduce your error later.

@NicolaCovallero
Copy link
Author

Hi, thanks for reply.

Your are right. The problem is due to the OpenCV 3. I uninstalled it today (working on another project), and now that you answered me I tried to compile the Objectness code and it compiled correctly. So the problem was definetively opencv 3.

I was not able to figure it out from that error message.

@bittnt
Copy link
Collaborator

bittnt commented Aug 27, 2015

It seems to be something to do with the image encoding libraries. Any error messages have you got?

@rockrush
Copy link

On opencv 3.x, add "opencv_imgcodecs" into last line of CMakeLists.txt, just before "EXTERNAL_LIBS"(the order doesn't matter).

@RyanCV
Copy link

RyanCV commented Jan 10, 2016

It works, thanks @rockrush . But how to solve the following problem:
OpenCV Error: Assertion failed (matRead(_modelName + ".xP", xP1f) && matRead(_modelName + ".xN", xN1f)) in trainStageI, file /media/BING_Linux/Src/Objectness.cpp, line 555
terminate called after throwing an instance of 'cv::Exception'
what(): /media/BING_Linux/Src/Objectness.cpp:555: error: (-215) matRead(_modelName + ".xP", xP1f) && matRead(_modelName + ".xN", xN1f) in function trainStageI

I download the OpenCV readable of VOC 2007 annotation could be download from: http://mmcheng.net/mftp/Data/VOC2007_AnnotationsOpenCV_Readable.7z. However, after unzip this file, it said wrong compress method. Have you ever met this problem?

@June01
Copy link

June01 commented Mar 1, 2016

@RyanCV @rockrush I also have this problem, how to solve the following problem:
OpenCV Error: Assertion failed (matRead(_modelName + ".xP", xP1f) && matRead(_modelName + ".xN", xN1f)) in trainStageI, file /media/BING_Linux/Src/Objectness.cpp, line 555
terminate called after throwing an instance of 'cv::Exception'
what(): /media/BING_Linux/Src/Objectness.cpp:555: error: (-215) matRead(_modelName + ".xP", xP1f) && matRead(_modelName + ".xN", xN1f) in function trainStageI

Thank you very much for your help!

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

5 participants