From 7ff15793cc14401ecb0cf4b67307acdd4bcc3684 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 11 Jan 2019 01:14:51 -0800 Subject: [PATCH] Disable extraneous data warning from libjpeg (#53) These are common with some USB cameras. --- deps/02-extract.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/02-extract.sh b/deps/02-extract.sh index d6d2c6e..1bd551e 100755 --- a/deps/02-extract.sh +++ b/deps/02-extract.sh @@ -33,6 +33,9 @@ popd tar xzf ../01-download/3.4.4.tar.gz mv opencv-3.4.4 opencv sed -i -e 's/javac sourcepath/javac target="1.8" source="1.8" sourcepath/' opencv/modules/java/jar/build.xml.in +# disable extraneous data warnings; these are common with USB cameras +sed -i -e '/JWRN_EXTRANEOUS_DATA/d' opencv/3rdparty/libjpeg/jdmarker.c +sed -i -e '/JWRN_EXTRANEOUS_DATA/d' opencv/3rdparty/libjpeg-turbo/src/jdmarker.c # toolchain setup for opencv and wpilib cp ../arm-pi-gnueabihf.toolchain.cmake .