@@ -23,17 +23,22 @@ export PKG_CONFIG_PATH=$DEPS_SYSROOT/lib/pkgconfig
23
23
function getSource() {
24
24
mkdir -p $DOWNLOAD_PATH
25
25
cd $DOWNLOAD_PATH
26
+
27
+ # Dependencies for rviz
26
28
# Need -L to download github releases according to https://stackoverflow.com/questions/46060010/download-github-release-with-curl
27
29
curl -s -L -o freetype.tar.xz https://download.savannah.gnu.org/releases/freetype/freetype-2.12.1.tar.xz \
28
30
-o eigen.tar.bz2 https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2 \
29
31
-o tinyxml2.tar.gz https://github.com/leethomason/tinyxml2/archive/refs/tags/9.0.0.tar.gz \
30
32
-o bullet3.tar.gz https://github.com/bulletphysics/bullet3/archive/refs/tags/3.24.tar.gz \
31
33
-o qtbase.tar.gz https://download.qt.io/archive/qt/5.15/5.15.5/submodules/qtbase-everywhere-opensource-src-5.15.5.tar.xz
32
34
35
+ # Common dependency OpenCV, Boost
36
+ curl -s -L -o opencv.tar.gz https://github.com/opencv/opencv/archive/refs/tags/4.6.0.tar.gz \
37
+ -o boost.tar.gz https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz
38
+
33
39
# Dependencies for cartographer
34
40
if [ $PLATFORM != " macOS" ]; then
35
41
curl -s -L -o abseil-cpp.tar.gz https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.0.tar.gz \
36
- -o boost.tar.gz https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz \
37
42
-o gflags.tar.gz https://github.com/gflags/gflags/archive/refs/tags/v2.2.2.tar.gz \
38
43
-o cairo.tar.xz https://www.cairographics.org/releases/cairo-1.16.0.tar.xz \
39
44
-o pixman.tar.gz https://cairographics.org/releases/pixman-0.40.0.tar.gz \
@@ -336,17 +341,26 @@ function buildPCL() {
336
341
buildCMake
337
342
}
338
343
344
+ function buildOpenCV() {
345
+ echo " Build OpenCV"
346
+ cd $SRC_PATH /opencv-4.6.0
347
+ buildCMake -DCMAKE_BUILD_TYPE=Release
348
+ }
349
+
350
+
339
351
getSource
340
352
extractSource
341
353
setupPlatform
342
354
343
355
case $PLATFORM in
344
- " macOS" ) # Build dependencies for RVIZ
356
+ " macOS" ) # Build dependencies for RVIZ and OpenCV
345
357
buildFreeType2
346
358
buildEigen3
347
359
buildTinyXML2
348
360
buildBullet3
349
- buildQt5;;
361
+ buildQt5
362
+ buildBoost
363
+ buildOpenCV;;
350
364
351
365
* ) # Build dependencies for ROS2 cartographer package
352
366
buildHostTools
0 commit comments