简体   繁体   English

如何卸载gtsam库

[英]How to uninstall gtsam library

I have installed gtsam 4 library from : https://bitbucket.org/gtborg/gtsam.git and since I am facing troubles with compilation I want to uninstall it and link to a local version. 我已经从以下网址安装了gtsam 4库: https ://bitbucket.org/gtborg/gtsam.git,由于我在编译时遇到麻烦,因此我想将其卸载并链接到本地​​版本。 The problem is that make uninstall does not exist. 问题是make uninstall不存在。 Is there a way to remove it or at least make the local version be used instead of it. 有没有办法删除它,或者至少使用本地版本代替它。 In CmakeLists.txt I have include_directories and link_directories pointing to the local version but still the gtsam which is installed is the one that is used. 在CmakeLists.txt中,我有include_directorieslink_directories指向本地版本,但是仍然使用已安装的gtsam。

I tried make -n install but the make prints about 700 lines which is difficult to follow and reverse what happened. 我尝试了make -n install但是make可以打印约700行,这很难遵循并扭转发生的情况。

I found install_manifest.txt file in build directory. 我在构建目录中找到install_manifest.txt文件。 As I read here it contains all the files to be installed. 当我在这里阅读时它包含所有要安装的文件。 However. 然而。 I noticed that most of the files are .h and some are .cmake I do not know if just deleting those files will fix the problem or is going to mess it up. 我注意到大多数文件是.h ,有些文件是.cmake我不知道只是删除这些文件是否可以解决问题或将其弄乱。

This answer which is not the top one did the trick, it suggested to remove the files specified in the install_manifest.txt file using the following command : 这个答案不是最重要的答案 ,它建议使用以下命令删除install_manifest.txt文件中指定的文件:

cat install_manifest.txt | xargs echo sudo rm | sh

However, it has to be noted that in the comments, it is said it can be dangerous if the install_manifest had important files, so it is essential to have a look what is written there. 但是,必须指出的是,在注释中,如果install_manifest具有重要文件可能会很危险,因此查看其中写入的内容至关重要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM