coin3d / coin

Coin3D core library
BSD 3-Clause "New" or "Revised" License
292 stars 109 forks source link

make uninstall #487

Open J-Dunn opened 2 years ago

J-Dunn commented 2 years ago

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 commented 4 months ago

Yes, this would be appreciated

VolkerEnderlein commented 2 weeks ago

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.