-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1797 from k-okada/fix_pepper_cross
pixel-ring requires spidev and spidev >=3.6 requires setuptools>=61.0, which is not support python2. same as #1794
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
jsk_naoqi_robot/cross/ros1_dependencies_build_scripts/1047-libjpeg-turbo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ | ||