Here are instructions for installation of Opencv 2.3.1 on Ubuntu 12.04 Precise Pangolin. For opencv installation we need FFmpeg, x264, v4l and their dependencies. It is a bit longer process as compared to windows installations. Step by step process is shown below.
1. Install dependencies for FFmpeg and x264
Enter following lines in terminal to check and install dependencies.
2. Install Gstreamer by entering following lines in terminal
3. Download recent version (0.8+)of FFmpeg from https://github.com/FFmpeg/FFmpeg extract it and go to the directory. Now configure and install FFmpeg by entering following commons one by one.
4. Install recent version of x264 from ftp://ftp.videolan.org/pub/videolan/x264/snapshots/ extract it and go to the directory. Now configure and install x264 by entering following commons one by one.
5. Download video for linux v4l libs from http://www.linuxtv.org/downloads/v4l-utils/ extract it and go to the directory. Install v4l using following command.
6. Install gtk libs using apt-get
7. Install libjpeg using following command
8. Now our dependencies are complete. We can install Opencv now. Download Opencv from http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/ Extract it and go to the directory. Enter following command to configure and install Opencv
We are done with installing Opencv on ubuntu 12.04 Precise Pangolin. In order to set path open /etc/bash.bashrc using your favorite text editor and add following lines
Restart your system and you are ready to use awesome Opencv!
1. Install dependencies for FFmpeg and x264
Enter following lines in terminal to check and install dependencies.
sudo apt-get install build-essential checkinstall git cmake libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev
2. Install Gstreamer by entering following lines in terminal
sudo apt-get install libgstreamer0.10-0 libgstreamer0.10-dev gstreamer0.10-tools gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-dev gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-ffmpeg
3. Download recent version (0.8+)of FFmpeg from https://github.com/FFmpeg/FFmpeg extract it and go to the directory. Now configure and install FFmpeg by entering following commons one by one.
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab make sudo make install
4. Install recent version of x264 from ftp://ftp.videolan.org/pub/videolan/x264/snapshots/ extract it and go to the directory. Now configure and install x264 by entering following commons one by one.
./configure --enable-static make sudo make install
5. Download video for linux v4l libs from http://www.linuxtv.org/downloads/v4l-utils/ extract it and go to the directory. Install v4l using following command.
make sudo make install
6. Install gtk libs using apt-get
sudo apt-get install libgtk2.0-0 libgtk2.0-dev
7. Install libjpeg using following command
sudo apt-get install libjpeg62 libjpeg62-dev
8. Now our dependencies are complete. We can install Opencv now. Download Opencv from http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/ Extract it and go to the directory. Enter following command to configure and install Opencv
mkdir build cd build cmake .. make sudo make install
We are done with installing Opencv on ubuntu 12.04 Precise Pangolin. In order to set path open /etc/bash.bashrc using your favorite text editor and add following lines
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig export PKG_CONFIG_PATH
Restart your system and you are ready to use awesome Opencv!
Hi.. I am entirely new to ubuntu and opencv...
ReplyDeleteI am trying to install opencv but in first step only i am getting following error...
---------------------------------------------------------
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
--------------------------------------------------------
Please tell me now what should i do??
Close any other software installing or repository accessing software like Software Center or Synaptic Manager and then try to execute.
DeleteOpencv Lover: Install Opencv 2.3.1 On Ubuntu 12.04 Precise Pangolin >>>>> Download Now
Delete>>>>> Download Full
Opencv Lover: Install Opencv 2.3.1 On Ubuntu 12.04 Precise Pangolin >>>>> Download LINK
>>>>> Download Now
Opencv Lover: Install Opencv 2.3.1 On Ubuntu 12.04 Precise Pangolin >>>>> Download Full
>>>>> Download LINK iT
cant be install ffmpeg too from repository like (sudo apt-get install ffmpeg)?
ReplyDeletehi..
ReplyDeleteplease can you help me to find what i should download from the link of ffmpeg, there is a lot of things so i can't find my goal :(
when i insert the instruction of ./configure, i'm getting the following error:
bash: ./configure: Aucun fichier ou dossier de ce type
please, can u help me!
Hi..
ReplyDeleteMy webcam is not working. Its giving error like
vidioc_querymenu invalid argument
vidioc_querymenu invalid argument
vidioc_querymenu invalid argument
Any solution for this?
root@xxx:/home/xxx/Downloads/OpenCV-2.4.4/build# make
ReplyDelete[ 5%] Built target libtiff
[ 8%] Built target libjasper
[ 16%] Built target IlmImf
[ 16%] Built target opencv_core_pch_dephelp
[ 16%] Built target pch_Generate_opencv_core
[ 19%] Built target opencv_core
[ 19%] Built target opencv_ts_pch_dephelp
[ 19%] Built target pch_Generate_opencv_ts
[ 19%] Built target opencv_imgproc_pch_dephelp
[ 19%] Built target pch_Generate_opencv_imgproc
[ 24%] Built target opencv_imgproc
[ 25%] Built target opencv_flann_pch_dephelp
[ 26%] Built target pch_Generate_opencv_flann
[ 26%] Built target opencv_flann
[ 26%] Built target opencv_highgui_pch_dephelp
[ 26%] Built target pch_Generate_opencv_highgui
Linking CXX shared library ../../lib/libopencv_highgui.so
/usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32S against `av_destruct_packet' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: ** [lib/libopencv_highgui.so.2.4.4] Erro 1
make[1]: ** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Erro 2
make: ** [all] Erro 2
help-me, please ;(
try an earlier version of OpenCV. I had the same problem as you with OpenCV 3.0.0 and 2.4.10, but I had no issues with 2.4.9
Deletei have the same problem too please help
ReplyDeletesame here please help :(
ReplyDeleteI just followed your instruction on headless 64-bit Ubuntu 12.04.1 and it worked perfectly. Any other instructions failed with ("relocation R_X86_64_32S against.."). I suspect building the dependencies from source helped a lot.
ReplyDeleteI've received the same error as above. Could you please elaborate on it?
ReplyDeleteI think I followed the instructions exactly on Ubuntu 12.04 LTS headless. However, ffmpeg will not build and complains: "ERROR: libx264 not found". Which makes sense as x264 is built later, right? Please explain.
ReplyDeleteAlso, as a general question, why is OpenCV so incredibly hard to install? Software should be different.
Oh, and this:
ReplyDeleteroot@...:~/dev/x264/x264-snapshot-20141205-2245-stable# ./configure --enable-static
Found yasm 1.1.0.2352
Minimum version is yasm-1.2.0
If you really want to compile without asm, configure with --disable-asm.
I'm sorry, but it seems the instrucitons on this page are full of problems... the ./configure line is missing in the v4l segment. Also, v4l doesn't compile ("cannot find jpeglib.h"), at least not with "./configure" without options.
ReplyDeleteHow could anyone succeed using these instructions?
...and finally the "relocation against" bug mentioned above hit me too.
ReplyDeleteI'm sorry but these instructions are not useful.
I was married at 32 and immediately tried to get pregnant. When I was unable to conceive I had blood tests for fertility and was told that I had an FSH (follicle stimulating hormone) of 54 and would not be able to have children. Even though the doctors knew that I had been diagnosed with Hashimoto’s thyroiditis since age 25, no one bothered to check my thyroid levels. my TSH was measured at .001. My Synthroid dosage was lowered. a friend advise me to contact a spiritualist who help with fertility with his medicine, i collected his contact and explain my situation to him he prepared for me a herbal medicine which i took as describe by him. became pregnant very quickly, I had a successful pregnancy. I have my baby august 2017. to get pregnant at age 35 with my 2nd child in september 2019, thank you sir , this is his email contact if you require his help babaka.wolf@gmail.com or Facebook at priest.babaka
ReplyDeleteOpencv Lover: Install Opencv 2.3.1 On Ubuntu 12.04 Precise Pangolin >>>>> Download Now
ReplyDelete>>>>> Download Full
Opencv Lover: Install Opencv 2.3.1 On Ubuntu 12.04 Precise Pangolin >>>>> Download LINK
>>>>> Download Now
Opencv Lover: Install Opencv 2.3.1 On Ubuntu 12.04 Precise Pangolin >>>>> Download Full
>>>>> Download LINK
Gümüşhane
ReplyDeleteKaraman
Kocaeli
Sakarya
Samsun
S6HWC1
görüntülü.show
ReplyDeletewhatsapp ücretli show
A5JLP
https://titandijital.com.tr/
ReplyDeletekütahya parça eşya taşıma
siirt parça eşya taşıma
tekirdağ parça eşya taşıma
adana parça eşya taşıma
BQZV2
ankara parça eşya taşıma
ReplyDeletetakipçi satın al
antalya rent a car
antalya rent a car
ankara parça eşya taşıma
UEGG
269C5
ReplyDeleteDenizli Parça Eşya Taşıma
Mardin Lojistik
Antep Parça Eşya Taşıma
Adıyaman Lojistik
Sivas Lojistik
7392E
ReplyDeleteHatay Parça Eşya Taşıma
Hatay Evden Eve Nakliyat
Kalıcı Makyaj
Bursa Evden Eve Nakliyat
Ağrı Evden Eve Nakliyat
Gölbaşı Fayans Ustası
Afyon Evden Eve Nakliyat
Coinex Güvenilir mi
Tunceli Lojistik
064F2
ReplyDeleteMuğla Evden Eve Nakliyat
pharmacy steroids for sale
Adıyaman Evden Eve Nakliyat
Edirne Evden Eve Nakliyat
Silivri Çatı Ustası
masteron for sale
Kripto Para Borsaları
order trenbolone enanthate
Çankırı Evden Eve Nakliyat
C70ED
ReplyDeleteOsmaniye Parça Eşya Taşıma
Mersin Lojistik
Osmaniye Lojistik
Mardin Parça Eşya Taşıma
Aksaray Şehir İçi Nakliyat
Ordu Parça Eşya Taşıma
Siirt Parça Eşya Taşıma
Afyon Evden Eve Nakliyat
Tekirdağ Evden Eve Nakliyat
C5C53
ReplyDeleteÜnye Çatı Ustası
Baby Doge Coin Hangi Borsada
Karaman Şehirler Arası Nakliyat
Niğde Evden Eve Nakliyat
Tekirdağ Çatı Ustası
Chat Gpt Coin Hangi Borsada
Bartın Şehirler Arası Nakliyat
Muş Parça Eşya Taşıma
Aydın Şehirler Arası Nakliyat
FE389
ReplyDeleteAntalya Rent A Car
Çankaya Boya Ustası
Samsun Evden Eve Nakliyat
Sakarya Şehirler Arası Nakliyat
Pursaklar Boya Ustası
Osmaniye Şehir İçi Nakliyat
Kırıkkale Şehirler Arası Nakliyat
Denizli Şehir İçi Nakliyat
Silivri Duşa Kabin Tamiri
BAD78
ReplyDeletetestosterone enanthate
clenbuterol for sale
order parabolan
order trenbolone enanthate
buy testosterone propionat
order sustanon
order steroid cycles
order pharmacy steroids
fat burner for sale
45A22
ReplyDeleteKripto Para Madenciliği Siteleri
Lunc Coin Hangi Borsada
Parasız Görüntülü Sohbet
Mexc Borsası Kimin
Soundcloud Dinlenme Satın Al
Twitter Beğeni Satın Al
Telegram Abone Hilesi
Onlyfans Takipçi Satın Al
Twitch Takipçi Satın Al
AE6B2
ReplyDeleteReferans Kimliği Nedir
Bitcoin Kazanma
Binance Referans Kodu
Pinterest Takipçi Hilesi
Coin Madenciliği Siteleri
Görüntülü Sohbet
Ön Satış Coin Nasıl Alınır
Coin Nedir
Facebook Takipçi Satın Al
D3096
ReplyDeletequickswap
poocoin
arbitrum
arculus
shiba
poocoin
dexscreener
ledger desktop
galagames
0B5F8513FB
ReplyDeletetürk takipçi
58156AF79B
ReplyDeletetiktok takipçi satın al