Skip to contentSkip to conversation

sdlcam: Only build if using libjpeg

PATCH New Chris Mayo 1 participant 1 message Jan 14, 2018 Media (V4L/DVB)

lore
Share & tools
lore

Chris Mayo

author
#0 lore raw

PATCH 1/1 sdlcam: Only build if using libjpeg

---

Otherwise build fails on linking:

libtool: link: x86_64-pc-linux-gnu-gcc -march=ivybridge -ftree-vectorize -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o pixfmt-test pixfmt_test-pixfmt-test.o -lX11 /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: sdlcam-sdlcam.o: undefined reference to symbol 'jpeg_set_quality@@LIBJPEG_6.2' /usr/lib64/libjpeg.so.62: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:558: sdlcam] Error 1

Affects released v4l-utils-1.14.1.

 contrib/test/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)
contrib/test/Makefile.am +2 -0
index 0188fe214..c7c38e7a6 100644
@@ -17,8 +17,10 @@ noinst_PROGRAMS += v4l2gl
 endif
 
 if HAVE_SDL
+if HAVE_JPEG
 noinst_PROGRAMS += sdlcam
 endif
+endif
 
 driver_test_SOURCES = driver-test.c
 driver_test_LDADD = ../../utils/libv4l2util/libv4l2util.la
Signature · 1 line
2.13.6