11# Building from source
22
3- In order to build the OWSEC, you will need to install its dependencies, which includes the following:
3+ In order to build OWSEC, you will need to install its dependencies, which includes the following:
44- cmake
55- boost
66- POCO 1.10.1 or later
@@ -13,43 +13,43 @@ In order to build the OWSEC, you will need to install its dependencies, which in
1313
1414The build is done in 2 parts. The first part is to build a local copy of the framework tailored to your environment. This
1515framework is called [ Poco] ( https://github.com/pocoproject/poco ) . The version used in this project has a couple of fixes
16- from the master copy needed for cmake. Please use the version of this [ Poco fix] ( https://github.com/AriliaWireless/ poco ) . Building
16+ from the master copy needed for cmake. Please use the version of this [ Poco fix] ( https://github.com/Telecominfraproject/wlan-cloud-lib- poco ) . Building
1717Poco may take several minutes depending on the platform you are building on.
1818
1919## Ubuntu
2020These instructions have proven to work on Ubuntu 20.4.
2121``` bash
22- sudo apt install git cmake g++ libssl-dev libmariadb-dev
23- sudo apt install libpq-dev libaprutil1-dev apache2-dev libboost-all-dev
24- sudo apt install librdkafka-dev default-libmysqlclient-dev
25- sudo apt install nlohmann-json-dev
22+ sudo apt install git cmake g++ libssl-dev libmariadb-dev \
23+ libpq-dev libaprutil1-dev apache2-dev libboost-all-dev \
24+ librdkafka-dev default-libmysqlclient-dev \
25+ nlohmann-json-dev
2626
27- cd ~
28- git clone https://github.com/AriliaWireless/poco --branch poco-tip-v1
27+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1 poco
2928cd poco
3029mkdir cmake-build
3130cd cmake-build
3231cmake ..
3332cmake --build . --config Release
3433sudo cmake --build . --target install
34+ cd ../..
3535
36- cd ~
37- git clone https://github.com/AriliaWireless/cppkafka --branch tip-v1
36+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch tip-v1 cppkafka
3837cd cppkafka
3938mkdir cmake-build
4039cd cmake-build
4140cmake ..
4241cmake --build . --config Release
4342sudo cmake --build . --target install
43+ cd ../..
4444
45- cd ~
46- git clone https://github.com/AriliaWireless/valijson --branch tip-v1
45+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib-valijson --branch tip-v1 valijson
4746cd valijson
4847mkdir cmake-build
4948cd cmake-build
5049cmake ..
5150cmake --build . --config Release
5251sudo cmake --build . --target install
52+ cd ../..
5353
5454git clone https://github.com/fmtlib/fmt --branch 9.0.0 /fmtlib
5555cd fmtlib
@@ -58,56 +58,59 @@ cd cmake-build
5858cmake ..
5959make
6060make install
61+ cd ../..
6162
62- cd ~
6363git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralsec
6464cd wlan-cloud-ucentralsec
6565mkdir cmake-build
6666cd cmake-build
6767cmake ..
6868make -j 8
69+ cd ../..
6970```
7071
7172## Fedora
7273The following instructions have proven to work on Fedora 33
7374``` bash
74- sudo yum install cmake g++ openssl-devel mysql-devel mysql apr-util-devel boost boost-devel
75- sudo yum install yaml-cpp-devel lua-devel
75+ sudo yum install cmake g++ openssl-devel mysql-devel mysql apr-util-devel boost boost-devel \
76+ yaml-cpp-devel lua-devel
7677sudo dnf install postgresql.x86_64 librdkafka-devel
7778sudo dnf install postgresql-devel json-devel
7879
79- git clone https://github.com/AriliaWireless/ poco --branch poco-tip-v1
80+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib- poco --branch poco-tip-v1 poco
8081cd poco
8182mkdir cmake-build
8283cd cmake-build
8384cmake ..
8485cmake --build . --config Release
8586sudo cmake --build . --target install
87+ cd ../..
8688
87- git clone https://github.com/AriliaWireless/ cppkafka --branch tip-v1
89+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib- cppkafka --branch tip-v1 cppkafka
8890cd cppkafka
8991mkdir cmake-build
9092cd cmake-build
9193cmake ..
9294cmake --build . --config Release
9395sudo cmake --build . --target install
96+ cd ../..
9497
95- cd ~
96- git clone https://github.com/AriliaWireless/valijson --branch tip-v1
98+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib-valijson --branch tip-v1 valijson
9799cd valijson
98100mkdir cmake-build
99101cd cmake-build
100102cmake ..
101103cmake --build . --config Release
102104sudo cmake --build . --target install
105+ cd ../..
103106
104- cd ~
105107git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralsec
106108cd wlan-cloud-ucentralsec
107109mkdir cmake-build
108110cd cmake-build
109111cmake ..
110112make
113+ cd ../..
111114```
112115
113116## macOS Build
@@ -126,7 +129,7 @@ brew install openssl \
126129 nlohmann-json \
127130 fmt
128131
129- git clone https://github.com/AriliaWireless/ poco --branch poco-tip-v1
132+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib- poco --branch poco-tip-v1 poco
130133pushd poco
131134mkdir cmake-build
132135push cmake-build
@@ -136,7 +139,7 @@ sudo cmake --build . --target install
136139popd
137140popd
138141
139- git clone https://github.com/AriliaWireless/ cppkafka --branch tip-v1
142+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib- cppkafka --branch tip-v1 cppkafka
140143pushd cppkafka
141144mkdir cmake-build
142145pushd cmake-build
@@ -146,10 +149,10 @@ sudo cmake --build . --target install
146149popd
147150popd
148151
149- git clone https://github.com/AriliaWireless/ valijson --branch tip-v1
150- cd valijson
152+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib- valijson --branch tip-v1 valijson
153+ pushd valijson
151154mkdir cmake-build
152- cd cmake-build
155+ pushd cmake-build
153156cmake ..
154157cmake --build . --config Release
155158sudo cmake --build . --target install
@@ -172,20 +175,23 @@ support. You can build with only SQLite support by not installing the packages f
172175adding -DSMALL_BUILD=1 on the cmake build line.
173176
174177``` bash
175- sudo apt install git cmake g++ libssl-dev libaprutil1-dev apache2-dev libboost-all-dev libyaml-cpp-dev
176- git clone https://github.com/stephb9959/poco
178+ sudo apt install git cmake g++ libssl-dev libaprutil1-dev apache2-dev \
179+ libboost-all-dev libyaml-cpp-dev
180+
181+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1 poco
177182cd poco
178183mkdir cmake-build
179184cd cmake-build
180185cmake ..
181186cmake --build . --config Release
182187sudo cmake --build . --target install
188+ cd ../..
183189
184- cd ~
185190git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralsec
186191cd wlan-cloud-ucentralsec
187192mkdir cmake-build
188193cd cmake-build
189194cmake -DSMALL_BUILD=1 ..
190195make
196+ cd ../..
191197```
0 commit comments