Updated by Andrey Kamaev about 13 years ago

build With Solaris Studio 12.3 on Solaris 11 fails with the below error.
This is because variable length arrays are not part of the c++ standard and studio (unfortunately) does not support it.

The attached patch adds studio to the existing workaround for MSVC

<pre>
--------------------
cd /opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/build/modules/features2d && /opt/test2/SolarisStudio12.3-solaris-x86-bin/solarisstudio12.3/bin/CC -Dopencv_features2d_EXPORTS -DHAVE_CVCONFIG_H -DCVAPI_EXPORTS -xO3 -DNDEBUG -KPIC -I/usr/lib/python2.6/vendor-packages/numpy/core/include -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/. -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/build -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/include -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/include/opencv -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/include -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/src -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/build/modules/features2d -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/../core/include -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/../imgproc/include -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/../highgui/include -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/../flann/include -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/test -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/../features2d/include -I/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/../ts/include -D PYTHON_USE_NUMPY=1 -o CMakeFiles/opencv_features2d.dir/src/sift.o -c /opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/src/sift.cpp
"/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/../flann/include/opencv2/flann/defines.h", line 124: Warning: Identifier expected instead of "}".
"/opt/test2/packages/BUILD/OpenCV-2.3.1a/i386/OpenCV-2.3.1/modules/features2d/src/sift.cpp", line 324: Error: An integer constant expression is required within the array subscript operator.
</pre>

Back