c++ - Installing OpenCV with GUI on Ubuntu -


it seems have messed things up. forgot install dependencies of opencv on ubuntu. specific, want install opencv on ubuntu 14.04 gui support. noticed there package named gtk+-2.0 required opencv. did

sudo apt-get install libgtk2.0-dev  

or thing that. installed alright. installed other dependencies specified here.

however, when run cmake according tutorial, says that

gtk+-2.0` not found  

so opencv built without gui support. there environmental variable should set before run cmake?

i can detect gtk+-2.0 by

pkg-config --modversion gtk+-2.0` 

which outputs 2.24.23. also, remember adding search path gtk+-2.0, thing

/usr/lib/x86_64-linux-gnu/pkgconfig 

is there this?

thanks.

install dependencies

sudo apt-get install build-essential checkinstall cmake pkg-config yasm  sudo apt-get install libtiff4-dev libjpeg-dev libjasper-dev  sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev  sudo apt-get install python-dev python-numpy  sudo apt-get install libtbb-dev  sudo apt-get install libqt4-dev libgtk2.0-dev 
  1. sudo wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip
  2. unzip opencv-2.4.9.zip
  3. cd opencv-2.4.9
  4. mkdir build
  5. cd build sudo cmake -d with_tbb=on -d build_new_python_support=on -d with_v4l=on -d install_c_examples=on -d install_python_examples=on -d build_examples=on -d with_qt=on -d with_opengl=on -d with_vtk=on
  6. sudo make
  7. sudo make install

Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -