Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation 1.5.2 #85

Open
hfarner opened this issue Jul 11, 2023 · 1 comment
Open

compilation 1.5.2 #85

hfarner opened this issue Jul 11, 2023 · 1 comment

Comments

@hfarner
Copy link

hfarner commented Jul 11, 2023

Bonjour Maël,

j'avais installé la version via brew, mais c'est la version 1.5.0, de plus il a fallu que je fasse une installation sur le MAC
de la version adwaita-icon-theme-41 en lieu et place de la 42 je n'avais pas les icônes dans AMC.

je souhaitais faire une compilation directement depuis les sources de la version 1.5.2, donc j'ai besoin pour schenariichain 6.1 avec un module AMC.
Mais j'ai des erreurs avec mon mac intel sous Monterey 12.6

/Applications/Xcode.app/Contents/Developer/usr/bin/make auto-multiple-choice net.auto_multiple_choice.amc.desktop AMC-gui.pl AMC-latex-link.pl AMC-mailing.pl AMC-perl/AMC/Basic.pm AMC-perl/AMC/Gui/Main.pm AMC-perl/AMC/Gui/APropos.glade doc/doc-xhtml-site.fr.xsl doc/doc-xhtml-site.ja.xsl doc/doc-xhtml-site.en.xsl doc/amcdocstyle.sty doc/doc-xhtml.xsl doc/auto-multiple-choice.en.xml doc/auto-multiple-choice.fr.xml doc/auto-multiple-choice.ja.xml doc/sty/automultiplechoice.dtx make[1]: auto-multiple-choice' is up to date.
make[1]: net.auto_multiple_choice.amc.desktop' is up to date. make[1]: AMC-gui.pl' is up to date.
make[1]: AMC-latex-link.pl' is up to date. make[1]: AMC-mailing.pl' is up to date.
make[1]: AMC-perl/AMC/Basic.pm' is up to date. make[1]: AMC-perl/AMC/Gui/Main.pm' is up to date.
make[1]: AMC-perl/AMC/Gui/APropos.glade' is up to date. make[1]: doc/doc-xhtml-site.fr.xsl' is up to date.
make[1]: doc/doc-xhtml-site.ja.xsl' is up to date. make[1]: doc/doc-xhtml-site.en.xsl' is up to date.
make[1]: doc/amcdocstyle.sty' is up to date. make[1]: doc/doc-xhtml.xsl' is up to date.
make[1]: doc/auto-multiple-choice.en.xml' is up to date. make[1]: doc/auto-multiple-choice.fr.xml' is up to date.
make[1]: doc/auto-multiple-choice.ja.xml' is up to date. make[1]: doc/sty/automultiplechoice.dtx' is up to date.
/Applications/Xcode.app/Contents/Developer/usr/bin/make AMC-detect AMC-buildpdf AMC-pdfformfields
gcc -o AMC-detect AMC-detect.cc -O2 -lstdc++ -lm -I/usr/local/opt/opencv/include/opencv4 -L/usr/local/opt/opencv/lib -lopencv_gapi -lopencv_stitching -lopencv_alphamat -lopencv_aruco -lopencv_barcode -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dnn_superres -lopencv_dpm -lopencv_face -lopencv_freetype -lopencv_fuzzy -lopencv_hfs -lopencv_img_hash -lopencv_intensity_transform -lopencv_line_descriptor -lopencv_mcc -lopencv_quality -lopencv_rapid -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_sfm -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_superres -lopencv_optflow -lopencv_surface_matching -lopencv_tracking -lopencv_highgui -lopencv_datasets -lopencv_text -lopencv_plot -lopencv_videostab -lopencv_videoio -lopencv_viz -lopencv_wechat_qrcode -lopencv_xfeatures2d -lopencv_shape -lopencv_ml -lopencv_ximgproc -lopencv_video -lopencv_xobjdetect -lopencv_objdetect -lopencv_calib3d -lopencv_imgcodecs -lopencv_features2d -lopencv_dnn -lopencv_flann -lopencv_xphoto -lopencv_photo -lopencv_imgproc -lopencv_core
In file included from AMC-detect.cc:40:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core/core.hpp:48:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core.hpp:52:
/usr/local/opt/opencv/include/opencv4/opencv2/core/cvdef.h:781:4: error: "OpenCV 4.x+ requires enabled C++11 support"

error "OpenCV 4.x+ requires enabled C++11 support"

^
In file included from AMC-detect.cc:40:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core/core.hpp:48:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core.hpp:53:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core/base.hpp:58:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core/cvstd.hpp:81:
/usr/local/opt/opencv/include/opencv4/opencv2/core/cvstd_wrapper.hpp:40:44: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<typename C, typename Ret, typename... Args>
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/cvstd_wrapper.hpp:86:22: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
inline Ptr(Ptr&& o) CV_NOEXCEPT : std::shared_ptr(std::move(o)) {}
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/cvstd_wrapper.hpp:89:43: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
template inline Ptr(Ptr&& o) CV_NOEXCEPT : std::shared_ptr(std::move(o)) {}
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/cvstd_wrapper.hpp:92:34: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
inline Ptr(std::shared_ptr&& o) CV_NOEXCEPT : std::shared_ptr(std::move(o)) {}
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/cvstd_wrapper.hpp:102:23: warning: default template arguments for a function template are a C++11 extension [-Wc++11-extensions]
template
^ ~
/usr/local/opt/opencv/include/opencv4/opencv2/core/cvstd_wrapper.hpp:142:33: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<typename Tp, typename ... A1> static inline
^
In file included from AMC-detect.cc:40:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core/core.hpp:48:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core.hpp:56:
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:143:15: error: no template named 'initializer_list' in namespace 'std'
Matx(std::initializer_list<Tp>); //!< initialize from an initializer list
~~~~~^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:370:14: error: no template named 'initializer_list' in namespace 'std'
Vec(std::initializer_list<Tp>);
~~~~~^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:693:28: error: no template named 'initializer_list' in namespace 'std'
Matx<Tp, m, n>::Matx(std::initializer_list<Tp> list)
~~~~~^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:697:15: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for(const auto& elem : list)
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:697:26: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for(const auto& elem : list)
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:1045:24: error: no template named 'initializer_list' in namespace 'std'
Vec<Tp, cn>::Vec(std::initializer_list<Tp> list)
~~~~~^
In file included from AMC-detect.cc:40:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core/core.hpp:48:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core.hpp:57:
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:174:32: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Point
(const Point
& pt) = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:175:18: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Point
(Point
&& pt) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:175:39: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Point
(Point
&& pt) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:184:45: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Point
& operator = (const Point_& pt) = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:185:31: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Point_& operator = (Point_&& pt) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:185:52: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Point_& operator = (Point_&& pt) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:263:34: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Point3_(const Point3_& pt) = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:264:20: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Point3_(Point3_&& pt) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:264:41: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Point3_(Point3_&& pt) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:270:47: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Point3_& operator = (const Point3_& pt) = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:271:33: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Point3_& operator = (Point3_&& pt) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:271:54: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Point3_& operator = (Point3_&& pt) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:343:30: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Size_(const Size_& sz) = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:344:16: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Size_(Size_&& sz) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:344:37: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Size_(Size_&& sz) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:349:43: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Size_& operator = (const Size_& sz) = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:350:29: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Size_& operator = (Size_&& sz) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:350:50: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Size_& operator = (Size_&& sz) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:452:29: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Rect_(const Rect_& r) = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:453:16: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Rect_(Rect_&& r) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:453:36: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Rect_(Rect_&& r) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:459:42: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Rect_& operator = (const Rect_& r) = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:460:29: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Rect_& operator = (Rect_&& r) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:460:49: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
Rect_& operator = (Rect_&& r) CV_NOEXCEPT = default;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:672:20: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Scalar_(Scalar_&& s) CV_NOEXCEPT;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:675:31: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Scalar_& operator=(Scalar_&& s) CV_NOEXCEPT;
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2148:35: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Scalar_<Tp>::Scalar(Scalar_<Tp>&& s) CV_NOEXCEPT {
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2165:51: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
Scalar
<Tp>& Scalar<Tp>::operator=(Scalar<Tp>&& s) CV_NOEXCEPT {
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2348:29: error: no member named 'val' in 'cv::Scalar
'
return Scalar_(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2348:43: error: no member named 'val' in 'cv::Scalar_'
return Scalar_(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2348:57: error: no member named 'val' in 'cv::Scalar_'
return Scalar_(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2348:71: error: no member named 'val' in 'cv::Scalar_'
return Scalar_(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2355:30: error: no member named 'val' in 'cv::Scalar_'
return Scalar_(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2355:44: error: no member named 'val' in 'cv::Scalar_'
return Scalar_(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2355:58: error: no member named 'val' in 'cv::Scalar_'
return Scalar_(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2355:72: error: no member named 'val' in 'cv::Scalar_'
return Scalar_(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2388:24: error: no matching constructor for initialization of 'Matx<double, 4, 1>'
Matx<double, 4, 1> c((Matx<double, 4, 4>)a, b, Matx_MatMulOp());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:212:28: note: candidate constructor template not viable: no known conversion from 'Matx<[2 * ...], 4>' to 'const Matx<[2 * ...], 1 aka 1>' for 1st argument
template Matx(const Matx<_Tp, m, n>& a, _T2 alpha, Matx_ScaleOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:122:5: note: candidate constructor not viable: no known conversion from 'Matx<double, 4, 4>' to 'double' for 1st argument
Matx(_Tp v0, _Tp v1, _Tp v2); //!< 1x3 or 3x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:210:5: note: candidate constructor not viable: no known conversion from 'Matx<[2 * ...], 4>' to 'const Matx<[2 * ...], 1 aka 1>' for 1st argument
Matx(const Matx<_Tp, m, n>& a, const Matx<_Tp, m, n>& b, Matx_AddOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:211:5: note: candidate constructor not viable: no known conversion from 'Matx<[2 * ...], 4>' to 'const Matx<[2 * ...], 1 aka 1>' for 1st argument
Matx(const Matx<_Tp, m, n>& a, const Matx<_Tp, m, n>& b, Matx_SubOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:213:5: note: candidate constructor not viable: no known conversion from 'Matx<[2 * ...], 4>' to 'const Matx<[2 * ...], 1 aka 1>' for 1st argument
Matx(const Matx<_Tp, m, n>& a, const Matx<_Tp, m, n>& b, Matx_MulOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:214:5: note: candidate constructor not viable: no known conversion from 'Matx<[2 * ...], 4>' to 'const Matx<[2 * ...], 1 aka 1>' for 1st argument
Matx(const Matx<_Tp, m, n>& a, const Matx<Tp, m, n>& b, Matx_DivOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:215:21: note: candidate template ignored: could not match 'Matx' against 'Scalar
'
template Matx(const Matx<_Tp, m, l>& a, const Matx<_Tp, l, n>& b, Matx_MatMulOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:121:5: note: candidate constructor not viable: requires 2 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1); //!< 1x2 or 2x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:216:5: note: candidate constructor not viable: requires 2 arguments, but 3 were provided
Matx(const Matx<_Tp, n, m>& a, Matx_TOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:123:5: note: candidate constructor not viable: requires 4 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3); //!< 1x4, 2x2 or 4x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:120:14: note: candidate constructor not viable: requires single argument 'v0', but 3 arguments were provided
explicit Matx(_Tp v0); //!< 1x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:141:14: note: candidate constructor not viable: requires single argument 'vals', but 3 arguments were provided
explicit Matx(const _Tp* vals); //!< initialize from a plain array
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:99:44: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
template<typename _Tp, int m, int n> class Matx
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:124:5: note: candidate constructor not viable: requires 5 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4); //!< 1x5 or 5x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:118:5: note: candidate constructor not viable: requires 0 arguments, but 3 were provided
Matx();
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:125:5: note: candidate constructor not viable: requires 6 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4, _Tp v5); //!< 1x6, 2x3, 3x2 or 6x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:126:5: note: candidate constructor not viable: requires 7 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4, _Tp v5, _Tp v6); //!< 1x7 or 7x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:127:5: note: candidate constructor not viable: requires 8 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4, _Tp v5, _Tp v6, _Tp v7); //!< 1x8, 2x4, 4x2 or 8x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:128:5: note: candidate constructor not viable: requires 9 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4, _Tp v5, _Tp v6, _Tp v7, _Tp v8); //!< 1x9, 3x3 or 9x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:129:5: note: candidate constructor not viable: requires 10 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4, _Tp v5, _Tp v6, _Tp v7, _Tp v8, _Tp v9); //!< 1x10, 2x5 or 5x2 or 10x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:130:5: note: candidate constructor not viable: requires 12 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3,
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:133:5: note: candidate constructor not viable: requires 14 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3,
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:137:5: note: candidate constructor not viable: requires 16 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3,
^
In file included from AMC-detect.cc:40:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core/core.hpp:48:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core.hpp:57:
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2395:24: error: no matching constructor for initialization of 'Matx<double, 4, 1>'
Matx<double, 4, 1> c(a, b, Matx_MatMulOp());
^ ~~~~~~~~~~~~~~~~~~~~~
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:212:28: note: candidate constructor template not viable: no known conversion from 'const Matx<[2 * ...], 4>' to 'const Matx<[2 * ...], 1 aka 1>' for 1st argument
template Matx(const Matx<_Tp, m, n>& a, _T2 alpha, Matx_ScaleOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:122:5: note: candidate constructor not viable: no known conversion from 'const Matx<double, 4, 4>' to 'double' for 1st argument
Matx(_Tp v0, _Tp v1, _Tp v2); //!< 1x3 or 3x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:210:5: note: candidate constructor not viable: no known conversion from 'const Matx<[2 * ...], 4>' to 'const Matx<[2 * ...], 1 aka 1>' for 1st argument
Matx(const Matx<_Tp, m, n>& a, const Matx<_Tp, m, n>& b, Matx_AddOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:211:5: note: candidate constructor not viable: no known conversion from 'const Matx<[2 * ...], 4>' to 'const Matx<[2 * ...], 1 aka 1>' for 1st argument
Matx(const Matx<_Tp, m, n>& a, const Matx<_Tp, m, n>& b, Matx_SubOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:213:5: note: candidate constructor not viable: no known conversion from 'const Matx<[2 * ...], 4>' to 'const Matx<[2 * ...], 1 aka 1>' for 1st argument
Matx(const Matx<_Tp, m, n>& a, const Matx<_Tp, m, n>& b, Matx_MulOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:214:5: note: candidate constructor not viable: no known conversion from 'const Matx<[2 * ...], 4>' to 'const Matx<[2 * ...], 1 aka 1>' for 1st argument
Matx(const Matx<_Tp, m, n>& a, const Matx<Tp, m, n>& b, Matx_DivOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:215:21: note: candidate template ignored: could not match 'Matx' against 'Scalar
'
template Matx(const Matx<_Tp, m, l>& a, const Matx<_Tp, l, n>& b, Matx_MatMulOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:121:5: note: candidate constructor not viable: requires 2 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1); //!< 1x2 or 2x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:216:5: note: candidate constructor not viable: requires 2 arguments, but 3 were provided
Matx(const Matx<_Tp, n, m>& a, Matx_TOp);
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:123:5: note: candidate constructor not viable: requires 4 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3); //!< 1x4, 2x2 or 4x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:120:14: note: candidate constructor not viable: requires single argument 'v0', but 3 arguments were provided
explicit Matx(_Tp v0); //!< 1x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:141:14: note: candidate constructor not viable: requires single argument 'vals', but 3 arguments were provided
explicit Matx(const _Tp* vals); //!< initialize from a plain array
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:99:44: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
template<typename _Tp, int m, int n> class Matx
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:124:5: note: candidate constructor not viable: requires 5 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4); //!< 1x5 or 5x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:118:5: note: candidate constructor not viable: requires 0 arguments, but 3 were provided
Matx();
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:125:5: note: candidate constructor not viable: requires 6 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4, _Tp v5); //!< 1x6, 2x3, 3x2 or 6x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:126:5: note: candidate constructor not viable: requires 7 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4, _Tp v5, _Tp v6); //!< 1x7 or 7x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:127:5: note: candidate constructor not viable: requires 8 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4, _Tp v5, _Tp v6, _Tp v7); //!< 1x8, 2x4, 4x2 or 8x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:128:5: note: candidate constructor not viable: requires 9 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4, _Tp v5, _Tp v6, _Tp v7, _Tp v8); //!< 1x9, 3x3 or 9x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:129:5: note: candidate constructor not viable: requires 10 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3, _Tp v4, _Tp v5, _Tp v6, _Tp v7, _Tp v8, _Tp v9); //!< 1x10, 2x5 or 5x2 or 10x1 matrix
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:130:5: note: candidate constructor not viable: requires 12 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3,
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:133:5: note: candidate constructor not viable: requires 14 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3,
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/matx.hpp:137:5: note: candidate constructor not viable: requires 16 arguments, but 3 were provided
Matx(_Tp v0, _Tp v1, _Tp v2, _Tp v3,
^
In file included from AMC-detect.cc:40:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core/core.hpp:48:
In file included from /usr/local/opt/opencv/include/opencv4/opencv2/core.hpp:58:
/usr/local/opt/opencv/include/opencv4/opencv2/core/mat.hpp:198:59: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
_InputArray(const std::vector<std::vector >&) = delete; // not supported
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/mat.hpp:323:44: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
_OutputArray(std::vector& vec) = delete; // not supported
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/mat.hpp:325:54: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
_OutputArray(std::vector<std::vector >&) = delete; // not supported
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/mat.hpp:397:49: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
_InputOutputArray(std::vector& vec) = delete; // not supported
^
/usr/local/opt/opencv/include/opencv4/opencv2/core/mat.hpp:1029:29: error: no template named 'initializer_list' in namespace 'std'
explicit Mat(const std::initializer_list<_Tp> list);
~~~~~^
/usr/local/opt/opencv/include/opencv4/opencv2/core/mat.hpp:1028:37: warning: default template arguments for a function template are a C++11 extension [-Wc++11-extensions]
template<typename _Tp, typename = typename std::enable_if<std::is_arithmetic<_Tp>::value>::type>
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/opt/opencv/include/opencv4/opencv2/core/mat.hpp:1033:52: error: no template named 'initializer_list' in namespace 'std'
template explicit Mat(const std::initializer_list sizes, const std::initializer_list<_Tp> list);
~~~~~^
/usr/local/opt/opencv/include/opencv4/opencv2/core/mat.hpp:1033:92: error: no template named 'initializer_list' in namespace 'std'
template explicit Mat(const std::initializer_list sizes, const std::initializer_list<Tp> list);
~~~~~^
/usr/local/opt/opencv/include/opencv4/opencv2/core/mat.hpp:2025:66: error: a space is required between consecutive right angle brackets (use '> >')
template std::reverse_iterator<MatIterator
<_Tp>> rbegin();
^~
> >
fatal error: too many errors emitted, stopping now [-ferror-limit=]
41 warnings and 20 errors generated.
make[1]: *** [AMC-detect] Error 1
make: *** [all_precomp] Error 2`

@hfarner
Copy link
Author

hfarner commented Jul 11, 2023

Est ce que tu aurais une piste pour moi ?
Merci d'avance
Hervé

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant