eclipse 如何在 Ubuntu 中卸载 opencv?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13134151/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to uninstall opencv in Ubuntu?
提问by user1764367
I have the following system:
我有以下系统:
Linux 64 bit LTS 12.04
Linux 64 位 LTS 12.04
- I have multiple installations of opencv library on the system.
- I want to know the procedure to remove all opencv libraries from the system.
- I am having trouble while executing my program through Eclipse IDE.
- 我在系统上安装了多个 opencv 库。
- 我想知道从系统中删除所有 opencv 库的过程。
- 我在通过 Eclipse IDE 执行我的程序时遇到了问题。
Though I can build the project when I try to execute it, it gives the following error:
虽然我在尝试执行时可以构建该项目,但它给出了以下错误:
OpenCV Error: Assertion failed (k == STD_VECTOR_MAT) in release, file /build/buildd /opencv-2.3.1/modules/core/src/matrix.cpp, line 1364
terminate called after throwing an instance of 'cv::Exception'
what(): /build/buildd/opencv-2.3.1/modules/core/src/matrix.cpp:1364: error: (-215) k == STD_VECTOR_MAT in function release
Confusing thing is I am not able to find the path specified in the error i.e.
令人困惑的是我无法找到错误中指定的路径,即
/build/buildd/opencv-2.3.1/modules/core/src/matrix.cpp
I am able to compile the same source code using command line tool gcc and using pkg-config. However I am unable to do the same through eclipse IDE.
我能够使用命令行工具 gcc 和 pkg-config 编译相同的源代码。但是我无法通过 Eclipse IDE 做同样的事情。
回答by Damilola
You can also uninstall by going to the "build" folder directory of opencv from terminal, and execute the following
也可以通过终端进入opencv的“build”文件夹目录进行卸载,执行以下命令
make uninstall
cd ..
sudo rm -r build
sudo rm -r /usr/local/include/opencv2 /usr/local/include/opencv /usr/include/opencv /usr/include/opencv2 /usr/local/share/opencv /usr/local/share/OpenCV /usr/share/opencv /usr/share/OpenCV /usr/local/bin/opencv* /usr/local/lib/libopencv*
回答by isrish
I remember I used this command a while ago to remove all opencv related things. It is interactive which promote you to remove the file. choose y or n depending.Take your time and be-careful
我记得我前段时间用这个命令删除了所有与 opencv 相关的东西。它是交互式的,可促使您删除文件。选择 y 或 n 视情况而定。慢慢来,小心
$> sudo find / -name "*opencv*" -exec rm -i {} \;
回答by Mr. Kro
The correct way is cd /path/to/cv/build
then sudo make uninstall
. Of course you will have to have the source code with you
正确的方法是cd /path/to/cv/build
再sudo make uninstall
。当然,您必须随身携带源代码
I tried the exec rm thing but nothing changed. Also FYI, sudo apt-get remove libopencv-*
did not remove openCV for me
我尝试了 exec rm 的东西,但没有任何改变。也仅供参考,sudo apt-get remove libopencv-*
没有为我删除 openCV