Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make uninstall #487

Open
J-Dunn opened this issue Aug 2, 2022 · 2 comments
Open

make uninstall #487

J-Dunn opened this issue Aug 2, 2022 · 2 comments

Comments

@J-Dunn
Copy link

J-Dunn commented Aug 2, 2022

could someone add an uninstall target ?

If I want to clean the installed files I have run make install and then manually go through the list to clean. This should not be necessary.
If it's any help to anyone here is what I needed to do on my system.

rm -rf /usr/local/include/Inventor /usr/local/include/So* /usr/local/share/Coin 
rm -rf /usr/local/lib64/libCoin* /usr/local/lib64/cmake/Coin*
rm /usr/local/bin/coin-config /usr/local/lib64/pkgconfig/Coin.pc
rm -rf /usr/local/lib64/pkgconfig /usr/local/lib64/cmake /usr/local/lib64/bpf # empty

This really ought to cleaned up properly by makefiles.
Thanks.

@luzpaz
Copy link
Contributor

luzpaz commented Aug 1, 2024

Yes, this would be appreciated

@VolkerEnderlein
Copy link
Collaborator

Most distributions are packaging coin and you can install and uninstall coin via the package manager of the distribution. But it seems you are building your coin from source. When configuring you can add -DCMAKE_INSTALL_PREFIX=/opt/local/coin3d to your cmake command line and coin will install in the given directory, not in the standard locations. When installing you can override this choice with DESTDIR option to make, e.g. make DESTDIR=/opt/local/mycoin install. Then uninstallation is simply deleting the installation directory. To make sure your programs find coin in nonstandard places you need to add it to your CMake command line via -DCMAKE_PREFIX_PATH=/opt/local/mycoin option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants