File: opencv_3.1.patch

package info (click to toggle)
cimg 1.7.9%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 22,524 kB
  • ctags: 5,050
  • sloc: cpp: 114,701; ansic: 73,904; makefile: 583; sh: 119
file content (24 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author:  Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Last-Update: Wed, 19 Oct 2016 04:24:01 UTC
Bug-Debian: https://bugs.debian.org/841264
Description: Fix build with Opencv 3.1
 -----
 ....
 /usr/bin/ld: /tmp/ccuYcVc5.o: undefined reference to symbol 'cvWriteFrame'
 //usr/lib/x86_64-linux-gnu/libopencv_videoio.so.3.1: error adding symbols: DSO
 //missing from command line
 collect2: error: ld returned 1 exit status
 Makefile:248: recipe for target 'CImg_demo' failed
 -----

--- a/examples/Makefile
+++ b/examples/Makefile
@@ -149,7 +149,7 @@ endif
 CIMG_OPENCV_DEFINE = -Dcimg_use_opencv
 CIMG_OPENCV_INCDIR = `pkg-config opencv --cflags || echo -I/usr/include/opencv` -I/usr/include/opencv
 CIMG_OPENCV_CFLAGS = $(CIMG_OPENCV_DEFINE) $(CIMG_OPENCV_INCDIR)
-CIMG_OPENCV_LIBS = `pkg-config opencv --libs || echo -lopencv_core -lopencv_highgui`
+CIMG_OPENCV_LIBS = `pkg-config opencv --libs || echo -lopencv_core -lopencv_highgui -lopencv_videoio`
 
 # Flags used to disable display capablities of CImg
 CIMG_NODISPLAY_CFLAGS = -Dcimg_display=0