Skip to content

Commit 04dde8c

Browse files
committed
libexpat build with old way and points to 2.6.0 version
Signed-off-by: ashish-jabble <[email protected]>
1 parent 5c80cb9 commit 04dde8c

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
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/expat-2.6.0
19+
others/libexpat
2020
others/check-0.15.2
2121
others/mbedtls-2.28.7
2222
others/*.tar.gz

others/scripts/s2opcua/requirements.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,15 @@ fi
4747

4848
# libexpat:
4949
cd ${git_root}
50-
libexpat_version="2.6.2"
50+
libexpat_version="2.6.0"
5151
libexpat_branch="R_${libexpat_version//./_}"
52-
rm -rf expat-${libexpat_version}.tar.gz expat-${libexpat_version}
53-
wget https://github.com/libexpat/libexpat/releases/download/${libexpat_branch}/expat-${libexpat_version}.tar.gz
54-
tar xzvf expat-${libexpat_version}.tar.gz
52+
rm -rf libexpat
53+
git clone https://github.com/libexpat/libexpat.git --branch ${libexpat_branch} --depth 1
5554
(
56-
cd expat-${libexpat_version}
57-
mkdir build
58-
cd build
59-
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DEXPAT_SHARED_LIBS=ON ..
60-
make
55+
cd libexpat/expat
56+
./buildconf.sh && \
57+
./configure && \
58+
make && \
6159
sudo make install
6260
)
6361

0 commit comments

Comments
 (0)