OpenCV 3.0 large executable from static libraries

asked 2016-01-07 11:08:19 -0600

larry37 gravatar image

Building with statically linked OpenCV 2.49 previously added ~1MB to my executable size. Building the same application with OpenCV 3.0 adds 10MB to the final executable. Is there a reason for the 10x as large output? The Core and ImgProc libraries that I'm using don't seem to have changed much in size.

edit retag flag offensive close merge delete

Comments

I am expecting it has to do with the completely redesigned backend, including the OpenCL and HAL interfaces, which indeed clog up the size when building statically. Also did you include OpenCV contrib repositories? They are quite huge also?

StevenPuttemans gravatar imageStevenPuttemans ( 2016-01-08 03:30:59 -0600 )edit

Apart from core and imgproc, building also requires hal, zlib and ippicv libraries. The first two are small, but the Intel IPP is 35MB. Could this be the reason it's so large? Any options other than compiling without IPP?

larry37 gravatar imagelarry37 ( 2016-01-08 08:25:49 -0600 )edit