port graphics/opencv 4.6.0_16 building problem - ninja: build stopped: subcommand failed.

Hi,
I have been trying to build graphics/opencv with custom options (added gtk3 and ffmpeg).

On one computer I have no problems to build port and install.
AMD Ryzen 5 4500U with Radeon Graphics
FreeBSD 14.0-RELEASE-p6

On other, it is ending with error.
Intel(R) Xeon(R) CPU E5-2667 v3
14.0-RELEASE-p6

Both use ports from quarterly repository.

Port is from main repository, branch 2024Q1, commit c302c31eba10

Code:
FAILED: modules/sfm/src/libmv/libmv/simple_pipeline/CMakeFiles/simple_pipeline.dir/bundle.cc.o
/usr/local/libexec/ccache/c++ -DCERES_FOUND=1 -DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -DGLOG_NO_ABBREVIATED_SEVERITIES -DVK_NO_PROTOTYPES -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/ports/graphics/opencv/work/opencv-4.6.0/include/opencv -I/usr/ports/graphics/opencv/work/opencv-4.6.0/contrib/modules/sfm/src/libmv_light -I/usr/ports/graphics/opencv/work/.build/3rdparty/ippicv/ippicv_lnx/icv/include -I/usr/ports/graphics/opencv/work/.build/3rdparty/ippicv/ippicv_lnx/iw/include -I/usr/ports/graphics/opencv/work/opencv-4.6.0/contrib/modules/sfm/include -I/usr/ports/graphics/opencv/work/.build/modules/sfm -I/usr/ports/graphics/opencv/work/opencv-4.6.0/modules/core/include -I/usr/ports/graphics/opencv/work/opencv-4.6.0/modules/flann/include -I/usr/ports/graphics/opencv/work/opencv-4.6.0/modules/imgproc/include -I/usr/ports/graphics/opencv/work/opencv-4.6.0/modules/ml/include -I/usr/ports/graphics/opencv/work/opencv-4.6.0/modules/features2d/include -I/usr/ports/graphics/opencv/work/opencv-4.6.0/modules/imgcodecs/include -I/usr/ports/graphics/opencv/work/opencv-4.6.0/modules/calib3d/include -I/usr/ports/graphics/opencv/work/opencv-4.6.0/contrib/modules/shape/include -I/usr/ports/graphics/opencv/work/opencv-4.6.0/contrib/modules/xfeatures2d/include -isystem /usr/ports/graphics/opencv/work/.build -isystem /usr/local/include/eigen3 -O2 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-prototypes -Wstrict-prototypes -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -Wno-deprecated-enum-enum-conversion -Wno-deprecated-anon-enum-enum-conversion -fdiagnostics-show-option -Wno-long-long -pthread -Qunused-arguments -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-undef -Wno-shadow -Wno-sign-compare -Wno-missing-declarations -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-function -Wno-suggest-override -Wno-inconsistent-missing-override -Wno-suggest-override -Wno-deprecated-copy -O2 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -DNDEBUG  -DNDEBUG -std=c++17 -fPIC -MD -MT modules/sfm/src/libmv/libmv/simple_pipeline/CMakeFiles/simple_pipeline.dir/bundle.cc.o -MF modules/sfm/src/libmv/libmv/simple_pipeline/CMakeFiles/simple_pipeline.dir/bundle.cc.o.d -o modules/sfm/src/libmv/libmv/simple_pipeline/CMakeFiles/simple_pipeline.dir/bundle.cc.o -c /usr/ports/graphics/opencv/work/opencv-4.6.0/contrib/modules/sfm/src/libmv_light/libmv/simple_pipeline/bundle.cc
/usr/ports/graphics/opencv/work/opencv-4.6.0/contrib/modules/sfm/src/libmv_light/libmv/simple_pipeline/bundle.cc:552:17: error: no member named 'SetParameterization' in 'ceres::Problem'
        problem.SetParameterization(current_camera_R_t,
        ~~~~~~~ ^
1 error generated.

Makefile:
# /etc/make.conf
DEVELOPER=yes

CFLAGS=-O2

WITH_CCACHE_BUILD=yes

Could be this due to the processor architecture?
 
Back
Top