0
votes

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. The problem is that make uninstall does not exist. 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.

I tried make -n install but the make prints about 700 lines which is difficult to follow and reverse what happened.

I found install_manifest.txt file in build directory. 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.

1
General rules for me: try make uninstall. If it doesn't work, make install, copy-paste paths of installed files and delete them. If make install doesn't display which files it installed - see here: stackoverflow.com/questions/1506462/…. - strangeqargo
I tried make -n install but the make prints about 700 lines which is difficult to follow and reverse what happened. And also, would deleting files be enough, I mean environment variables might then be pointing at directories that does not exist for instance - Abdallah Sobehy
I'm voting to close this question as off-topic because unrelated to programming. - usr1234567
@AbdallahSobehy consider following chroot recipe. This way you can diff all changes made to a system, including env variables. You can chroot, git init, git add & commit, then make install and see every change made. Also, I doubt this library changed env. - strangeqargo
Thanks for your participation, however the install_manifest.txt file was the key to do it. you can check my answer @strangeqargo - Abdallah Sobehy

1 Answers

1
votes

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 :

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.