Commit c6930bf2 authored by Alberto Mardegan's avatar Alberto Mardegan Committed by Alberto Mardegan

CI: Build our own libdbus

relocation error:
/tmp/.mount_ImaginBMa8mx/usr/plugins/platforms/../../lib/libQt5DBus.so.5:
symbol dbus_message_set_allow_interactive_authorization, version
LIBDBUS_1_3 not defined in file libdbus-1.so.3 with link time reference
parent 37cc192e
......@@ -12,11 +12,13 @@ stages:
before_script:
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
- PACKAGES+=libexpat1-dev # for libdbus
- |
apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y \
pkg-config libglu1-mesa-dev libopencv-imgproc-dev libopencv-objdetect-dev \
sqlite3 gcovr \
wget
wget \
$PACKAGES
- ln -f /usr/bin/g++-7 /usr/bin/g++
- ln -f /usr/bin/gcc-7 /usr/bin/gcc
- ln -f /usr/bin/gcov-7 /usr/bin/gcov
......@@ -26,11 +28,13 @@ build_dependencies:
cache:
paths:
- apt-cache/
- dbus
- exiv2
artifacts:
paths:
- staging
script:
- DBUS_DIR="$PWD/dbus"
- STAGING="$PWD/staging"
# Build Exiv2
......@@ -58,6 +62,20 @@ build_dependencies:
- cat $STAGING/include/exiv2/convert.hpp >> tmp_header
- mv tmp_header $STAGING/include/exiv2/convert.hpp
# Build libdbus
- DBUS_VERSION="1.12.12"
- mkdir -p "$DBUS_DIR" && cd "$DBUS_DIR"
- if [ ! -d "dbus-${DBUS_VERSION}" ]; then
- if [ ! -f "dbus-${DBUS_VERSION}" ]; then
- wget -c -nv "https://dbus.freedesktop.org/releases/dbus/dbus-${DBUS_VERSION}.tar.gz"
- tar xzf "dbus-${DBUS_VERSION}.tar.gz"
- fi
- fi
- cd "dbus-${DBUS_VERSION}"
- LDFLAGS="-static-libgcc" ./configure --disable-Werror --disable-stats --prefix=/usr --localstatedir=/var --sysconfdir=/etc
- make -j8
- make DESTDIR="$STAGING" install
build_desktop:
stage: build
script:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment