Removing all installed OpenCV libs

前端 未结 8 843
花落未央
花落未央 2020-12-01 03:07

I\'m running Kubuntu 11.10 (w/ KDE 4.8)

Before you read all this :

I just want to remove all traces of OpenCV from my system, so I can start afresh..

<
8条回答
  •  醉话见心
    2020-12-01 03:42

    By default, when building OpenCV from source, it will place it's output in /usr/local/lib and /usr/local/bin. Although, judging from your error messages, it looks like it placed the libraries in /usr/lib and the binaries in /usr/bin, so you might also check in there.

    You can also use the Linux find command. So, to find all OpenCV libraries you can do the following (this might take a while):

    $> sudo find / -name "*opencv*" -exec rm -i {} \;
    

    The above command will find any file containing opencv in the name, and will prompt you to remove it. As always, be careful when deleting things manually!

    Another option might be to manually compile OpenCV again (exactly as you did before), make install to create the install manifest, and then try make uninstall to see if it will clean up itself.

    Hope that helps! :)

提交回复
热议问题