Install OpenCV 2.4.8 ubuntu
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?
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?
Hi there, You can try installing using this link:click here
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.
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?
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/
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
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]
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
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 :
Congratulations!!!!!!.Let's start with the actual coding.Best luck :)
Asked: 2014-02-27 08:30:55 -0600
Seen: 4,357 times
Last updated: Feb 27 '14
It would be nice if you post your exact problem,I mean the point where the installation is stopping.