Open LI Compiling

From neil.tappsville.com
Jump to navigationJump to search

Generating RPMs to be able to test develop branches

99% of the work is now in the build scripts.

Start with a Vanilla Centos7 Install

git clone https://github.com/wanduow/openli.git
cd openli
git fetch && git checkout develop

Edit the version number

vi configure.ac
---
AC_INIT(openli, 1.0.3, ....


export CI_COMMIT_REF_NAME=1.0.3-1

Compile and package

./bootstrap
./gitlab-build-rpm.sh centos7
rpms are in /root/rpmbuild/RPMS/x86_64

Install from rpms by directly specifying them:

yum install openli-collector-1.0.3-1.el7.x86_64.rpm


Problems with Compiling

Resolved in Development Branch at 20191109 OpenLI relies on several modules from WAND/general/libwandder1, errors such as collector/export_shared.h:57:5: error: unknown type name ‘wandder_buf_t’ introduced in change 1afac7e indicate that the dev package for libwandder1 needs to be updated yum update libwandder1-devel