This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
WebRTC-Sample/owt-linux-player Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -139,13 +139,36 @@ install_ffmpeg(){
139139 make install
140140}
141141
142+ install_safestringlib (){
143+ cd ${BUILD}
144+
145+ rm -fr safestringlib
146+ git clone https://github.com/intel/safestringlib.git
147+
148+ cd safestringlib
149+ git checkout 245c4b8cff1d2e7338b7f3a82828fc8e72b29549
150+
151+ mkdir build
152+ cd build
153+ cmake ..
154+ make -j
155+
156+ cp -v libsafestring_shared.so ${PREFIX} /lib/
157+ mkdir -p ${PREFIX} /include/safestringlib
158+ cp -rfv ../include/* ${PREFIX} /include/safestringlib/
159+ }
160+
142161install_360scvp (){
143162 cd ${BUILD}
144163
145164 rm -rf 360scvp
146165
147166 mkdir 360scvp
148167 cd 360scvp
168+
169+ sed -i " s@INCLUDE_DIRECTORIES\(.*\)@INCLUDE_DIRECTORIES\1\nINCLUDE_DIRECTORIES(${PREFIX} /include)@" ${BUILD} /../../../../src/360SCVP/CMakeLists.txt
170+ sed -i " s@LINK_DIRECTORIES\(.*\)@LINK_DIRECTORIES\1\nLINK_DIRECTORIES(${PREFIX} /lib)@" ${BUILD} /../../../../src/360SCVP/CMakeLists.txt
171+
149172 cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} ${BUILD} /../../../../src/360SCVP/
150173 make -j
151174 make install
@@ -162,4 +185,5 @@ install_owt_client_native
162185
163186# player
164187install_ffmpeg
188+ install_safestringlib
165189install_360scvp
You can’t perform that action at this time.
0 commit comments