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

How to upgrade RealSense SDK 2.0 (which was installed using "building-from-source" method)? #7427

Closed
milan-r-shah opened this issue Sep 25, 2020 · 4 comments

Comments

@milan-r-shah
Copy link

Required Info
Camera Model D435i
Firmware Version 05.12.06.00
Operating System & Version Linux (Ubuntu 18.04)
Kernel Version (Linux Only) 5.3.0-28-generic
Platform PC
SDK Version 2.0 (v2.36.0)
Language C++
Segment others

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, how can I directly upgrade this SDK to the latest version without uninstalling it?

I found steps for upgrading 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.

@milan-r-shah milan-r-shah changed the title How to upgrade RealSense SDK 2.0 (which was installed "building-from-source" method) How to upgrade RealSense SDK 2.0 (which was installed using "building-from-source" method) Sep 25, 2020
@milan-r-shah milan-r-shah changed the title How to upgrade RealSense SDK 2.0 (which was installed using "building-from-source" method) How to upgrade RealSense SDK 2.0 (which was installed using "building-from-source" method)? Sep 25, 2020
@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Sep 26, 2020

Hi @milan-r-shah I believe that upgrading on the distribution method is practical because it is compartmentalized into a very small number of packages. Whereas overwriting just some of the files on a source-code build with newer versions may lead to problems.

The standard procedure with the source code method of installation is, of course, to do an uninstall, clean and install with sudo make uninstall && make clean && make && sudo make install

If you are seeking to upgrade an existing version because of concern about the time that it takes to build the entire SDK, you can speed up the build process by using multiple cores of your computer's processor.

This is done by adding a -jx term to the make command, with 'x' representing the number of processor cores that can be used. librealsense recommends -j8, though more powerful high-end processors may be able to make use of higher values such as -j16. Bear in mind that on low-end devices, using -jx may cause the build to randomly hanf.

Googling for how many cores do i have provides information about how to determine how many cores your particular computer has.

Below is the -j8 version of the build instruction from the librealsense source-code install documentation:

sudo make uninstall && make clean && make -j8 && sudo make install

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Oct 5, 2020

Hi @milan-r-shah Do you still require assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

@milan-r-shah
Copy link
Author

Hi @MartyG-RealSense,
Sincere apology for not responding soon but I was quite occupied with some other tasks. Thank you so much for addressing my issue.

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 :)

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

No branches or pull requests

2 participants