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 doc/sty/ >
gcc -o AMC-detect -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro
 -lstdc++ -lm -I /usr/include/opencv -lopencv_core -lopencv_highgui
/usr/bin/ld: /tmp/ccppjzVB.o: undefined reference to symbol 'cvLoadImage'
//usr/lib/x86_64-linux-gnu/ 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 Iwamatsu
   iwamatsu at { /}
   GPG ID: 40AD1FA6

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

Description: Binary data

Reply via email to