Setting/Installing up OpenCV 2.4.6.1+ on Ubuntu 12.04.02

為{幸葍}努か 提交于 2019-11-28 19:44:36

Thanks for the information. I tried to run these commands but encountered several problems. I am using a brand new Ubuntu 12.04 install.

1) The first apt-get remove command asked me if I wanted to remove a lot of things that I wasn't comfortable removing, like LibreOffice. I didn't remove anything in this step, which I figured would be okay, since the only program I've installed is Java SDK and JRE. Why did you opt for such a large list of programs to remove?

2) Adding sudo to the git and tar commands was necessary.

3) When installing opus and ffmpeg, there were many error messages for the ./configure command because of a lack of permission for writing and ultimately the configurations failed.

Anyways, just thought I would log these problems on the post in the hopes that it will improve the procedure listed above.

To install OpenCV on Ubuntu from http://namhuy.net/1205/how-to-install-opencv-on-ubuntu.html

$ su -
# apt-get update
# apt-get install build-essential
# apt-get install libavformat-dev
# apt-get install x264 v4l-utils ffmpeg
# apt-get install libcv2.3 libcvaux2.3 libhighgui2.3 python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev

Here is my blog post on installing OpenCV with it's many dependencies ie Cuda, OpenNI, Gstreamer, ffmpeg, QT5, ... ect. http://drewski1992.blogspot.com/2014/04/install-opencv-24x-with-cuda-55-or-6.html

Following this should give you a full OpenCV build.

LHBD

thanks for the info. I installed everything in Ubuntu 13.04 and ran into a problem when trying to use the gcv shortcut. Using the

g++ `pkg-config --cflags --libs opencv`

shortcut works perfectly. Previously I had to link all the libraries manually in a Makefile so this is still much better. Appreciate you sharing the info, thanks!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!