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 build and use rs-sensor-control.cpp? #12675

Closed
IAMHAADICOOL opened this issue Feb 16, 2024 · 5 comments
Closed

How to build and use rs-sensor-control.cpp? #12675

IAMHAADICOOL opened this issue Feb 16, 2024 · 5 comments
Labels

Comments

@IAMHAADICOOL
Copy link

Can anyone please explain how to build and use the methods defined in rs-sensor-control.cpp?

@MartyG-RealSense
Copy link
Collaborator

Hi @IAMHAADICOOL Example programs in the RealSense SDK are built in a different way to scripts created by RealSense users. The examples are first built as a set of programs during installation of the librealsense SDK by including the flag -DBUILD_EXAMPLES=TRUE in the CMake build instruction, followed by the make instruction.

If one of the example programs is modified and the 'make' instruction input again, only the examples that have been modified are built and not the entire set of examples. More information about this can be found at #2946 and #6797

It is possible to copy the code from an SDK example such as rs-sensor-control into your own project but you typically end up with missing details in the CMakeLists.txt file that prevent the librealsense libraries from being found. #10715 (comment) has advice about creating a CMakeLists.txt file with the necessary linkages.

@IAMHAADICOOL
Copy link
Author

Thanks for help @MartyG-RealSense 😄

@MartyG-RealSense
Copy link
Collaborator

Hi @IAMHAADICOOL Do you require further assistance with this case, please? Thanks!

@IAMHAADICOOL
Copy link
Author

No, no, that should be it. You may close this issue 😄

@MartyG-RealSense
Copy link
Collaborator

Thanks very much for the update. As you suggested, I will close the issue. Thanks again!

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

No branches or pull requests

2 participants