hoboh hoboh - 9 months ago 115
C++ Question

Uninstall OpenCV 3.0.0 from Ubuntu14.04

I want to use surffeature with

on Ubuntu, but I didn't install
at first. When I tried to install
, it failed. So I intend to uninstall
, and reinstall it with
. I just delete the build file which was built during the installing
. Then I type :

make uninstall

in terminal. It failed again, the error information is :

CMake Error at cmake_uninstall.cmake:20 (MESSAGE): Problem when
removing "/usr/local/include/opencv2/cvconfig.h"

I found I should type :

make uninstall

instead of remove build file, but it's already done.

I installed opencv3.0.0 with the following instruction

sudo apt-get install build-essential
sudo apt-get install git libgtk2.0-dev libavcodec-dev libavformat-dev libtiff4-dev libswscale-dev libjasper-dev
sudo apt-get install pkg-config
cmake .
mkdir build
cd build
cmake -D WITH_IPP=OFF ..
make ..
sudo make install
cd /etc/ld.so.conf.d
sudo /bin/bash -c 'echo "/usr/local/lib" /etc/ld.so.conf.d/opencv.conf'

sudo ldconfig -v

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

What should I do now ?

Answer Source

I delete all the opencv files, including source file and installed file under /usr/local, finally re-install opencv