Installing OpenCV on Solaris

asked 2012-09-14 14:43:26 -0500

Dreyk gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

Comments

It seems that you have problems with SSE intrinsics, emmintrin.h can't be found. You can try to build OpenCV without SSE support, or find out why compiler can't see emmintrin.h file.

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-09-30 02:44:58 -0500 )edit