Dear maintainer,
Your package fails to build from source against opencv 5.0.0+dfsg-1~exp1,
currently in experimental.
OpenCV 5.0 renames its entire install tree from opencv4 to opencv5 and ships
no compatibility shims:
* pkg-config: only /usr/lib/<triplet>/pkgconfig/opencv5.pc. There is no
opencv4.pc and no opencv.pc.
* headers: /usr/include/opencv5/opencv2/..., no /usr/include/opencv4.
* cmake: /usr/lib/<triplet>/cmake/opencv5/OpenCVConfig.cmake. A bare
find_package(OpenCV) still resolves, but a pinned version
such as find_package(OpenCV 4.7) no longer matches.
* modules: libopencv-calib3d-dev is split into libopencv-calib-dev,
libopencv-geometry-dev, libopencv-stereo-dev and
libopencv-ptcloud-dev; libopencv-features2d-dev becomes
libopencv-features-dev. The CMake component names change
with them (features2d -> features).
* geometry: the new geometry module is not only a piece of calib3d. It
also absorbs shape and contour functions that used to live
in imgproc -- contourArea, arcLength, approxPolyDP,
boundingRect, minAreaRect, convexHull and
getPerspectiveTransform among them -- and opencv2/opencv.hpp
does not pull in opencv2/geometry.hpp, so code that reached
those through the umbrella header now needs an explicit
include of opencv2/geometry.hpp.
In auto-multiple-choice's case the build hardcodes the OpenCV 4 include
directory. The command that builds AMC-detect ends with
"-I /usr/include/opencv4 -lopencv_core -lopencv_imgproc
-lopencv_imgcodecs", and that directory does not exist under OpenCV 5,
whose headers live in /usr/include/opencv5. With no usable include path
AMC-detect.cc:40 and AMC-buildpdf.cc fail at "fatal error:
opencv2/core/core.hpp: No such file or directory", aborting the Makefile
targets AMC-detect (Makefile:134) and AMC-buildpdf (Makefile:137). The
missing header is a symptom of the wrong -I, not of a header that went
away. Replacing the hardcoded path and library list with a pkg-config
query, e.g. $(shell pkg-config --cflags --libs opencv5), would make the
build follow the install tree instead of pinning a version-specific path.
The same source builds fine in the same chroot against the OpenCV 4.10
packages currently in unstable, so this is specific to OpenCV 5.
The relevant part of the build log follows; the full log is attached.
gcc -o AMC-detect AMC-detect.cc -Wdate-time -D_FORTIFY_SOURCE=2 -g
-O2 -ffile-prefix-map=/build/reproducible-path/auto-multiple-choice-1.7.0=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -Wl,-z,relro -Wl,-z,now
-lstdc++ -lm -I /usr/include/open [...]
gcc -o AMC-buildpdf AMC-buildpdf.cc -Wdate-time -D_FORTIFY_SOURCE=2
-g -O2 -ffile-prefix-map=/build/reproducible-path/auto-multiple-choice-1.7.0=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -Wl,-z,relro -Wl,-z,now
-lstdc++ -lm -I/usr/include/p [...]
gcc -o AMC-pdfformfields pdfformfields.c -Wdate-time
-D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration
-ffile-prefix-map=/build/reproducible-path/auto-multiple-choice-1.7.0=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -Wl,-z,relr [...]
rsvg-convert -w 32 -h 32 icons/auto-multiple-choice.svg -o
icons/auto-multiple-choice.png
gzip -n -k -S z icons/auto-multiple-choice.svg
make -C doc
make -C I18N
rsvg-convert -a -w 16 -h 16 icons/auto-multiple-choice.svg -o
icons/auto-multiple-choice-16.png ; rsvg-convert -a -w 22 -h 22
icons/auto-multiple-choice.svg -o icons/auto-multiple-choice-22.png ;
rsvg-convert -a -w 24 -h 24 icons/auto-multiple-choice.svg -o
icons/auto-multiple-choice-24.png ; rsv [...]
make[3]: Entering directory
'/build/reproducible-path/auto-multiple-choice-1.7.0/doc'
rsvg-convert -f pdf img_src/important.svg -o img_pdf/important.pdf
make[3]: Entering directory
'/build/reproducible-path/auto-multiple-choice-1.7.0/I18N'
msgfmt lang/ar.po -o lang/ar.mo
rsvg-convert -f pdf img_src/note.svg -o img_pdf/note.pdf
msgfmt lang/ca.po -o lang/ca.mo
rsvg-convert -f pdf img_src/warning.svg -o img_pdf/warning.pdf
msgfmt lang/de.po -o lang/de.mo
dblatex -P latex.encoding=utf8 -b xetex -t tex -p custom.xsl
--texstyle=amcdocstyle --xslt-opts="--nonet" --xslt-opts="--catalogs"
auto-multiple-choice.en.xml -o auto-multiple-choice.en.tex
dblatex -P latex.encoding=utf8 -b xetex -t tex -p custom.xsl
--texstyle=amcdocstyle --xslt-opts="--nonet" --xslt-opts="--catalogs"
auto-multiple-choice.fr.xml -o auto-multiple-choice.fr.tex
dblatex -P latex.encoding=utf8 -b xetex -t tex -p custom.xsl
--texstyle=amcdocstyle --xslt-opts="--nonet" --xslt-opts="--catalogs"
auto-multiple-choice.ja.xml -o auto-multiple-choice.ja.tex
msgfmt lang/es.po -o lang/es.mo
/usr/bin/env perl extrait-fichiers.pl --liste
auto-multiple-choice.en.ext auto-multiple-choice.en.xml
msgfmt lang/fr.po -o lang/fr.mo
xsltproc --nonet --catalogs --param man.charmap.use.subset "0"
--param make.year.ranges "1" --param make.single.year.ranges "1"
--param man.output.lang.in.name.enabled "1"
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
auto-multiple-choice.en.xml
rm -f html/auto-multiple-choice.en/*.html
/usr/bin/env perl extrait-fichiers.pl --liste
auto-multiple-choice.fr.ext auto-multiple-choice.fr.xml
msgfmt lang/ja.po -o lang/ja.mo
xsltproc --nonet --catalogs --param man.charmap.use.subset "0"
--param make.year.ranges "1" --param make.single.year.ranges "1"
--param man.output.lang.in.name.enabled "1"
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
auto-multiple-choice.fr.xml
msgfmt lang/pt_BR.po -o lang/pt_BR.mo
rm -f html/auto-multiple-choice.fr/*.html
Variable $SGML_CATALOG_FILES not set
pngtopnm icons/auto-multiple-choice.png | ppmtoxpm >
icons/auto-multiple-choice.xpm
msgfmt lang/pt_PT.po -o lang/pt_PT.mo
Variable $SGML_CATALOG_FILES not set
msgfmt lang/ta.po -o lang/ta.mo
ppmtoxpm: (Computing colormap...
ppmtoxpm: ...Done. 32 colors found.)
xsltproc --nonet --catalogs --stringparam base.dir
html/auto-multiple-choice.en/ doc-xhtml.xsl
auto-multiple-choice.en.xml
/usr/bin/env perl extrait-fichiers.pl --liste
auto-multiple-choice.ja.ext auto-multiple-choice.ja.xml
xsltproc --nonet --catalogs --param man.charmap.use.subset "0"
--param make.year.ranges "1" --param make.single.year.ranges "1"
--param man.output.lang.in.name.enabled "1"
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
auto-multiple-choice.ja.xml
rm -f html/auto-multiple-choice.ja/*.html
rsvg-convert -w 24 -h 24 img_src/important.svg -o html/images/important.png
Variable $SGML_CATALOG_FILES not set
rsvg-convert -w 24 -h 24 img_src/note.svg -o html/images/note.png
rsvg-convert -w 24 -h 24 img_src/warning.svg -o html/images/warning.png
xsltproc --nonet --catalogs --stringparam base.dir
html/auto-multiple-choice.fr/ doc-xhtml.xsl
auto-multiple-choice.fr.xml
rsvg-convert -w 12 -h 12 img_src/callouts/1.svg -o html/images/callouts/1.png
Variable $SGML_CATALOG_FILES not set
rsvg-convert -w 12 -h 12 img_src/callouts/10.svg -o
html/images/callouts/10.png
xsltproc --nonet --catalogs --stringparam base.dir
html/auto-multiple-choice.ja/ doc-xhtml.xsl
auto-multiple-choice.ja.xml
rsvg-convert -w 12 -h 12 img_src/callouts/11.svg -o
html/images/callouts/11.png
Variable $SGML_CATALOG_FILES not set
rsvg-convert -w 12 -h 12 img_src/callouts/12.svg -o
html/images/callouts/12.png
rsvg-convert -w 12 -h 12 img_src/callouts/13.svg -o
html/images/callouts/13.png
Variable $SGML_CATALOG_FILES not set
rsvg-convert -w 12 -h 12 img_src/callouts/14.svg -o
html/images/callouts/14.png
rsvg-convert -w 12 -h 12 img_src/callouts/15.svg -o
html/images/callouts/15.png
rsvg-convert -w 12 -h 12 img_src/callouts/2.svg -o html/images/callouts/2.png
rsvg-convert -w 12 -h 12 img_src/callouts/3.svg -o html/images/callouts/3.png
rsvg-convert -w 12 -h 12 img_src/callouts/4.svg -o html/images/callouts/4.png
rsvg-convert -w 12 -h 12 img_src/callouts/5.svg -o html/images/callouts/5.png
rsvg-convert -w 12 -h 12 img_src/callouts/6.svg -o html/images/callouts/6.png
rsvg-convert -w 12 -h 12 img_src/callouts/7.svg -o html/images/callouts/7.png
rsvg-convert -w 12 -h 12 img_src/callouts/8.svg -o html/images/callouts/8.png
rsvg-convert -w 12 -h 12 img_src/callouts/9.svg -o html/images/callouts/9.png
find modeles/ar/groups.d -type d -exec chmod 0755 '{}' \;
find modeles/ar/scoring.d -type d -exec chmod 0755 '{}' \;
AMC-detect.cc:40:10: fatal error: opencv2/core/core.hpp: No such
file or directory
40 | #include "opencv2/core/core.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
find modeles/ar/groups.d -type f -exec chmod 0644 '{}' \;
make[2]: *** [Makefile:134: AMC-detect] Error 1
make[2]: *** Waiting for unfinished jobs....
find modeles/ar/scoring.d -type f -exec chmod 0644 '{}' \;
tar cn -C modeles/ar/groups.d --sort=name --owner=root --group=root
--numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/ar/groups.tgz
find modeles/ar/separate.d -type d -exec chmod 0755 '{}' \;
find modeles/ar/simple.d -type d -exec chmod 0755 '{}' \;
find modeles/en/Nominative-sheets-separateanswersheet.d -type d
-exec chmod 0755 '{}' \;
find modeles/en/Nominative-sheets.d -type d -exec chmod 0755 '{}' \;
find modeles/en/topics-latex.d -type d -exec chmod 0755 '{}' \;
find modeles/fr/Pre-remplies-ensemble.d -type d -exec chmod 0755 '{}' \;
find modeles/fr/Pre-remplies.d -type d -exec chmod 0755 '{}' \;
find modeles/ar/separate.d -type f -exec chmod 0644 '{}' \;
find modeles/ar/simple.d -type f -exec chmod 0644 '{}' \;
find modeles/en/Nominative-sheets-separateanswersheet.d -type f
-exec chmod 0644 '{}' \;
find modeles/en/Nominative-sheets.d -type f -exec chmod 0644 '{}' \;
tar cn -C modeles/ar/scoring.d --sort=name --owner=root --group=root
--numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/ar/scoring.tgz
find modeles/en/topics-latex.d -type f -exec chmod 0644 '{}' \;
find modeles/fr/topics-latex.d -type d -exec chmod 0755 '{}' \;
find modeles/fr/Pre-remplies-ensemble.d -type f -exec chmod 0644 '{}' \;
find modeles/fr/Pre-remplies.d -type f -exec chmod 0644 '{}' \;
find modeles/fr/topics-latex.d -type f -exec chmod 0644 '{}' \;
make[3]: Leaving directory
'/build/reproducible-path/auto-multiple-choice-1.7.0/I18N'
find modeles/other/survey.d -type d -exec chmod 0755 '{}' \;
/usr/bin/env perl ./index.pl auto-multiple-choice.en
auto-multiple-choice.fr auto-multiple-choice.ja > html/index.html
tar cn -C modeles/ar/separate.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/ar/separate.tgz
tar cn -C modeles/ar/simple.d --sort=name --owner=root --group=root
--numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/ar/simple.tgz
find modeles/other/survey.d -type f -exec chmod 0644 '{}' \;
tar cn -C modeles/en/Nominative-sheets-separateanswersheet.d
--sort=name --owner=root --group=root --numeric-owner
--mtime=@1451602800 -O . | gzip -n -c >
modeles/en/Nominative-sheets-separateanswersheet.tgz
tar cn -C modeles/en/Nominative-sheets.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/en/Nominative-sheets.tgz
tar cn -C modeles/en/topics-latex.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/en/topics-latex.tgz
tar cn -C modeles/fr/Pre-remplies-ensemble.d --sort=name
--owner=root --group=root --numeric-owner --mtime=@1451602800 -O . |
gzip -n -c > modeles/fr/Pre-remplies-ensemble.tgz
tar cn -C modeles/fr/Pre-remplies.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/fr/Pre-remplies.tgz
tar cn -C modeles/fr/topics-latex.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/fr/topics-latex.tgz
tar cn -C modeles/other/survey.d --sort=name --owner=root
--group=root --numeric-owner --mtime=@1451602800 -O . | gzip -n -c >
modeles/other/survey.tgz
Warn: AUTHOR sect.: no personblurb|contrib for Alexis Bienvenüe
Note: AUTHOR sect.: see http://www.docbook.org/tdg5/en/html/contr
Note: AUTHOR sect.: see http://www.docbook.org/tdg5/en/html/perso
Warn: AUTHOR sect.: no personblurb|contrib for Frédéric Bréal
Note: AUTHOR sect.: see http://www.docbook.org/tdg5/en/html/contr
Note: AUTHOR sect.: see http://www.docbook.org/tdg5/en/html/perso
Build the book set list...
Variable $SGML_CATALOG_FILES not set
Build the book set list...
Variable $SGML_CATALOG_FILES not set
*** File auto-multiple-choice.en.xml
I lang=en
* extracting modeles/en/simple-txt
embedded description / N=AMC-TXT format simple example
* extracting modeles/en/simple-txt-nominative-sheets
* extracting modeles/en/simple
embedded description / N=Simple example
* extracting modeles/en/groups
embedded description / N=Groups
* extracting modeles/en/separate
embedded description / N=Separate answers
* extracting modeles/en/scoring
embedded description / N=Scoring strategy
Build the book set list...
Variable $SGML_CATALOG_FILES not set
In file included from AMC-buildpdf.cc:23:
buildpdf.cc:42:10: fatal error: opencv2/core/core.hpp: No such file
or directory
42 | #include "opencv2/core/core.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:137: AMC-buildpdf] Error 1
Please close this bug if it turns out to be a collision with another ongoing
transition rather than an OpenCV 5 problem.
Thanks,
Aron