Skip to content

Commit cd17704

Browse files
authored
Merge pull request #88 from Telecominfraproject/WIFI-12939
WIFI-12939: change to TIP repos for libraries
2 parents 1f02c9f + 23cf304 commit cd17704

2 files changed

Lines changed: 29 additions & 31 deletions

File tree

BUILDING.md

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

1313
Building is a 2 part process. The first part is to build a local copy of the framework tailored to your environment. This
1414
framework 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
1616
Poco may take several minutes depending on the platform you are building on.
1717

1818
## Ubuntu
1919
These 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
2222
sudo apt install libpq-dev libaprutil1-dev apache2-dev libboost-all-dev
2323
sudo 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
2626
cd poco
2727
mkdir cmake-build
2828
cd cmake-build
2929
cmake ..
3030
cmake --build . --config Release
3131
sudo 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
3435
cd cppkafka
3536
mkdir cmake-build
3637
cd cmake-build
3738
cmake ..
3839
cmake --build . --config Release
3940
sudo cmake --build . --target install
41+
cd ../..
4042

41-
cd ~
4243
git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralgw
4344
cd wlan-cloud-ucentralgw
4445
mkdir cmake-build
4546
cd cmake-build
4647
cmake ..
4748
make
49+
cd ../..
4850
```
4951

5052
## Fedora
5153
The following instructions have proven to work on Fedora 33
5254
```bash
5355
sudo 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
5557
sudo dnf install postgresql.x86_64 librdkafka-devel
5658
sudo 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
5961
cd poco
6062
mkdir cmake-build
6163
cd cmake-build
6264
cmake ..
6365
cmake --build . --config Release
6466
sudo 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
6770
cd cppkafka
6871
mkdir cmake-build
6972
cd cmake-build
7073
cmake ..
7174
cmake --build . --config Release
7275
sudo cmake --build . --target install
76+
cd ../..
7377

74-
cd ~
7578
git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralfms
7679
cd wlan-cloud-ucentralfms
7780
mkdir cmake-build
7881
cd cmake-build
7982
cmake ..
8083
make
84+
cd ../..
8185

8286
```
8387

84-
## OSX Build
88+
## Mac OSX Build
8589
The 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
10097
cd poco
101-
mkdir cmake-build
98+
mkdir cmake-build
10299
cd cmake-build
103100
cmake ..
104101
cmake --build . --config Release -j
105102
sudo 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
108106
cd cppkafka
109107
mkdir cmake-build
110108
cd cmake-build
111109
cmake ..
112110
cmake --build . --config Release
113111
sudo cmake --build . --target install
112+
cd ../..
114113

115-
cd ~
116114
git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralfms
117115
cd wlan-cloud-ucentralfms
118116
mkdir cmake-build
119117
cd cmake-build
120118
cmake ..
121119
make -j
120+
cd ../..
122121
```

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
1616
FROM build-base AS poco-build
1717

1818
ARG POCO_VERSION
19-
20-
ADD https://api.github.com/repos/AriliaWireless/poco/git/refs/tags/${POCO_VERSION} version.json
21-
RUN git clone https://github.com/AriliaWireless/poco --branch ${POCO_VERSION} /poco
19+
ADD https://api.github.com/repos/Telecominfraproject/wlan-cloud-lib-poco/git/refs/tags/${POCO_VERSION} version.json
20+
RUN git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch ${POCO_VERSION} /poco
2221

2322
WORKDIR /poco
2423
RUN mkdir cmake-build
@@ -31,8 +30,8 @@ FROM build-base AS cppkafka-build
3130

3231
ARG CPPKAFKA_VERSION
3332

34-
ADD https://api.github.com/repos/AriliaWireless/cppkafka/git/refs/tags/${CPPKAFKA_VERSION} version.json
35-
RUN git clone https://github.com/AriliaWireless/cppkafka --branch ${CPPKAFKA_VERSION} /cppkafka
33+
ADD https://api.github.com/repos/Telecominfraproject/wlan-cloud-lib-cppkafka/git/refs/tags/${CPPKAFKA_VERSION} version.json
34+
RUN git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch ${CPPKAFKA_VERSION} /cppkafka
3635

3736
WORKDIR /cppkafka
3837
RUN mkdir cmake-build

0 commit comments

Comments
 (0)