Source: auto-multiple-choice
Version: 1.3.0-1
Severity: important
Justification: fails to build from source
Tags: patch

Dear Maintainer,

I am scheduled to transition of opecv.
This package is subject to transition. I tested build with opencv 3.1.
As a result, FTBFS with opencv 3.1.
Cause is that libopencv_imgcodecs library is not specified at the time
of the library of the link.

-----
perl -p vars-subs.pl doc/sty/automultiplechoice.dtx.in >
doc/sty/automultiplechoice.dtx
gcc -o AMC-detect AMC-detect.cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
-fdebug-prefix-map=/home/iwamatsu/priv/debian/ocv/auto-multiple-choice/auto-multiple-choice-1.3.0=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro
 -lstdc++ -lm -I /usr/include/opencv -lopencv_core -lopencv_highgui
-lopencv_imgproc
/usr/bin/ld: /tmp/ccppjzVB.o: undefined reference to symbol 'cvLoadImage'
//usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so.3.1: error adding
symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:123: recipe for target 'AMC-detect' failed
make[1]: *** [AMC-detect] Error 1
-----

I attached a patch that revice this problem.
Could you check this patch and apply?

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6

Attachment: fix-build-with-opencv-3.1
Description: Binary data

Attachment: auto-multiple-choice_1.3.0-1_amd64.build
Description: Binary data

Reply via email to