Ask Your Question
0

Error when following instructions

asked 2016-02-10 05:58:27 -0600

Borja gravatar image

I have followed exactly the instructions indicated at http://docs.opencv.org/2.4/doc/tutori... for a Kubuntu 15.10 Using Eclipse 3.8. Every thing went perfect until I build the example. At that moment I got 3 errors:

Description Resource Path Location Type undefined reference to `main' DisplayImage line 114, external location: /build/buildd/glibc-2.21/sysdeps/x86_64/start.S C/C++ Problem make: * [DisplayImage] Error 1 DisplayImage C/C++ Problem recipe for target 'DisplayImage' failed makefile /DisplayImage/Debug line 45 C/C++ Problem

I understand these are not related to neither the configuration actions nor the C++ Code. Please which could be the problem?

Thanks i advance / Borja

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-03 11:05:08 -0600

In the linker just link the following files as of now

opencv_imgcodec
opencv_imgproc
opencv_highgui 
opencv_core

and gradually link the other files. The following files object i couldn't link

opencv_legacy
opencv_contrib

I guess that was the error. And make also remove

#include<cv.h>
#include<highgui.h>

to

#include<opencv2/opencv.hpp>

.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-10 05:58:27 -0600

Seen: 138 times

Last updated: Feb 10 '16