-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[install] There is no uninstall target created by CMake #619
Comments
There is currently no uninstall target created with CMake. It has not been implemented but this is what they explain on the wiki: https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#can-i-do-make-uninstall-with-cmake |
Thank you |
@FreddieOliveira: What about What do others think about implementing an uninstall target? |
Deleting the build directory would only purge the files inside it, leaving the ones added by the
Version 1.3.1 was released February 2017 whereas version 1.4 was released in July that year. There's no way I would remember exactly which files were added to my system when Although the @xor-gate solution ( |
I think this has changed over time. |
This issue is still present in recent releases. To reproduce follow the compiling manual. Basically:
This is the output: $ cat install_manifest.txt
/usr/local/lib/libstlink.so.1.6.0
/usr/local/lib/libstlink.so.1
/usr/local/lib/libstlink.so
/usr/local/lib/libstlink.a
/usr/local/bin/st-flash
/usr/local/bin/st-info
/usr/local/bin/st-util
/usr/local/lib/pkgconfig/stlink.pc
/usr/local/include/stlink.h
/usr/local/include/stm32.h
/usr/local/include/stlink/version.h
/usr/local/include/stlink/backend.h
/usr/local/include/stlink/chipid.h
/usr/local/include/stlink/commands.h
/usr/local/include/stlink/flash_loader.h
/usr/local/include/stlink/logging.h
/usr/local/include/stlink/mmap.h
/usr/local/include/stlink/reg.h
/usr/local/include/stlink/sg.h
/usr/local/include/stlink/usb.h
/usr/local/share/man/man1/st-util.1
/usr/local/share/man/man1/st-flash.1
/usr/local/share/man/man1/st-info.1 Despite providing an install method, the Makefile doesn't offer an unistall one. So, to manually uninstall it from the system you have to delete these files: |
Ah I see, but never did anything else than a simple |
As I said, the |
@FreddieOliveira: You may try that as well as a workaround until this is properly addressed. Taking note of this, I agree that if somebody closely follows all steps of the instruction (as you did), one would run into this problem. By the time implemented this was clearly not thought to the end. :-/ |
Let's see, if we can solve this in the next release... |
@FreddieOliveira: Can you test if this works correctly? |
Well these are two things: We have |
This may be related to #804. |
But I don't get it, https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#can-i-do-make-uninstall-with-cmake suggests modifying I took my time however to contribute helping you guys with this pull request: #907 |
No! I did implement that - look at the referenced commit (17 hours ago) just before I asked you to test. This targeted that commit of course. You seem to have tried with an older commit. |
Ooh, now I see. This was pushed into the Indeed it fixes, thanks. Closing the issue as well as the duplicated PR. Just to know, when you intend to merge this into the master branch? |
Good, so it's not related to #804 then. Yes, it will merge into the next release v1.6.1. You can track the related milestone. It's description should provide you with all info there is so far, including the release date (may be subject to change though, depending on progress). It is updated regularly so you should not worry to miss anything. If you want to keep track with current changes and fixes, please stay on the |
Fixed in commit e7ed76b. |
I'm upgrading from v1.3.1 to v1.4.0 in my Ubuntu 16.04 and I want to do a clean install. So I entered the v.1.3.1 folder that I had previously compiled and generated the Makefile and ran
make uninstall
but the rule uninstall doesn't exist. Is there an easy way to uninstall it that doesn't involve searching and deleting all files manually from my system?The text was updated successfully, but these errors were encountered: