-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
How to uninstall RealSense SDK 2.0 (which was installed using "building-from-source" method)? #7426
Comments
Hi @milan-r-shah Could you go to the build folder of your source-code installation of librealsense and run the instruction below, please: sudo make uninstall |
Hi @MartyG-RealSense , Thanks for your reply. I was also thinking about this command but got confused because in installation.md, before building the SDK (i.e. before running Also, the current kernel in my Ubuntu 18.04 LTS is 5.3.0-28-generic and I couldn't find any corresponding script in the |
My understanding is that the sudo make uninstall performs the uninstall, and the && make clean instruction that appears in the librealsense build instructions after that is for the purpose of cleaning up old files. So doing sudo make uninstall && make clean would likely be a good idea as an uninstall method. I would think that if you were using Ubuntu 18.04 then according to the installation instructions for building the SDK from source, you would use this LTS script, even though you have a generic kernel: ./scripts/patch-realsense-ubuntu-lts.sh |
Hi @MartyG-RealSense , One more thing, after uninstalling the SDK, if I decide to install the new version using backend method then I won't have to run the script you mentioned above, right? I have to just follow the steps you mentioned in #6940 (comment), isn't it? It would be really helpful if the RealSense team can add this part in the installation instruction for building-from-source method i.e. installation.md. |
Yes, once you have cleaned up, you should be able to perform the backend installation method with the instructions in #6940 (comment) Though the RSUSB backend method has advantages (especially if you have problems with installing using the normal instructions), it also has some disadvantages compared to kernel patching that mean that it may not be suitable for use in commercial products. Building with DKMS packages (the distribution installation method) therefore has the strongest official recommendation. The advantages and disadvantages of the backend and kernel-patching methods are compared in the link below. Scroll down to the section of the linked-to comment that is headed with What are the advantages and disadvantages of using libuvc vs patched kernel modules? |
Thanks again @MartyG-RealSense for a detailed response and for sharing important links. Also sorry, but now I have a few more confusions/queries:
So here, by kernel patching or DKMS packages or Distribution installation method, you meant the building-from-source method, right? And that method does the kernel patching, right? On the other hand, backend method does not, correct?
This backend method looks almost as same as building-from-source method, the only difference is |
Distribution (building librealsense from pre-built packages) Manual (building from source code) The RSUSB backend method belongs to the source-code type of build. A key difference between the Manual source-code method in the official documentation and the RSUSB process is that with RSUSB, dependencies are installed over an internet connection and so the build does not need to be patched. It therefore is not dependent on Linux versions or kernel versions and should be able to work with any flavor of Linux. As the advantage / disadvantage comparison makes clear though, it has various drawbacks compared to a patch-based build.
|
Hi @milan-r-shah Do you still require assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
Hi @MartyG-RealSense, Just wanted to add/request if you or RealSense team can add the instruction for Uninstalling & Upgrading the SDK (built from source) on the instruction page on installing the SDK by building from the source i.e. installation.md then it would great! Thanks again :) |
I would speculate that the source-code uninstall instruction (uninstall old version, clean up old files, install new version) is the way that the developers want it to be done, otherwise there would likely be a dedicated Uninstall heading like there is on the packages version of the instructions. sudo make uninstall && make clean && make && sudo make install |
Hi, However,
Can/ Should I just remove/delete this files? |
Hi @HartmannSa In the link below, a RealSense team member advises not to have multiple librealsense .so files installed. |
Hi, thanks for the advise. |
Since you have installed both source code and package versions of librealsense, do the errors that you are experiencing include Multiple udev-rules were found ? If so, the link below provides advice about deleting the rule in the /etc/udev folder but not the one in the /lib/udev folder to remove this error. |
Thanks for the tip. However, I get the following warnings when starting the realsense-viewer:
I found a similar issue #4971, however I use the following system (so not Kernel 4.16):
Created new issue for WarningsSince this no longer has anything to do with the actual topic of uninstalling, I created a new issue #8318 for these warnings. I am glad about further help. |
Issue Description
I had installed RealSense SDK 2.0 using building-from-source method by following installation.md. However, as I have been facing an issue #7313 I want to update the current SDK v2.36.0 to the latest one v2.38.1. So, for that, first, I want to uninstall the current SDK.
I found steps for uninstalling the SDK in distribution_linux.md but those are for the pre-built packages. I couldn't find similar steps for building-from-source installation method.
The text was updated successfully, but these errors were encountered: