Ask Your Question

Revision history [back]

Failed to compile 3.4.1 on red hat 6.9

I tried to compile 3.4.1 on my machine with only 3 modules, core, imagecodecs, imageproc. I got a lot of compilation error (trace as following)

opencv-3.4.1/modules/imgproc/src/hal_replacement.hpp:52: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' [-Wpragmas] In file included from opencv-3.4.1/modules/imgproc/src/precomp.hpp:54, from opencv-3.4.1/modules/imgproc/src/resize.cpp:50: opencv-3.4.1/modules/imgproc/src/hal_replacement.hpp:778: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' [-Wpragmas] opencv-3.4.1/modules/imgproc/src/resize.cpp:67: error: reference to 'uint32_t' is ambiguous /usr/include/stdint.h:52: error: candidates are: typedef unsigned int uint32_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:491: error: typedef uint32_t cv::uint32_t opencv-3.4.1/modules/imgproc/src/resize.cpp:67: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:68: error: reference to 'int16_t' is ambiguous /usr/include/stdint.h:38: error: candidates are: typedef short int int16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:488: error: typedef int16_t cv::int16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:68: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:69: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:69: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:70: error: reference to 'int8_t' is ambiguous /usr/include/stdint.h:37: error: candidates are: typedef signed char int8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:486: error: typedef int8_t cv::int8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:70: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:71: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:71: error: template argument 1 is invalid opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: template-id 'hlineResizeCn<<expression error="">, <unnamed>::ufixedpoint16, 2, true, 1>' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before '' token opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before '' token opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: template-id 'hlineResizeCn<<expression error="">, <unnamed>::ufixedpoint16, 2, true, 2>' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before '' token opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before '' token opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: template-id 'hlineResizeCn<<expression error="">, <unnamed>::ufixedpoint16, 2, true, 4>' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before '' token opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before '' token opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: template-id 'hlineResizeCn<<expression error="">, <unnamed>::ufixedpoint32, 2, true, 1>' used as a declarator opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: variable or field 'hlineResizeCn' declared void opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'src' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before '' token opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'm' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before '' token opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'dst' was not declared in this scope opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int' opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: 'uint8_t' has not been declared opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: template-id 'vlineSet<<expression error="">, <unnamed>::ufixedpoint16>' for 'void<unnamed>::vlineSet(<unnamed>::ufixedpoint16, int, int)' does not match any template declaration opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: parse error in template argument list opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: 'uint8_t' has not been declared opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: template-id 'vlineResize<<expression error="">, <unnamed>::ufixedpoint16, 2>' for 'void<unnamed>::vlineResize(<unnamed>::ufixedpoint16, size_t, <unnamed>::ufixedpoint16, int, int)' does not match any template declaration opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::resize_bitExact(const uchar, size_t, int, int, uchar, size_t, int, int, int, double, double) [with ET = unsigned char, interpolation = <unnamed>::interpolationLinear<unsigned char="">]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::resize_bitExact(const uchar, size_t, int, int, uchar, size_t, int, int, int, double, double) [with ET = signed char, interpolation = <unnamed>::interpolationLinear<signed char="">]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::resize_bitExact(const uchar, size_t, int, int, uchar, size_t, int, int, int, double, double) [with ET = short unsigned int, interpolation = <unnamed>::interpolationLinear<short unsigned="" int="">]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::resize_bitExact(const uchar, size_t, int, int, uchar, size_t, int, int, int, double, double) [with ET = short int, interpolation = <unnamed>::interpolationLinear<short int="">]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::resize_bitExact(const uchar, size_t, int, int, uchar, size_t, int, int, int, double, double) [with ET = int, interpolation = <unnamed>::interpolationLinear<int>]': opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineSet(FT, ET, int) [with ET = int, FT = <unnamed>::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const cv::Range&) const [with ET = int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '<unnamed>::fixedpoint64' to 'int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineResize(FT, size_t, FT, ET, int) [with ET = int, FT = <unnamed>::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const cv::Range&) const [with ET = int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '<unnamed>::fixedpoint64::WT' to 'int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineSet(FT, ET, int) [with ET = short int, FT = <unnamed>::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const cv::Range&) const [with ET = short int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '<unnamed>::fixedpoint64' to 'short int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = short int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineResize(FT, size_t, FT, ET, int) [with ET = short int, FT = <unnamed>::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const cv::Range&) const [with ET = short int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '<unnamed>::fixedpoint64::WT' to 'short int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = short int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineSet(FT, ET, int) [with ET = short unsigned int, FT = <unnamed>::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const cv::Range&) const [with ET = short unsigned int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '<unnamed>::fixedpoint64' to 'short unsigned int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = short unsigned int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineResize(FT, size_t, FT, ET, int) [with ET = short unsigned int, FT = <unnamed>::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const cv::Range&) const [with ET = short unsigned int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '<unnamed>::fixedpoint64::WT' to 'short unsigned int' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = short unsigned int] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineSet(FT, ET, int) [with ET = signed char, FT = <unnamed>::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const cv::Range&) const [with ET = signed char, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '<unnamed>::fixedpoint64' to 'signed char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = signed char] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineResize(FT, size_t, FT, ET, int) [with ET = signed char, FT = <unnamed>::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const cv::Range&) const [with ET = signed char, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '<unnamed>::fixedpoint64::WT' to 'signed char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = signed char] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineSet(FT, ET, int) [with ET = unsigned char, FT = <unnamed>::fixedpoint64]': opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const cv::Range&) const [with ET = unsigned char, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '<unnamed>::fixedpoint64' to 'unsigned char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = unsigned char] opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineResize(FT, size_t, FT, ET, int) [with ET = unsigned char, FT = <unnamed>::fixedpoint64, int n = 2]': opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const cv::Range&) const [with ET = unsigned char, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]' opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '<unnamed>::fixedpoint64::WT' to 'unsigned char' is ambiguous opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = unsigned char] make[2]: * [modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.cpp.o] Error 1 make[1]: [modules/imgproc/CMakeFiles/opencv_imgproc.dir/all] Error 2 make: ** [all] Error 2 Steps to reproduce the command I run are

cmake -DBUILD_LIST=core,imgcodecs,imageproc .. & make Your help is highly appreciated. Thanks

click to hide/show revision 2
None

updated 2018-05-22 03:07:51 -0600

berak gravatar image

Failed to compile 3.4.1 on red hat 6.9

I tried to compile 3.4.1 on my machine with only 3 modules, core, imagecodecs, imageproc. I got a lot of compilation error (trace as following)

opencv-3.4.1/modules/imgproc/src/hal_replacement.hpp:52: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' [-Wpragmas]
 In file included from opencv-3.4.1/modules/imgproc/src/precomp.hpp:54,
 from opencv-3.4.1/modules/imgproc/src/resize.cpp:50:
 opencv-3.4.1/modules/imgproc/src/hal_replacement.hpp:778: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic' [-Wpragmas]
 opencv-3.4.1/modules/imgproc/src/resize.cpp:67: error: reference to 'uint32_t' is ambiguous
 /usr/include/stdint.h:52: error: candidates are: typedef unsigned int uint32_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:491: error: typedef uint32_t cv::uint32_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:67: error: template argument 1 is invalid
 opencv-3.4.1/modules/imgproc/src/resize.cpp:68: error: reference to 'int16_t' is ambiguous
 /usr/include/stdint.h:38: error: candidates are: typedef short int int16_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:488: error: typedef int16_t cv::int16_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:68: error: template argument 1 is invalid
 opencv-3.4.1/modules/imgproc/src/resize.cpp:69: error: reference to 'uint16_t' is ambiguous
 /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:69: error: template argument 1 is invalid
 opencv-3.4.1/modules/imgproc/src/resize.cpp:70: error: reference to 'int8_t' is ambiguous
 /usr/include/stdint.h:37: error: candidates are: typedef signed char int8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:486: error: typedef int8_t cv::int8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:70: error: template argument 1 is invalid
 opencv-3.4.1/modules/imgproc/src/resize.cpp:71: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:71: error: template argument 1 is invalid
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: parse error in template argument list
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: template-id 'hlineResizeCn<<expression error="">, error>, <unnamed>::ufixedpoint16, 2, true, 1>' used as a declarator
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: variable or field 'hlineResizeCn' declared void
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'src' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before '' '*' token
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'm' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before '' '*' token
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: 'dst' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:344: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: parse error in template argument list
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: template-id 'hlineResizeCn<<expression error="">, error>, <unnamed>::ufixedpoint16, 2, true, 2>' used as a declarator
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: variable or field 'hlineResizeCn' declared void
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'src' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before '' '*' token
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'm' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before '' '*' token
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: 'dst' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:394: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: parse error in template argument list
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: template-id 'hlineResizeCn<<expression error="">, error>, <unnamed>::ufixedpoint16, 2, true, 4>' used as a declarator
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: variable or field 'hlineResizeCn' declared void
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'src' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before '' '*' token
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'm' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before '' '*' token
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: 'dst' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:446: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous
 /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: parse error in template argument list
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous
 /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: template-id 'hlineResizeCn<<expression error="">, error>, <unnamed>::ufixedpoint32, 2, true, 1>' used as a declarator
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: variable or field 'hlineResizeCn' declared void
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: reference to 'uint16_t' is ambiguous
 /usr/include/stdint.h:50: error: candidates are: typedef short unsigned int uint16_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:489: error: typedef uint16_t cv::uint16_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'src' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before '' '*' token
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'm' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before '' '*' token
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: 'dst' was not declared in this scope
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:502: error: expected primary-expression before 'int'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: parse error in template argument list
 opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: 'uint8_t' has not been declared
 opencv-3.4.1/modules/imgproc/src/resize.cpp:553: error: template-id 'vlineSet<<expression error="">, error>, <unnamed>::ufixedpoint16>' for 'void<unnamed>::vlineSet(<unnamed>::ufixedpoint16, int, 'void<unnamed>::vlineSet(<unnamed>::ufixedpoint16*, int*, int)' does not match any template declaration
 opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: parse error in template argument list
 opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: reference to 'uint8_t' is ambiguous
 /usr/include/stdint.h:49: error: candidates are: typedef unsigned char uint8_t
 opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h:487: error: typedef uint8_t cv::uint8_t
 opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: 'uint8_t' has not been declared
 opencv-3.4.1/modules/imgproc/src/resize.cpp:583: error: template-id 'vlineResize<<expression error="">, error>, <unnamed>::ufixedpoint16, 2>' for 'void<unnamed>::vlineResize(<unnamed>::ufixedpoint16, 'void<unnamed>::vlineResize(<unnamed>::ufixedpoint16*, size_t, <unnamed>::ufixedpoint16, int, <unnamed>::ufixedpoint16*, int*, int)' does not match any template declaration
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::resize_bitExact(const uchar, uchar*, size_t, int, int, uchar, uchar*, size_t, int, int, int, double, double) [with ET = unsigned char, interpolation = <unnamed>::interpolationLinear<unsigned char="">]':
char>]':
opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::resize_bitExact(const uchar, uchar*, size_t, int, int, uchar, uchar*, size_t, int, int, int, double, double) [with ET = signed char, interpolation = <unnamed>::interpolationLinear<signed char="">]':
char>]':
opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::resize_bitExact(const uchar, uchar*, size_t, int, int, uchar, uchar*, size_t, int, int, int, double, double) [with ET = short unsigned int, interpolation = <unnamed>::interpolationLinear<short unsigned="" int="">]':
unsigned int>]':
opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::resize_bitExact(const uchar, uchar*, size_t, int, int, uchar, uchar*, size_t, int, int, int, double, double) [with ET = short int, interpolation = <unnamed>::interpolationLinear<short int="">]':
int>]':
opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::resize_bitExact(const uchar, uchar*, size_t, int, int, uchar, uchar*, size_t, int, int, int, double, double) [with ET = int, interpolation = <unnamed>::interpolationLinear<int>]':
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:746: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:747: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:748: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:749: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:3805: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp:750: error: insufficient contextual information to determine type
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineSet(FT, ET, 'void<unnamed>::vlineSet(FT*, ET*, int) [with ET = int, FT = <unnamed>::fixedpoint64]':
 opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const 'void<unnamed>::resize_bitExactInvoker<ET, FT, interp_y_len>::operator()(const cv::Range&) const [with ET = int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '<unnamed>::fixedpoint64' to 'int' is ambiguous
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = int]
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineResize(FT, 'void<unnamed>::vlineResize(FT*, size_t, FT, ET, FT*, ET*, int) [with ET = int, FT = <unnamed>::fixedpoint64, int n = 2]':
 opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const 'void<unnamed>::resize_bitExactInvoker<ET, FT, interp_y_len>::operator()(const cv::Range&) const [with ET = int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '<unnamed>::fixedpoint64::WT' to 'int' is ambiguous
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = int]
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineSet(FT, ET, 'void<unnamed>::vlineSet(FT*, ET*, int) [with ET = short int, FT = <unnamed>::fixedpoint64]':
 opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const 'void<unnamed>::resize_bitExactInvoker<ET, FT, interp_y_len>::operator()(const cv::Range&) const [with ET = short int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '<unnamed>::fixedpoint64' to 'short int' is ambiguous
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = short int]
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineResize(FT, 'void<unnamed>::vlineResize(FT*, size_t, FT, ET, FT*, ET*, int) [with ET = short int, FT = <unnamed>::fixedpoint64, int n = 2]':
 opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const 'void<unnamed>::resize_bitExactInvoker<ET, FT, interp_y_len>::operator()(const cv::Range&) const [with ET = short int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '<unnamed>::fixedpoint64::WT' to 'short int' is ambiguous
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = short int]
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineSet(FT, ET, 'void<unnamed>::vlineSet(FT*, ET*, int) [with ET = short unsigned int, FT = <unnamed>::fixedpoint64]':
 opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const 'void<unnamed>::resize_bitExactInvoker<ET, FT, interp_y_len>::operator()(const cv::Range&) const [with ET = short unsigned int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '<unnamed>::fixedpoint64' to 'short unsigned int' is ambiguous
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = short unsigned int]
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineResize(FT, 'void<unnamed>::vlineResize(FT*, size_t, FT, ET, FT*, ET*, int) [with ET = short unsigned int, FT = <unnamed>::fixedpoint64, int n = 2]':
 opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const 'void<unnamed>::resize_bitExactInvoker<ET, FT, interp_y_len>::operator()(const cv::Range&) const [with ET = short unsigned int, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '<unnamed>::fixedpoint64::WT' to 'short unsigned int' is ambiguous
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = short unsigned int]
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineSet(FT, ET, 'void<unnamed>::vlineSet(FT*, ET*, int) [with ET = signed char, FT = <unnamed>::fixedpoint64]':
 opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const 'void<unnamed>::resize_bitExactInvoker<ET, FT, interp_y_len>::operator()(const cv::Range&) const [with ET = signed char, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '<unnamed>::fixedpoint64' to 'signed char' is ambiguous
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = signed char]
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineResize(FT, 'void<unnamed>::vlineResize(FT*, size_t, FT, ET, FT*, ET*, int) [with ET = signed char, FT = <unnamed>::fixedpoint64, int n = 2]':
 opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const 'void<unnamed>::resize_bitExactInvoker<ET, FT, interp_y_len>::operator()(const cv::Range&) const [with ET = signed char, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '<unnamed>::fixedpoint64::WT' to 'signed char' is ambiguous
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = signed char]
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineSet(FT, ET, 'void<unnamed>::vlineSet(FT*, ET*, int) [with ET = unsigned char, FT = <unnamed>::fixedpoint64]':
 opencv-3.4.1/modules/imgproc/src/resize.cpp:693: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const 'void<unnamed>::resize_bitExactInvoker<ET, FT, interp_y_len>::operator()(const cv::Range&) const [with ET = unsigned char, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:550: error: conversion from '<unnamed>::fixedpoint64' to 'unsigned char' is ambiguous
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = unsigned char]
 opencv-3.4.1/modules/imgproc/src/resize.cpp: In function 'void<unnamed>::vlineResize(FT, 'void<unnamed>::vlineResize(FT*, size_t, FT, ET, FT*, ET*, int) [with ET = unsigned char, FT = <unnamed>::fixedpoint64, int n = 2]':
 opencv-3.4.1/modules/imgproc/src/resize.cpp:710: instantiated from 'void<unnamed>::resize_bitExactInvoker<et, ft,="" interp_y_len="">::operator()(const 'void<unnamed>::resize_bitExactInvoker<ET, FT, interp_y_len>::operator()(const cv::Range&) const [with ET = unsigned char, FT = <unnamed>::fixedpoint64, int interp_y_len = 2]'
 opencv-3.4.1/modules/imgproc/src/resize.cpp:4086: instantiated from here
 opencv-3.4.1/modules/imgproc/src/resize.cpp:579: error: conversion from '<unnamed>::fixedpoint64::WT' to 'unsigned char' is ambiguous
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:84: note: candidates are: <unnamed>::fixedpoint64::operator float() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:83: note: <unnamed>::fixedpoint64::operator double() const
 opencv-3.4.1/modules/imgproc/src/fixedpoint.inl.hpp:82: note: <unnamed>::fixedpoint64::operator ET() const [with ET = unsigned char]
 make[2]: * *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.cpp.o] Error 1
 make[1]:  *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/all] Error 2
 make: ** *** [all] Error 2
 

Steps to reproduce the command I run are

cmake -DBUILD_LIST=core,imgcodecs,imageproc .. & make

Your help is highly appreciated. Thanks