Bug#1147481: alicevision: FTBFS with OpenCV 5.0
Aron Xu
aron at debian.org
Sat Sep 12 10:03:19 BST 2026
Source: alicevision
Version: 3.3.7+repack-1
Severity: important
Tags: ftbfs
User: opencv at packages.debian.org
Usertags: opencv5-transition
Control: affects -1 src:opencv
X-Debbugs-Cc: opencv at packages.debian.org, aron at debian.org
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.
alicevision fails because src/CMakeLists.txt:548 calls find_package(OpenCV
...) requesting the features2d component, and CMake reports "Could NOT
find OpenCV (missing: features2d) (found version "5.0.0")", so
OpenCV_FOUND stays FALSE even though OpenCVConfig.cmake was located under
/usr/lib/x86_64-linux-gnu/cmake/opencv5. The guard at
src/CMakeLists.txt:564 then aborts configure with "Failed to find
OpenCV." The maintainer should change the component name in that
find_package(OpenCV COMPONENTS ...) call from features2d to features, the
name OpenCV 5.0 exports for the component now shipped by
libopencv-features-dev.
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.
-- Performing Test check_cxx_compiler_flag__faligned_new
-- Performing Test check_cxx_compiler_flag__faligned_new - Success
-- Found OpenMP_C: -fopenmp (found version "5.2")
-- Found OpenMP_CXX: -fopenmp (found version "5.2")
-- Found OpenMP: TRUE (found version "5.2") found components: C CXX
-- OpenMP found.
-- Boost found.
-- Found Threads: TRUE
-- OpenEXR found. (Version 3.4.15)
-- OpenImageIO found.
-- Expat found.
-- Did not find MOSEK header
-- Did not find MOSEK library
-- Could not find mosek library on this machine.
-- Trying to find package Ceres for aliceVision:
-- Found AMD headers in: /usr/include/suitesparse
-- Found AMD library: /usr/lib/x86_64-linux-gnu/libamd.so
-- Found CAMD headers in: /usr/include/suitesparse
-- Found CAMD library: /usr/lib/x86_64-linux-gnu/libcamd.so
-- Found CCOLAMD headers in: /usr/include/suitesparse
-- Found CCOLAMD library: /usr/lib/x86_64-linux-gnu/libccolamd.so
-- Found CHOLMOD headers in: /usr/include/suitesparse
-- Found CHOLMOD library: /usr/lib/x86_64-linux-gnu/libcholmod.so
-- Found COLAMD headers in: /usr/include/suitesparse
-- Found COLAMD library: /usr/lib/x86_64-linux-gnu/libcolamd.so
-- Found SPQR headers in: /usr/include/suitesparse
-- Found SPQR library: /usr/lib/x86_64-linux-gnu/libspqr.so
-- Found Config headers in: /usr/include/suitesparse
-- Found Config library: /usr/lib/x86_64-linux-gnu/libsuitesparseconfig.so
-- Found Intel Thread Building Blocks (TBB) library (2023.1 / )
include location: . Assuming SuiteSparseQR was compiled with TBB.
-- Looking for shm_open in rt
-- Looking for shm_open in rt - found
-- Adding librt to SuiteSparse_config libraries (required on Linux &
Unix [not OSX] if SuiteSparse is compiled with timing).
-- Found METIS: /usr/include (found version "5.1.0")
-- Looking for cholmod_metis
-- Looking for cholmod_metis - found
-- Ceres include dirs
-- Ceres libraries Ceres::ceres
-- CERES_LIBRARIES: Ceres::ceres
-- CERES_INCLUDE_DIRS:
-- Assimp: assimp::assimp, /usr/include;/usr/include,
-- Could NOT find OpenCV (missing: features2d) (found version "5.0.0")
CMake Warning at src/CMakeLists.txt:548 (find_package):
Found package configuration file:
/usr/lib/x86_64-linux-gnu/cmake/opencv5/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.
CMake Error at src/CMakeLists.txt:564 (message):
Failed to find OpenCV.
-- Alembic version 1.8.9 found.
-- Could NOT find pxr (missing: pxr_DIR)
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3.2")
-- Found Geogram: /usr/lib/x86_64-linux-gnu/libgeogram.so
-- Geogram: /usr/lib/x86_64-linux-gnu/libgeogram.so, /usr/include/geogram1
-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - /usr/bin/nvcc
-- BUILD_SHARED_LIBS ON
-- The CUDA compiler identification is NVIDIA 12.4.131 with host
compiler GNU 12.5.0
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found CUDAToolkit: /usr/include (found suitable version
"12.4.131", minimum required is "11.0")
-- CUDA found: 12.4.131
-- CUDA Version is 12.4.131
-- AdaptiveCpp will use GCC toolchain from /usr
CMake Warning at src/CMakeLists.txt:805 (find_package):
By not providing "FindAdaptiveCpp.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"AdaptiveCpp", but CMake did not find one.
Could not find a package configuration file provided by "AdaptiveCpp" with
any of the following names:
AdaptiveCpp.cps
adaptivecpp.cps
AdaptiveCppConfig.cmake
adaptivecpp-config.cmake
Add the installation prefix of "AdaptiveCpp" to CMAKE_PREFIX_PATH or set
"AdaptiveCpp_DIR" to a directory containing one of the above files. If
"AdaptiveCpp" provides a separate development package or SDK, be sure it
has been installed.
-- Found SWIG: /usr/bin/swig (found version "4.5.0")
-- SWIG found.
-- Found Python3: /usr/bin/python3 (found version "3.14.7") found
components: Interpreter Development.Module NumPy
-- AprilTag found.
generatedDir:
/build/reproducible-path/alicevision-3.3.7+repack/obj-x86_64-linux-gnu/src/generated
** AliceVision version: 3.4.0
** Target architecture:
** Build Shared libs: ON
** Build SfM part: ON
** Build MVS part: ON
** Build LIDAR part: OFF
** Build AliceVision tests: OFF
** Build AliceVision documentation: 0
** Build AliceVision+OpenCV samples programs: 0
** Build UncertaintyTE: 0
** Build MeshSDFilter: 1
** Build Alembic exporter: 1
** Build SWIG Python binding: ON
** Enable code coverage generation: OFF
** Enable OpenMP parallelization: 1
** Use CUDA: 1
** Use SYCL: 0
** Use OpenCV SIFT features: 0
** Use PopSift feature extractor: 0
** Use CCTAG markers: 0
** Use AprilTag markers: 1
** Use ONNX: 0
** Use ONNX with CUDA: 0
-- EIGEN:
-- CERES: 2.2.0
-- FLANN:
-- LEMON:
-- SWIG: 4.5.0
-- Python: 3.14.7
-- Configuring incomplete, errors occurred!
Please close this bug if it turns out to be a collision with another ongoing
transition rather than an OpenCV 5 problem.
Thanks,
Aron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alicevision_3.3.7+repack-1_amd64-2026-09-12T04:18:45Z.build.gz
Type: application/x-gzip
Size: 72226 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20260912/6253db16/attachment-0003.bin>
More information about the debian-science-maintainers
mailing list