Updated by Alexander Shishkov almost 13 years ago
Sun Studio's C++ standard library has certain features disabled for ABI compatibility, which unfortunately causes Studio to be unable to build OpenCV.
<pre>
The following member function definition in include/opencv/cxmat.hpp also fails to compile:
<pre><code class="cpp"> <pre>
#!C++
inline Mat::operator MatExpr_<Mat, Mat>() const
{ return MatExpr_<Mat, Mat>(*this); }
</cpde></pre> </pre>
The error is:
<pre>
808: Error: In this declaration "e" is of an incomplete type "cv::MatExpr_Op4_<cv::Mat, cv::Mat, double, char, cv::Mat, cv::MatOp_MulDiv_<cv::Mat>>".
"/export/home/trisk/packages/BUILD/OpenCV-2.1.0/include/opencv/cxmat.hpp", line 806: Where: While specializing "cv::MatExpr_<cv::MatExpr_Op4_<cv::Mat, cv::Mat, double, char, cv::Mat, cv::MatOp_MulDiv_<cv::Mat>>, cv::Mat>".
"/export/home/trisk/packages/BUILD/OpenCV-2.1.0/include/opencv/cxmat.hpp", line 806: Where: Specialized in cv::MatExpr_<cv::Mat, cv::Mat>.
"/export/home/trisk/packages/BUILD/OpenCV-2.1.0/include/opencv/cxmat.hpp", line 839: Where: Specialized in non-template code.
"/export/home/trisk/packages/BUILD/OpenCV-2.1.0/src/cxcore/cxmatmul.cpp", line 2666: Warning: mean hides cv::PCA::mean.
</pre>
I have applied workarounds for these issues in the following patch:
https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk/patches/opencv-03-sunpro.diff
This patch also includes the workaround for #329.
<pre>
The following member function definition in include/opencv/cxmat.hpp also fails to compile:
<pre><code class="cpp"> <pre>
#!C++
inline Mat::operator MatExpr_<Mat, Mat>() const
{ return MatExpr_<Mat, Mat>(*this); }
</cpde></pre> </pre>
The error is:
<pre>
808: Error: In this declaration "e" is of an incomplete type "cv::MatExpr_Op4_<cv::Mat, cv::Mat, double, char, cv::Mat, cv::MatOp_MulDiv_<cv::Mat>>".
"/export/home/trisk/packages/BUILD/OpenCV-2.1.0/include/opencv/cxmat.hpp", line 806: Where: While specializing "cv::MatExpr_<cv::MatExpr_Op4_<cv::Mat, cv::Mat, double, char, cv::Mat, cv::MatOp_MulDiv_<cv::Mat>>, cv::Mat>".
"/export/home/trisk/packages/BUILD/OpenCV-2.1.0/include/opencv/cxmat.hpp", line 806: Where: Specialized in cv::MatExpr_<cv::Mat, cv::Mat>.
"/export/home/trisk/packages/BUILD/OpenCV-2.1.0/include/opencv/cxmat.hpp", line 839: Where: Specialized in non-template code.
"/export/home/trisk/packages/BUILD/OpenCV-2.1.0/src/cxcore/cxmatmul.cpp", line 2666: Warning: mean hides cv::PCA::mean.
</pre>
I have applied workarounds for these issues in the following patch:
https://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk/patches/opencv-03-sunpro.diff
This patch also includes the workaround for #329.