From 9632ce3948a6eb477ed25355604a700447b2a0b5 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Wed, 10 May 2023 13:04:22 +0900 Subject: [PATCH] add to install ilbjpeg-turbo for compressed_image_transport --- .../cross/repos/ros1_dependencies.repos | 6 ++++ .../1047-libjpeg-turbo | 30 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100755 jsk_naoqi_robot/cross/ros1_dependencies_build_scripts/1047-libjpeg-turbo diff --git a/jsk_naoqi_robot/cross/repos/ros1_dependencies.repos b/jsk_naoqi_robot/cross/repos/ros1_dependencies.repos index b45889d2ba..6d76d70a9e 100644 --- a/jsk_naoqi_robot/cross/repos/ros1_dependencies.repos +++ b/jsk_naoqi_robot/cross/repos/ros1_dependencies.repos @@ -333,3 +333,9 @@ repositories: libtheora/debian: type: tar url: http://archive.ubuntu.com/ubuntu/pool/main/libt/libtheora/libtheora_1.1.1+dfsg.1-14.debian.tar.xz + libjpeg-turbo: + type: tar + url: http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo_1.5.2.orig.tar.gz + libjpeg-turbo/debian: + type: tar + url: http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo_1.5.2-0ubuntu5.18.04.6.debian.tar.xz diff --git a/jsk_naoqi_robot/cross/ros1_dependencies_build_scripts/1047-libjpeg-turbo b/jsk_naoqi_robot/cross/ros1_dependencies_build_scripts/1047-libjpeg-turbo new file mode 100755 index 0000000000..d5c1687f9a --- /dev/null +++ b/jsk_naoqi_robot/cross/ros1_dependencies_build_scripts/1047-libjpeg-turbo @@ -0,0 +1,30 @@ +#!/bin/bash +set -xeuf -o pipefail + +DEBIAN_DIR=/home/nao/ros1_dependencies_sources/src/libjpeg-turbo/debian/debian +SOURCE_DIR=/home/nao/ros1_dependencies_sources/src/libjpeg-turbo/libjpeg-turbo-1.5.2 + +cd ${DEBIAN_DIR}/patches +if [ ! -e .patched ]; then + for patch_file in $(grep -v ^# series); do + [ -e "${patch_file}" ] || continue + OUT="$(patch -p1 --forward --directory ${SOURCE_DIR} < ${patch_file} | tee /dev/tty)" || echo "${OUT}" | grep "Skipping patch" -q || (echo "$OUT" && false) + done + touch .patched +fi + +cd ${SOURCE_DIR} + +./configure \ + --prefix=/home/nao/${INSTALL_ROOT}/ros1_dependencies \ + --enable-static --host=i686-aldebaran-linux-gnu \ + --without-simd + +make -j4 +install -m755 turbojpeg.h /home/nao/${INSTALL_ROOT}/ros1_dependencies/include/ +install -m755 .libs/libturbojpeg.a /home/nao/${INSTALL_ROOT}/ros1_dependencies/lib/ +install -m755 .libs/libturbojpeg.so /home/nao/${INSTALL_ROOT}/ros1_dependencies/lib/ +install -m755 .libs/libturbojpeg.so.0 /home/nao/${INSTALL_ROOT}/ros1_dependencies/lib/ +install -m755 .libs/libturbojpeg.so.0.1.0 /home/nao/${INSTALL_ROOT}/ros1_dependencies/lib/ +install -m755 pkgscripts/libturbojpeg.pc /home/nao/${INSTALL_ROOT}/ros1_dependencies/lib/pkgconfig/ +