Ask Your Question
1

Install OpenCV 2.4.8 ubuntu

asked 2014-02-27 08:30:55 -0600

residentelvio gravatar image

I try with http://answers.opencv.org/question/26250/opencv-linux-installation/

but doesn t workk. Howewer I had a previous version on my ububtu. do I have ti delete it before? How?

edit retag flag offensive close merge delete

Comments

It would be nice if you post your exact problem,I mean the point where the installation is stopping.

Abhishek Kumar Annamraju gravatar imageAbhishek Kumar Annamraju ( 2014-02-27 08:42:53 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-02-27 08:42:14 -0600

Hi there, You can try installing using this link:click here

edit flag offensive delete link more

Comments

Do I have to delete the previous version?

residentelvio gravatar imageresidentelvio ( 2014-02-27 08:54:07 -0600 )edit
1

When I upgraded from 2.2 to 2.4.6.1 last year,I did not delete the older version and sometimes errors occurred as the compiler was not able to detect from the older and newer version of libraries.I would prefer you delete the older version completely from the system.

Abhishek Kumar Annamraju gravatar imageAbhishek Kumar Annamraju ( 2014-02-27 08:59:12 -0600 )edit

HI man, I did how you said. Now I recompile (a project that must work) and I have 100 errors of same type:

undefined reference to 'cv:: .......... " , where ....is a function with his input's type.

Maybe is it because I have to add in PROJECT-->PROPERTIES-->C/C++ BUILD-->SETTINGS the various libraries and includes....where can I find it?

residentelvio gravatar imageresidentelvio ( 2014-02-27 11:14:42 -0600 )edit

Its in ubuntu you are trying to install opencv,right?? If yes,

Open a terminal and type:

a)

sudo gedit /etc/ld.so.conf.d/opencv.conf

b)in that paste :

usr/local/lib

c)save and close and then open a terminal and type:

pkg-config --cflags opencv

Result:

-I/usr/local/include/opencv -I/usr/local/include

And then tpye:

pkg-config --libs opencv

If it shows library paths then the installation is complete,otherwise the installation was unsuccessful

If you could do with installing opencv 2.4.6 refer:http://abhishek4273.wordpress.com/2014/02/05/install-opencv/

Abhishek Kumar Annamraju gravatar imageAbhishek Kumar Annamraju ( 2014-02-27 11:49:18 -0600 )edit
1

it shows:

/usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_ocl.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_superres.so /usr/local/lib/libopencv_ts.a /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so -lrt -lpthread -lm -ldl

residentelvio gravatar imageresidentelvio ( 2014-02-27 13:01:09 -0600 )edit

Open a terminal and type

pkg-config --modversion opencv

If it says the current version is 2.4.8,then the installation is done nicely........try to compile your program using the command:

g++ -ggdb pkg-config --cflags opencv -o basename FILENAME.cpp .cpp FILENAME,cpp pkg-config --libs opencv

Again if you get the same error mail me the code from your project:[email protected]

Abhishek Kumar Annamraju gravatar imageAbhishek Kumar Annamraju ( 2014-02-27 13:37:20 -0600 )edit

Ok. I had the same problems and same errors. But adding libraries in setting of the cpp file it does not show any error now. But compiling I have this error in the Consolle (using Eclipse):

/home/elvio/workspace/main-cpp/Debug/main-cpp: error while loading shared libraries: libopencv_core.so.2.4: cannot open shared object file: No such file or directory

residentelvio gravatar imageresidentelvio ( 2014-02-27 14:44:52 -0600 )edit

I did some modification in the file opened with

sudo gedit /etc/ld.so.conf.d/opencv.conf

I added: / /usr/local/opencv/ then type: sudo ldconfig

Now Consolle in Eclipse give me : CAN NOT OPEN IMAGE FILE :

residentelvio gravatar imageresidentelvio ( 2014-02-27 15:21:21 -0600 )edit

I solved all the problems . Thanks

residentelvio gravatar imageresidentelvio ( 2014-02-27 17:20:02 -0600 )edit

Congratulations!!!!!!.Let's start with the actual coding.Best luck :)

Abhishek Kumar Annamraju gravatar imageAbhishek Kumar Annamraju ( 2014-02-27 21:40:47 -0600 )edit

Question Tools

Stats

Asked: 2014-02-27 08:30:55 -0600

Seen: 4,179 times

Last updated: Feb 27 '14