Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Commit 0459120

Browse files
committed
* updating libcluon to v0.0.140
* compile fixes on M1 Signed-off-by: Christian Berger <christian.berger@gu.se>
1 parent 1c9075b commit 0459120

File tree

4 files changed

+3575
-2783
lines changed

4 files changed

+3575
-2783
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2018 Christian Berger
1+
# Copyright (C) 2022 Christian Berger
22
#
33
# This program is free software: you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@ project(opendlv-video-h264-decoder)
2020
################################################################################
2121
# Defining the relevant versions of OpenDLV Standard Message Set and libcluon.
2222
set(OPENDLV_STANDARD_MESSAGE_SET opendlv-standard-message-set-v0.9.6.odvd)
23-
set(CLUON_COMPLETE cluon-complete-v0.0.121.hpp)
23+
set(CLUON_COMPLETE cluon-complete-v0.0.140.hpp)
2424

2525
################################################################################
2626
# Set the search path for .cmake files.

Dockerfile.amd64 renamed to Dockerfile

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2018 Christian Berger
1+
# Copyright (C) 2022 Christian Berger
22
#
33
# This program is free software: you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -14,51 +14,55 @@
1414
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1515

1616
# Part to build opendlv-video-h264-decoder.
17-
FROM ubuntu:18.04 as builder
17+
FROM ubuntu:20.04 as builder
1818
MAINTAINER Christian Berger "christian.berger@gu.se"
19+
ENV DEBIAN_FRONTEND=noninteractive
1920
RUN apt-get update -y && \
2021
apt-get upgrade -y && \
2122
apt-get dist-upgrade -y && \
2223
apt-get install -y --no-install-recommends \
2324
ca-certificates \
2425
cmake \
25-
build-essential \
26+
make \
27+
linux-headers-generic \
2628
git \
2729
libx11-dev \
2830
nasm \
31+
clang \
2932
wget
3033
RUN cd tmp && \
3134
git clone https://chromium.googlesource.com/libyuv/libyuv && \
3235
cd libyuv &&\
33-
git checkout -b working 2525698acba9bf9b701ba6b4d9584291a1f62257 && \
34-
make -f linux.mk libyuv.a && cp libyuv.a /usr/lib/x86_64-linux-gnu && cd include && cp -r * /usr/include
36+
git checkout -b working eb6e7bb63738e29efd82ea3cf2a115238a89fa51 && \
37+
make -f linux.mk CXX=clang++ libyuv.a && if [ `uname -m` = aarch64 ] ; then cp libyuv.a /usr/lib/aarch64-linux-gnu ; else cp libyuv.a /usr/lib/x86_64-linux-gnu ; fi && cd include && cp -r * /usr/include
3538
RUN cd tmp && \
36-
git clone --depth 1 --branch v2.0.0 https://github.com/cisco/openh264.git && \
37-
cd openh264 && mkdir b && cd b \
38-
make -j2 -f ../Makefile libraries && make -f ../Makefile install
39+
git clone --depth 1 --branch v2.2.0 https://github.com/cisco/openh264.git && \
40+
cd openh264 && mkdir b && cd b && \
41+
ln -sf /usr/bin/clang++-10 /usr/bin/g++ && \
42+
ln -sf /usr/bin/clang-10 /usr/bin/cc && \
43+
if [ `uname -m` = aarch64 ] ; then make ARCH=arm64 -j2 -f ../Makefile libraries ; else make -j2 -f ../Makefile libraries ; fi && make -f ../Makefile install
3944
ADD . /opt/sources
4045
WORKDIR /opt/sources
4146
RUN mkdir build && \
4247
cd build && \
4348
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/tmp .. && \
4449
make && make install
45-
RUN cd /tmp && wget http://ciscobinary.openh264.org/libopenh264-2.0.0-linux64.5.so.bz2
50+
RUN cd /tmp && if [ `uname -m` = aarch64 ] ; then wget http://ciscobinary.openh264.org/libopenh264-2.2.0-linux-arm64.6.so.bz2 && mv libopenh264-2.2.0-linux-arm64.6.so.bz2 libopenh264.so.6.bz2 ; else wget http://ciscobinary.openh264.org/libopenh264-2.2.0-linux64.6.so.bz2 && mv libopenh264-2.2.0-linux64.6.so.bz2 libopenh264.so.6.bz2 ; fi
4651

4752
# Part to deploy opendlv-video-h264-decoder.
48-
FROM ubuntu:18.04
53+
FROM ubuntu:20.04
4954
MAINTAINER Christian Berger "christian.berger@gu.se"
5055

5156
RUN apt-get update -y && \
5257
apt-get upgrade -y && \
5358
apt-get dist-upgrade -y && \
5459
apt-get install -y --no-install-recommends libx11-6
5560

56-
WORKDIR /usr/lib/x86_64-linux-gnu
57-
COPY --from=builder /tmp/libopenh264-2.0.0-linux64.5.so.bz2 .
58-
RUN bunzip2 libopenh264-2.0.0-linux64.5.so.bz2 && \
59-
ln -sf libopenh264-2.0.0-linux64.5.so libopenh264.so.5
61+
WORKDIR /tmp
62+
COPY --from=builder /tmp/libopenh264.so.6.bz2 .
63+
RUN bunzip2 libopenh264.so.6.bz2 && \
64+
if [ `uname -m` = aarch64 ] ; then mv /tmp/libopenh264.so.6 /usr/lib/aarch64-linux-gnu/libopenh264.so.6 ; else mv /tmp/libopenh264.so.6 /usr/lib/x86_64-linux-gnu/libopenh264.so.6 ; fi
6065

6166
WORKDIR /usr/bin
6267
COPY --from=builder /tmp/bin/opendlv-video-h264-decoder .
6368
ENTRYPOINT ["/usr/bin/opendlv-video-h264-decoder"]
64-

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ version: '2' # Must be present exactly once at the beginning of the docker-compo
4747
services: # Must be present exactly once at the beginning of the docker-compose.yml file
4848
video-h264-decoder-amd64:
4949
build:
50-
context: https://github.com/chalmers-revere/opendlv-video-h264-decoder.git#v0.0.4
50+
context: https://github.com/chalmers-revere/opendlv-video-h264-decoder.git#v0.0.5
5151
dockerfile: Dockerfile.amd64
5252
restart: on-failure
5353
network_mode: "host"

0 commit comments

Comments
 (0)