I'm trying to install OpenCV 2.4.2 on Solaris. But I have some issues.
I run:
export CFLAGS=-std=c99
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..
And all is ok. But when I run:
gmake
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.o
In file included from /export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/core.hpp:49,
from /export/home/Glimpuse/OpenCV-2.4.2/modules/core/src/precomp.hpp:50,
from /export/home/Glimpuse/OpenCV-2.4.2/modules/core/src/algorithm.cpp:43:
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:331:25: emmintrin.h: No such file or directory
In file included from /export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/core.hpp:49,
from /export/home/Glimpuse/OpenCV-2.4.2/modules/core/src/precomp.hpp:50,
from /export/home/Glimpuse/OpenCV-2.4.2/modules/core/src/algorithm.cpp:43:
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h: In function `int cvFloor(double)':
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:337: error: `__m128d' undeclared (first use this function)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:337: error: (Each undeclared identifier is reported only once for each function it appears in.)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:337: error: expected `;' before "t"
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:338: error: `t' undeclared (first use this function)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:338: error: `_mm_cvtsd_si32' undeclared (first use this function)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:339: error: `_mm_cvtsi32_sd' undeclared (first use this function)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:339: error: `_mm_cmplt_sd' undeclared (first use this function)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:339: error: `_mm_movemask_pd' undeclared (first use this function)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h: In function `int cvCeil(double)':
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:355: error: `__m128d' undeclared (first use this function)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:355: error: expected `;' before "t"
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:356: error: `t' undeclared (first use this function)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:356: error: `_mm_cvtsd_si32' undeclared (first use this function)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:357: error: `_mm_cvtsi32_sd' undeclared (first use this function)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:357: error: `_mm_cmplt_sd' undeclared (first use this function)
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/types_c.h:357: error: `_mm_movemask_pd' undeclared (first use this function)
In file included from /export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/core.hpp:4612,
from /export/home/Glimpuse/OpenCV-2.4.2/modules/core/src/precomp.hpp:50,
from /export/home/Glimpuse/OpenCV-2.4.2/modules/core/src/algorithm.cpp:43:
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/operations.hpp: At global scope:
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/operations.hpp:3905: error: got 2 template parameters for `void cv::AlgorithmInfo::addParam(cv::Algorithm&, const char*, cv::Ptr<_Tp2>&, bool, cv::Ptr<_Tp2> (cv::Algorithm::*)(), void (cv::Algorithm::*)(const cv::Ptr<_Tp2>&), const std::string&)'
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/operations.hpp:3905: error: but 1 required
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/operations.hpp:3914: error: redefinition of `void cv::AlgorithmInfo::addParam(cv::Algorithm&, const char*, cv::Ptr<_Tp2>&, bool, cv::Ptr<_Tp2> (cv::Algorithm::*)(), void (cv::Algorithm::*)(const cv::Ptr<_Tp2>&), const std::string&)'
/export/home/Glimpuse/OpenCV-2.4.2/modules/core/include/opencv2/core/operations.hpp:3905: error: `void cv::AlgorithmInfo::addParam(cv::Algorithm&, const char*, cv::Ptr<_Tp2>&, bool, cv::Ptr<_Tp2> (cv::Algorithm::*)(), void (cv::Algorithm::*)(const cv::Ptr<_Tp2>&), const std::string&)' previously declared here
gmake[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.o] Error 1
gmake[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
gmake: *** [all] Error 2