Skip to content

Commit

Permalink
add to install ilbjpeg-turbo for compressed_image_transport
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed May 10, 2023
1 parent 61379fd commit 9632ce3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jsk_naoqi_robot/cross/repos/ros1_dependencies.repos
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 9632ce3

Please sign in to comment.