11# Building from source
2- In order to build the OWFMS, you will need to install its dependencies, which includes the following:
2+ In order to build OWFMS, you will need to install its dependencies, which includes the following:
33- cmake
44- boost
55- POCO 1.10.1 or later
@@ -12,111 +12,110 @@ In order to build the OWFMS, you will need to install its dependencies, which in
1212
1313Building is a 2 part process. The first part is to build a local copy of the framework tailored to your environment. This
1414framework is [ Poco] ( https://github.com/pocoproject/poco ) . The version used in this project has a couple of fixes
15- from the master copy needed for cmake. Please use the version of this [ Poco fix] ( https://github.com/stephb9959/ poco ) . Building
15+ from the master copy needed for cmake. Please use the version of this [ Poco fix] ( https://github.com/Telecominfraproject/wlan-cloud-lib- poco ) . Building
1616Poco may take several minutes depending on the platform you are building on.
1717
1818## Ubuntu
1919These instructions have proven to work on Ubuntu 20.4.
2020``` bash
21- sudo apt install git cmake g++ libssl-dev libmariabd-dev unixodbc-dev
21+ sudo apt install git cmake g++ libssl-dev libmariabd-dev unixodbc-dev
2222sudo apt install libpq-dev libaprutil1-dev apache2-dev libboost-all-dev
2323sudo apt install librdkafka-dev liblua5.3-dev
2424
25- git clone https://github.com/stephb9959/ poco
25+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1 poco
2626cd poco
2727mkdir cmake-build
2828cd cmake-build
2929cmake ..
3030cmake --build . --config Release
3131sudo cmake --build . --target install
32+ cd ../..
3233
33- git clone https://github.com/stephb9959/ cppkafka
34+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch tip-v1 cppkafka
3435cd cppkafka
3536mkdir cmake-build
3637cd cmake-build
3738cmake ..
3839cmake --build . --config Release
3940sudo cmake --build . --target install
41+ cd ../..
4042
41- cd ~
4243git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralgw
4344cd wlan-cloud-ucentralgw
4445mkdir cmake-build
4546cd cmake-build
4647cmake ..
4748make
49+ cd ../..
4850```
4951
5052## Fedora
5153The following instructions have proven to work on Fedora 33
5254``` bash
5355sudo yum install cmake g++ openssl-devel unixODBC-devel mysql-devel mysql apr-util-devel boost boost-devel
54- sudo yum install yaml-cpp-devel lua-devel
56+ sudo yum install yaml-cpp-devel lua-devel
5557sudo dnf install postgresql.x86_64 librdkafka-devel
5658sudo dnf install postgresql-devel
5759
58- git clone https://github.com/stephb9959/ poco
60+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1 poco
5961cd poco
6062mkdir cmake-build
6163cd cmake-build
6264cmake ..
6365cmake --build . --config Release
6466sudo cmake --build . --target install
67+ cd ../..
6568
66- git clone https://github.com/stephb9959/ cppkafka
69+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch tip-v1 cppkafka
6770cd cppkafka
6871mkdir cmake-build
6972cd cmake-build
7073cmake ..
7174cmake --build . --config Release
7275sudo cmake --build . --target install
76+ cd ../..
7377
74- cd ~
7578git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralfms
7679cd wlan-cloud-ucentralfms
7780mkdir cmake-build
7881cd cmake-build
7982cmake ..
8083make
84+ cd ../..
8185
8286```
8387
84- ## OSX Build
88+ ## Mac OSX Build
8589The following instructions have proven to work on OSX Big Sur. You need to install [ Homebrew] ( https://brew.sh/ ) . You must also have installed [ XCode for OS X] ( https://www.freecodecamp.org/news/how-to-download-and-install-xcode/ ) .
8690``` bash
87- brew install openssl
88- brew install cmake
89- brew install libpq
90- brew install mysql-client
91- brew install apr
92- brew install apr-util
93- brew install boost
94- brew install yaml-cpp
95- brew install postgresql
96- brew install unixodbc
97- brew install librdkafka
91+ brew install \
92+ openssl cmake libpq mysql-client \
93+ apr apr-util boost yaml-cpp postgresql \
94+ unixodbc librdkafka
9895
99- git clone https://github.com/stephb9959/ poco
96+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1 poco
10097cd poco
101- mkdir cmake-build
98+ mkdir cmake-build
10299cd cmake-build
103100cmake ..
104101cmake --build . --config Release -j
105102sudo cmake --build . --target install
103+ cd ../..
106104
107- git clone https://github.com/stephb9959/ cppkafka
105+ git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch tip-v1 cppkafka
108106cd cppkafka
109107mkdir cmake-build
110108cd cmake-build
111109cmake ..
112110cmake --build . --config Release
113111sudo cmake --build . --target install
112+ cd ../..
114113
115- cd ~
116114git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralfms
117115cd wlan-cloud-ucentralfms
118116mkdir cmake-build
119117cd cmake-build
120118cmake ..
121119make -j
120+ cd ../..
122121```
0 commit comments