Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ar_sandbox_lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AR_Sandbox
ar_sandbox_lib
Commits
b3b31cc9
Commit
b3b31cc9
authored
10 months ago
by
Alexis Durgnat
Browse files
Options
Downloads
Patches
Plain Diff
Add instructions for build
parent
4d86efa8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
BUILD_INSTRUCTIONS.md
+50
-0
50 additions, 0 deletions
BUILD_INSTRUCTIONS.md
Prereqs.sh
+4
-0
4 additions, 0 deletions
Prereqs.sh
prepare_build.sh
+32
-0
32 additions, 0 deletions
prepare_build.sh
with
86 additions
and
0 deletions
BUILD_INSTRUCTIONS.md
0 → 100644
+
50
−
0
View file @
b3b31cc9
# Building the lib
The following procedure has been written for Ubuntu 22.04 OS.
Install the dependencies :
```
./prepare_build.sh
```
## Building librealsense
Clone the repository :
```
git clone https://github.com/IntelRealSense/librealsense.git
```
Create the build directory and prepare the build
```
cd librealsense
mkdir build && cd build
cmake ../
make
```
Once built, install the lib :
```
make install
```
## Building lib sandbox
Clone the repository (and checkout to the opencv4 branch)
```
git clone ssh://git@ssh.hesge.ch:10572/ar_sandbox/ar_sandbox_lib.git
git checkout opencv4
```
Build the lib:
```
make all
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Prereqs.sh
0 → 100644
+
4
−
0
View file @
b3b31cc9
ln
-s
/usr/include/opencv4/opencv2 /usr/include/opencv2
cd
/usr/lib/x86_64-linux-gnu/pkgconfig
ln
-s
opencv4.pc opencv.pc
\ No newline at end of file
This diff is collapsed.
Click to expand it.
prepare_build.sh
0 → 100755
+
32
−
0
View file @
b3b31cc9
NC
=
'\033[0m'
# No Color
GRE
=
'\033[0;32m'
BLU
=
'\033[0;34m'
YEL
=
'\033[0;33m'
echo
"
${
BLU
}
========================================"
echo
"= libsandbox requirements install ="
echo
"========================================
${
NC
}
"
echo
"
${
YEL
}
Updating APT cache
${
NC
}
"
apt update
echo
"
${
BLU
}
========================================"
echo
"= librealsense build requirements ="
echo
"========================================
${
NC
}
"
apt
install
-y
git wget cmake build-essential libssl-dev libusb-1.0-0-dev libudev-dev pkg-config libgtk-3-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev at v4l-utils
echo
"
${
BLU
}
========================================"
echo
"= libsandbox build requirements ="
echo
"========================================
${
NC
}
"
apt
install
-y
libyaml-cpp-dev libopencv-dev qtbase5-dev qttools5-dev
echo
"
${
BLU
}
========================================"
echo
"= Linking opencv4/opencv2 to opencv2 ="
echo
"========================================
${
NC
}
"
ln
-s
/usr/include/opencv4/opencv2 /usr/include/opencv2
echo
"
${
BLU
}
========================================"
echo
"= Linking opencv4.pc to opencv.pc ="
echo
"========================================
${
NC
}
"
ln
-s
/usr/lib/x86_64-linux-gnu/pkgconfig/opencv4.pc /usr/lib/x86_64-linux-gnu/pkgconfig/opencv.pc
echo
"
${
GRE
}
Successfuly prepared environment
${
NC
}
"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment