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

build command #1

Open
Ar-Ray-code opened this issue Oct 15, 2022 · 2 comments
Open

build command #1

Ar-Ray-code opened this issue Oct 15, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@Ar-Ray-code
Copy link
Owner

Ar-Ray-code commented Oct 15, 2022

Installation.md

# install librealsense-dependencies
sudo apt-get install git libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev -y

# clone project
git clone https://github.com/IntelRealSense/librealsense.git
# copy rules
cd librealsense/
sudo ./scripts/setup_udev_rules.sh
# > press enter

# build command
mkdir build
cd build

cmake -DBUILD_EXAMPLES=false -DUILD_GRAPHICAL_EXAMPLES=false -DBUILD_WITH_OPENMP=true -DBUILD_PYTHON_BINDINGS=true -DFORCE_LIBUVC=true -DCMAKE_BUILD_TYPE=Release ..

make -j4
sudo make install
sudo ldconfig
@Ar-Ray-code Ar-Ray-code added the documentation Improvements or additions to documentation label Oct 15, 2022
@Ar-Ray-code
Copy link
Owner Author

To add cmake path, run following command.

export realsense2_DIR=/usr/local/lib/aarch64-linux-gnu/cmake/realsense2/
export OpenCV_DIR=/usr/lib/aarch64-linux-gnu/cmake/opencv4/

@Ar-Ray-code
Copy link
Owner Author

Ar-Ray-code commented Nov 22, 2022

Example header file. realsense_utils.hpp

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

No branches or pull requests

1 participant