Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 2a2712f

Browse files
authored
Update boost version for CentOS (#900)
1 parent 9e9d84b commit 2a2712f

File tree

9 files changed

+116
-56
lines changed

9 files changed

+116
-56
lines changed

scripts/pack.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,9 @@ function isLibAllowed(libSrc) {
440440
if (!options['archive'] || options['with-ffmpeg']) {
441441
whiteList.push('libav');
442442
whiteList.push('libsw');
443+
if (osType.includes('centos')) {
444+
whiteList.push('libboost');
445+
}
443446
}
444447

445448
const libName = path.basename(libSrc);

source/agent/analytics/install_deps.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,25 @@ do_update() {
3535
fi
3636
}
3737

38+
install_boost() {
39+
echo -e "\x1b[32mInstalling boost...\x1b[0m"
40+
pushd ${this} >/dev/null
41+
wget -c http://iweb.dl.sourceforge.net/project/boost/boost/1.65.0/boost_1_65_0.tar.bz2
42+
tar xvf boost_1_65_0.tar.bz2
43+
pushd boost_1_65_0 >/dev/null
44+
./bootstrap.sh
45+
./b2 --with-thread --with-system
46+
cp stage/lib/libboost_*.so* ${this}/lib
47+
popd
48+
popd
49+
}
50+
3851
install_deps() {
3952
if [[ "$OS" =~ .*centos.* ]]
4053
then
4154
echo -e "\x1b[32mInstalling deps via yum install...\x1b[0m"
42-
${SUDO} yum install boost-system boost-thread log4cxx wget bzip2 x264 gstreamer1-plugins-ugly -y
55+
${SUDO} yum install log4cxx wget bzip2 x264 gstreamer1-plugins-ugly -y
56+
install_boost
4357
elif [[ "$OS" =~ .*ubuntu.* ]]
4458
then
4559
echo -e "\x1b[32mInstalling deps via apt-get install...\x1b[0m"

source/agent/analytics/videoGstPipeline/binding.pipeline.gyp

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,9 @@
1515
'/usr/include/gstreamer-1.0',
1616
'$(CORE_HOME)/common',
1717
'$(CORE_HOME)/owt_base',
18-
'$(CORE_HOME)/addons/common'
18+
'$(CORE_HOME)/addons/common',
19+
'$(CORE_HOME)/../../build/libdeps/build/include',
1920
],
20-
# 'include_dirs': [ '..',
21-
# '$(CORE_HOME)/common',
22-
# '$(CORE_HOME)/owt_base',
23-
# '$(CORE_HOME)/../../third_party/webrtc/src',
24-
# '$(CORE_HOME)/../../third_party/webrtc/src/third_party/libyuv/include',
25-
# '$(CORE_HOME)/../../build/libdeps/build/include',
26-
# ],
2721
'libraries': [
2822
'-lboost_system',
2923
'-lboost_thread',
@@ -33,8 +27,7 @@
3327
'-lgstapp-1.0',
3428
'-lgthread-2.0',
3529
'-llog4cxx',
36-
# '-llog4cxx',
37-
# '-L$(CORE_HOME)/../../build/libdeps/build/lib',
30+
'-L$(CORE_HOME)/../../build/libdeps/build/lib',
3831
# '-lusrsctp'
3932
],
4033
# 'INET', 'INET6' flags must be added for usrsctp lib, otherwise the arguments of receive callback would shift
@@ -53,40 +46,6 @@
5346
'cflags_cc!': ['-fno-exceptions']
5447
}],
5548
]
56-
},
57-
# not build test target
58-
# {
59-
# 'target_name': 'SctpTest',
60-
# 'type' : 'executable',
61-
# 'sources': [
62-
# '../../../core/owt_base/RawTransport.cpp',
63-
# '../../../core/owt_base/SctpTransport.cpp',
64-
# '../../../core/owt_base/SctpTransportTest.cpp',
65-
# ],
66-
# 'include_dirs': [
67-
# '$(CORE_HOME)/common',
68-
# '$(CORE_HOME)/owt_base',
69-
# '$(CORE_HOME)/../../third_party/usrsctp/usrsctplib'
70-
# ],
71-
# 'libraries': [
72-
# '-lboost_system',
73-
# '-lboost_thread',
74-
# '-llog4cxx',
75-
# '-L$(CORE_HOME)/../../third_party/usrsctp/usrsctplib/.libs', '-lusrsctp',
76-
# ],
77-
# 'conditions': [
78-
# [ 'OS=="mac"', {
79-
# 'xcode_settings': {
80-
# 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', # -fno-exceptions
81-
# 'MACOSX_DEPLOYMENT_TARGET': '10.7', # from MAC OS 10.7
82-
# 'OTHER_CFLAGS': ['-g -O$(OPTIMIZATION_LEVEL) -stdlib=libc++']
83-
# },
84-
# }, { # OS!="mac"
85-
# 'cflags!': ['-fno-exceptions'],
86-
# 'cflags_cc': ['-Wall', '-O$(OPTIMIZATION_LEVEL)', '-g', '-std=c++11', '-DINET', '-DINET6'],
87-
# 'cflags_cc!': ['-fno-exceptions']
88-
# }],
89-
# ]
90-
# }
49+
}
9150
]
9251
}

source/agent/audio/install_deps.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,25 @@ do_update() {
3636
fi
3737
}
3838

39+
install_boost() {
40+
echo -e "\x1b[32mInstalling boost...\x1b[0m"
41+
pushd ${this} >/dev/null
42+
wget -c http://iweb.dl.sourceforge.net/project/boost/boost/1.65.0/boost_1_65_0.tar.bz2
43+
tar xvf boost_1_65_0.tar.bz2
44+
pushd boost_1_65_0 >/dev/null
45+
./bootstrap.sh
46+
./b2 --with-thread --with-system
47+
cp stage/lib/libboost_*.so* ${this}/lib
48+
popd
49+
popd
50+
}
51+
3952
install_deps() {
4053
if [[ "$OS" =~ .*centos.* ]]
4154
then
4255
echo -e "\x1b[32mInstalling deps via yum install...\x1b[0m"
43-
${SUDO} yum install boost-system boost-thread log4cxx -y
56+
${SUDO} yum install log4cxx -y
57+
install_boost
4458
elif [[ "$OS" =~ .*ubuntu.* ]]
4559
then
4660
echo -e "\x1b[32mInstalling deps via apt-get install...\x1b[0m"

source/agent/recording/install_deps.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,25 @@ do_update() {
3535
fi
3636
}
3737

38+
install_boost() {
39+
echo -e "\x1b[32mInstalling boost...\x1b[0m"
40+
pushd ${this} >/dev/null
41+
wget -c http://iweb.dl.sourceforge.net/project/boost/boost/1.65.0/boost_1_65_0.tar.bz2
42+
tar xvf boost_1_65_0.tar.bz2
43+
pushd boost_1_65_0 >/dev/null
44+
./bootstrap.sh
45+
./b2 --with-thread --with-system
46+
cp stage/lib/libboost_*.so* ${this}/lib
47+
popd
48+
popd
49+
}
50+
3851
install_deps() {
3952
if [[ "$OS" =~ .*centos.* ]]
4053
then
4154
echo -e "\x1b[32mInstalling deps via yum install...\x1b[0m"
42-
${SUDO} yum install boost-system boost-thread log4cxx wget bzip2 -y
55+
${SUDO} yum install log4cxx wget bzip2 -y
56+
install_boost
4357
elif [[ "$OS" =~ .*ubuntu.* ]]
4458
then
4559
echo -e "\x1b[32mInstalling deps via apt-get install...\x1b[0m"

source/agent/sip/install_deps.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,25 @@ do_update() {
3535
fi
3636
}
3737

38+
install_boost() {
39+
echo -e "\x1b[32mInstalling boost...\x1b[0m"
40+
pushd ${this} >/dev/null
41+
wget -c http://iweb.dl.sourceforge.net/project/boost/boost/1.65.0/boost_1_65_0.tar.bz2
42+
tar xvf boost_1_65_0.tar.bz2
43+
pushd boost_1_65_0 >/dev/null
44+
./bootstrap.sh
45+
./b2 --with-thread --with-system
46+
cp stage/lib/libboost_*.so* ${this}/lib
47+
popd
48+
popd
49+
}
50+
3851
install_deps() {
3952
if [[ "$OS" =~ .*centos.* ]]
4053
then
4154
echo -e "\x1b[32mInstalling deps via yum install...\x1b[0m"
42-
${SUDO} yum install boost-system boost-thread log4cxx -y
55+
${SUDO} yum install log4cxx -y
56+
install_boost
4357
elif [[ "$OS" =~ .*ubuntu.* ]]
4458
then
4559
echo -e "\x1b[32mInstalling deps via apt-get install...\x1b[0m"

source/agent/streaming/install_deps.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,25 @@ do_update() {
3535
fi
3636
}
3737

38+
install_boost() {
39+
echo -e "\x1b[32mInstalling boost...\x1b[0m"
40+
pushd ${this} >/dev/null
41+
wget -c http://iweb.dl.sourceforge.net/project/boost/boost/1.65.0/boost_1_65_0.tar.bz2
42+
tar xvf boost_1_65_0.tar.bz2
43+
pushd boost_1_65_0 >/dev/null
44+
./bootstrap.sh
45+
./b2 --with-thread --with-system
46+
cp stage/lib/libboost_*.so* ${this}/lib
47+
popd
48+
popd
49+
}
50+
3851
install_deps() {
3952
if [[ "$OS" =~ .*centos.* ]]
4053
then
4154
echo -e "\x1b[32mInstalling deps via yum install...\x1b[0m"
42-
${SUDO} yum install boost-system boost-thread log4cxx wget bzip2 -y
55+
${SUDO} yum install log4cxx wget bzip2 -y
56+
install_boost
4357
elif [[ "$OS" =~ .*ubuntu.* ]]
4458
then
4559
echo -e "\x1b[32mInstalling deps via apt-get install...\x1b[0m"

source/agent/video/install_deps.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ usage() {
1919
echo
2020
}
2121

22+
install_boost() {
23+
echo -e "\x1b[32mInstalling boost...\x1b[0m"
24+
pushd ${this} >/dev/null
25+
wget -c http://iweb.dl.sourceforge.net/project/boost/boost/1.65.0/boost_1_65_0.tar.bz2
26+
tar xvf boost_1_65_0.tar.bz2
27+
pushd boost_1_65_0 >/dev/null
28+
./bootstrap.sh
29+
./b2 --with-thread --with-system
30+
cp stage/lib/libboost_*.so* ${this}/lib
31+
popd
32+
popd
33+
}
34+
2235
install_deps() {
2336
local OS=$(${this}/detectOS.sh | awk '{print tolower($0)}')
2437
echo $OS
@@ -38,8 +51,9 @@ install_deps() {
3851
${SUDO} rpm -Uvh epel-release-latest-7*.rpm
3952
fi
4053
${SUDO} sed -i 's/https/http/g' /etc/yum.repos.d/epel.repo
41-
${SUDO} yum install boost-system boost-thread log4cxx bzip2 -y
54+
${SUDO} yum install log4cxx bzip2 -y
4255
${SUDO} yum install intel-gpu-tools -y
56+
install_boost
4357

4458
elif [[ "$OS" =~ .*ubuntu.* ]]
4559
then

source/agent/webrtc/install_deps.sh

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,35 @@ do_update() {
3535
fi
3636
}
3737

38-
install_glib() {
38+
install_boost() {
39+
echo -e "\x1b[32mInstalling boost...\x1b[0m"
40+
pushd ${this} >/dev/null
41+
wget -c http://iweb.dl.sourceforge.net/project/boost/boost/1.65.0/boost_1_65_0.tar.bz2
42+
tar xvf boost_1_65_0.tar.bz2
43+
pushd boost_1_65_0 >/dev/null
44+
./bootstrap.sh
45+
./b2 --with-thread --with-system
46+
cp stage/lib/libboost_*.so* ${this}/lib
47+
popd
48+
popd
49+
}
50+
51+
install_libs() {
3952
if [[ "$OS" =~ .*centos.* ]]
4053
then
41-
echo -e "\x1b[32mInstalling GLib2.0 via yum install...\x1b[0m"
42-
${SUDO} yum install boost-system boost-thread log4cxx glib2 -y
54+
echo -e "\x1b[32mInstalling deps via yum install...\x1b[0m"
55+
${SUDO} yum install log4cxx glib2 -y
56+
install_boost
4357
elif [[ "$OS" =~ .*ubuntu.* ]]
4458
then
45-
echo -e "\x1b[32mInstalling GLib2.0 via apt-get install...\x1b[0m"
59+
echo -e "\x1b[32mInstalling deps via apt-get install...\x1b[0m"
4660
${SUDO} apt-get install libboost-system-dev libboost-thread-dev liblog4cxx-dev libglib2.0-0 -y
4761
fi
4862
}
4963

5064
install_all() {
5165
${OWT_UPDATE_DONE} || do_update
52-
install_glib
66+
install_libs
5367
}
5468

5569
shopt -s extglob

0 commit comments

Comments
 (0)