Skip to content

Commit bfbe800

Browse files
committed
S2OPC clientwrapper and commonwrapper links removed and also fix shared libs for libexpat
Signed-off-by: ashish-jabble <[email protected]>
1 parent 12d375b commit bfbe800

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ others/jansson
1616
others/lib60870
1717
others/libiec61850
1818
others/S2OPC
19-
others/libexpat
19+
others/expat-2.6.0
2020
others/check-0.15.2
2121
others/mbedtls-2.28.7
2222
others/*.tar.gz

others/make_deb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ fi
154154
if [ "${ADDITIONAL_LIB_NAME}" == "s2opcua" ]; then
155155
cp -R --preserve=links /usr/local/lib/libs2opc_common.so usr/local/lib
156156
cp -R --preserve=links /usr/local/lib/libs2opc_clientserver.so usr/local/lib
157-
cp -R --preserve=links /usr/local/lib/libs2opc_clientwrapper.so usr/local/lib
158-
cp -R --preserve=links /usr/local/lib/libs2opc_commonwrapper.so usr/local/lib
159157
cp -R --preserve=links /usr/local/lib/libexpat.so.1 usr/local/lib
160158
fi
161159
echo "Done."

others/scripts/s2opcua/requirements.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ set -e
2525
os_name=$(grep -o '^NAME=.*' /etc/os-release | cut -f2 -d\" | sed 's/"//g')
2626
os_version=$(grep -o '^VERSION_ID=.*' /etc/os-release | cut -f2 -d\" | sed 's/"//g')
2727
echo "Platform is ${os_name}, Version: ${os_version}"
28+
git_root=$(pwd)
2829

2930
# mbedtls-dev:
31+
cd ${git_root}
3032
mbetls_version='2.28.7'
3133
if [[ $os_name == *"Red Hat"* || $os_name == *"CentOS"* ]]; then
3234
echo "RHEL/CentOS platform is not currently supported by this plugin."
@@ -44,6 +46,7 @@ else
4446
fi
4547

4648
# libexpat:
49+
cd ${git_root}
4750
libexpat_version="2.6.0"
4851
rm -rf expat-${libexpat_version}.tar.gz expat-${libexpat_version}
4952
wget https://github.com/libexpat/libexpat/releases/download/R_2_6_0/expat-${libexpat_version}.tar.gz
@@ -52,19 +55,20 @@ tar xzvf expat-${libexpat_version}.tar.gz
5255
cd expat-${libexpat_version}
5356
mkdir build
5457
cd build
55-
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DEXPAT_SHARED_LIBS=OFF ..
58+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DEXPAT_SHARED_LIBS=ON ..
5659
make
5760
sudo make install
5861
)
5962

6063
# libcheck:
64+
cd ${git_root}
6165
lib_check_version="0.15.2"
6266
rm -rf check-${lib_check_version}.tar.gz check-${lib_check_version}
6367
wget https://github.com/libcheck/check/releases/download/${lib_check_version}/check-${lib_check_version}.tar.gz
6468
tar xf check-${lib_check_version}.tar.gz
6569
(
6670
cd check-${lib_check_version}
67-
cp ../../../scripts/s2opcua/check-${lib_check_version}_CMakeLists.txt.patch .
71+
cp ${git_root}/scripts/s2opcua/check-${lib_check_version}_CMakeLists.txt.patch .
6872
patch < check-${lib_check_version}_CMakeLists.txt.patch # update the CMakeLists.txt file
6973
rm -f CMakeCache.txt
7074
mkdir -p build
@@ -73,6 +77,7 @@ tar xf check-${lib_check_version}.tar.gz
7377
)
7478

7579
# S2OPC
80+
cd ${git_root}
7681
s2opc_toolkit_version="1.5.0"
7782
rm -rf S2OPC
7883
git clone https://gitlab.com/systerel/S2OPC.git --branch S2OPC_Toolkit_${s2opc_toolkit_version} --depth 1

0 commit comments

Comments
 (0)