mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-10-29 09:52:29 +00:00
WIFI-12939: change to TIP repos for libraries
Signed-off-by: Carsten Schafer <Carsten.Schafer@kinarasystems.com>
This commit is contained in:
62
BUILDING.md
62
BUILDING.md
@@ -1,6 +1,6 @@
|
|||||||
# Building from source
|
# Building from source
|
||||||
|
|
||||||
In order to build the OWSEC, you will need to install its dependencies, which includes the following:
|
In order to build OWSEC, you will need to install its dependencies, which includes the following:
|
||||||
- cmake
|
- cmake
|
||||||
- boost
|
- boost
|
||||||
- POCO 1.10.1 or later
|
- 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
|
|||||||
|
|
||||||
The build is done in 2 parts. The first part is to build a local copy of the framework tailored to your environment. This
|
The build is done in 2 parts. The first part is to build a local copy of the framework tailored to your environment. This
|
||||||
framework is called [Poco](https://github.com/pocoproject/poco). The version used in this project has a couple of fixes
|
framework is called [Poco](https://github.com/pocoproject/poco). The version used in this project has a couple of fixes
|
||||||
from the master copy needed for cmake. Please use the version of this [Poco fix](https://github.com/AriliaWireless/poco). Building
|
from the master copy needed for cmake. Please use the version of this [Poco fix](https://github.com/Telecominfraproject/wlan-cloud-lib-poco). Building
|
||||||
Poco may take several minutes depending on the platform you are building on.
|
Poco may take several minutes depending on the platform you are building on.
|
||||||
|
|
||||||
## Ubuntu
|
## Ubuntu
|
||||||
These instructions have proven to work on Ubuntu 20.4.
|
These instructions have proven to work on Ubuntu 20.4.
|
||||||
```bash
|
```bash
|
||||||
sudo apt install git cmake g++ libssl-dev libmariadb-dev
|
sudo apt install git cmake g++ libssl-dev libmariadb-dev \
|
||||||
sudo apt install libpq-dev libaprutil1-dev apache2-dev libboost-all-dev
|
libpq-dev libaprutil1-dev apache2-dev libboost-all-dev \
|
||||||
sudo apt install librdkafka-dev default-libmysqlclient-dev
|
librdkafka-dev default-libmysqlclient-dev \
|
||||||
sudo apt install nlohmann-json-dev
|
nlohmann-json-dev
|
||||||
|
|
||||||
cd ~
|
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1 poco
|
||||||
git clone https://github.com/AriliaWireless/poco --branch poco-tip-v1
|
|
||||||
cd poco
|
cd poco
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
cd cmake-build
|
cd cmake-build
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
sudo cmake --build . --target install
|
sudo cmake --build . --target install
|
||||||
|
cd ../..
|
||||||
|
|
||||||
cd ~
|
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch tip-v1 cppkafka
|
||||||
git clone https://github.com/AriliaWireless/cppkafka --branch tip-v1
|
|
||||||
cd cppkafka
|
cd cppkafka
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
cd cmake-build
|
cd cmake-build
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
sudo cmake --build . --target install
|
sudo cmake --build . --target install
|
||||||
|
cd ../..
|
||||||
|
|
||||||
cd ~
|
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-valijson --branch tip-v1 valijson
|
||||||
git clone https://github.com/AriliaWireless/valijson --branch tip-v1
|
|
||||||
cd valijson
|
cd valijson
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
cd cmake-build
|
cd cmake-build
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
sudo cmake --build . --target install
|
sudo cmake --build . --target install
|
||||||
|
cd ../..
|
||||||
|
|
||||||
git clone https://github.com/fmtlib/fmt --branch 9.0.0 /fmtlib
|
git clone https://github.com/fmtlib/fmt --branch 9.0.0 /fmtlib
|
||||||
cd fmtlib
|
cd fmtlib
|
||||||
@@ -58,56 +58,59 @@ cd cmake-build
|
|||||||
cmake ..
|
cmake ..
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
cd ../..
|
||||||
|
|
||||||
cd ~
|
|
||||||
git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralsec
|
git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralsec
|
||||||
cd wlan-cloud-ucentralsec
|
cd wlan-cloud-ucentralsec
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
cd cmake-build
|
cd cmake-build
|
||||||
cmake ..
|
cmake ..
|
||||||
make -j 8
|
make -j 8
|
||||||
|
cd ../..
|
||||||
```
|
```
|
||||||
|
|
||||||
## Fedora
|
## Fedora
|
||||||
The following instructions have proven to work on Fedora 33
|
The following instructions have proven to work on Fedora 33
|
||||||
```bash
|
```bash
|
||||||
sudo yum install cmake g++ openssl-devel mysql-devel mysql apr-util-devel boost boost-devel
|
sudo yum install cmake g++ openssl-devel mysql-devel mysql apr-util-devel boost boost-devel \
|
||||||
sudo yum install yaml-cpp-devel lua-devel
|
yaml-cpp-devel lua-devel
|
||||||
sudo dnf install postgresql.x86_64 librdkafka-devel
|
sudo dnf install postgresql.x86_64 librdkafka-devel
|
||||||
sudo dnf install postgresql-devel json-devel
|
sudo dnf install postgresql-devel json-devel
|
||||||
|
|
||||||
git clone https://github.com/AriliaWireless/poco --branch poco-tip-v1
|
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1 poco
|
||||||
cd poco
|
cd poco
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
cd cmake-build
|
cd cmake-build
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
sudo cmake --build . --target install
|
sudo cmake --build . --target install
|
||||||
|
cd ../..
|
||||||
|
|
||||||
git clone https://github.com/AriliaWireless/cppkafka --branch tip-v1
|
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch tip-v1 cppkafka
|
||||||
cd cppkafka
|
cd cppkafka
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
cd cmake-build
|
cd cmake-build
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
sudo cmake --build . --target install
|
sudo cmake --build . --target install
|
||||||
|
cd ../..
|
||||||
|
|
||||||
cd ~
|
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-valijson --branch tip-v1 valijson
|
||||||
git clone https://github.com/AriliaWireless/valijson --branch tip-v1
|
|
||||||
cd valijson
|
cd valijson
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
cd cmake-build
|
cd cmake-build
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
sudo cmake --build . --target install
|
sudo cmake --build . --target install
|
||||||
|
cd ../..
|
||||||
|
|
||||||
cd ~
|
|
||||||
git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralsec
|
git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralsec
|
||||||
cd wlan-cloud-ucentralsec
|
cd wlan-cloud-ucentralsec
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
cd cmake-build
|
cd cmake-build
|
||||||
cmake ..
|
cmake ..
|
||||||
make
|
make
|
||||||
|
cd ../..
|
||||||
```
|
```
|
||||||
|
|
||||||
## macOS Build
|
## macOS Build
|
||||||
@@ -126,7 +129,7 @@ brew install openssl \
|
|||||||
nlohmann-json \
|
nlohmann-json \
|
||||||
fmt
|
fmt
|
||||||
|
|
||||||
git clone https://github.com/AriliaWireless/poco --branch poco-tip-v1
|
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1 poco
|
||||||
pushd poco
|
pushd poco
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
push cmake-build
|
push cmake-build
|
||||||
@@ -136,7 +139,7 @@ sudo cmake --build . --target install
|
|||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
|
|
||||||
git clone https://github.com/AriliaWireless/cppkafka --branch tip-v1
|
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch tip-v1 cppkafka
|
||||||
pushd cppkafka
|
pushd cppkafka
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
pushd cmake-build
|
pushd cmake-build
|
||||||
@@ -146,10 +149,10 @@ sudo cmake --build . --target install
|
|||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
|
|
||||||
git clone https://github.com/AriliaWireless/valijson --branch tip-v1
|
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-valijson --branch tip-v1 valijson
|
||||||
cd valijson
|
pushd valijson
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
cd cmake-build
|
pushd cmake-build
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
sudo cmake --build . --target install
|
sudo cmake --build . --target install
|
||||||
@@ -172,20 +175,23 @@ support. You can build with only SQLite support by not installing the packages f
|
|||||||
adding -DSMALL_BUILD=1 on the cmake build line.
|
adding -DSMALL_BUILD=1 on the cmake build line.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt install git cmake g++ libssl-dev libaprutil1-dev apache2-dev libboost-all-dev libyaml-cpp-dev
|
sudo apt install git cmake g++ libssl-dev libaprutil1-dev apache2-dev \
|
||||||
git clone https://github.com/stephb9959/poco
|
libboost-all-dev libyaml-cpp-dev
|
||||||
|
|
||||||
|
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1 poco
|
||||||
cd poco
|
cd poco
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
cd cmake-build
|
cd cmake-build
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
sudo cmake --build . --target install
|
sudo cmake --build . --target install
|
||||||
|
cd ../..
|
||||||
|
|
||||||
cd ~
|
|
||||||
git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralsec
|
git clone https://github.com/Telecominfraproject/wlan-cloud-ucentralsec
|
||||||
cd wlan-cloud-ucentralsec
|
cd wlan-cloud-ucentralsec
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
cd cmake-build
|
cd cmake-build
|
||||||
cmake -DSMALL_BUILD=1 ..
|
cmake -DSMALL_BUILD=1 ..
|
||||||
make
|
make
|
||||||
|
cd ../..
|
||||||
```
|
```
|
||||||
|
|||||||
12
Dockerfile
12
Dockerfile
@@ -15,8 +15,8 @@ FROM build-base AS poco-build
|
|||||||
|
|
||||||
ARG POCO_VERSION
|
ARG POCO_VERSION
|
||||||
|
|
||||||
ADD https://api.github.com/repos/AriliaWireless/poco/git/refs/tags/${POCO_VERSION} version.json
|
ADD https://api.github.com/repos/Telecominfraproject/wlan-cloud-lib-poco/git/refs/tags/${POCO_VERSION} version.json
|
||||||
RUN git clone https://github.com/AriliaWireless/poco --branch ${POCO_VERSION} /poco
|
RUN git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch ${POCO_VERSION} /poco
|
||||||
|
|
||||||
WORKDIR /poco
|
WORKDIR /poco
|
||||||
RUN mkdir cmake-build
|
RUN mkdir cmake-build
|
||||||
@@ -29,8 +29,8 @@ FROM build-base AS cppkafka-build
|
|||||||
|
|
||||||
ARG CPPKAFKA_VERSION
|
ARG CPPKAFKA_VERSION
|
||||||
|
|
||||||
ADD https://api.github.com/repos/AriliaWireless/cppkafka/git/refs/tags/${CPPKAFKA_VERSION} version.json
|
ADD https://api.github.com/repos/Telecominfraproject/wlan-cloud-lib-cppkafka/git/refs/tags/${CPPKAFKA_VERSION} version.json
|
||||||
RUN git clone https://github.com/AriliaWireless/cppkafka --branch ${CPPKAFKA_VERSION} /cppkafka
|
RUN git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch ${CPPKAFKA_VERSION} /cppkafka
|
||||||
|
|
||||||
WORKDIR /cppkafka
|
WORKDIR /cppkafka
|
||||||
RUN mkdir cmake-build
|
RUN mkdir cmake-build
|
||||||
@@ -43,8 +43,8 @@ FROM build-base AS valijson-build
|
|||||||
|
|
||||||
ARG VALIJASON_VERSION
|
ARG VALIJASON_VERSION
|
||||||
|
|
||||||
ADD https://api.github.com/repos/AriliaWireless/valijson/git/refs/tags/${VALIJASON_VERSION} version.json
|
ADD https://api.github.com/repos/Telecominfraproject/wlan-cloud-lib-valijson/git/refs/tags/${VALIJASON_VERSION} version.json
|
||||||
RUN git clone https://github.com/AriliaWireless/valijson --branch ${VALIJASON_VERSION} /valijson
|
RUN git clone https://github.com/Telecominfraproject/wlan-cloud-lib-valijson --branch ${VALIJASON_VERSION} /valijson
|
||||||
|
|
||||||
WORKDIR /valijson
|
WORKDIR /valijson
|
||||||
RUN mkdir cmake-build
|
RUN mkdir cmake-build
|
||||||
|
|||||||
Reference in New Issue
Block a user