Ask Your Question
1

I use cmake cross compile opencv2.4.6 in IOS,but is very big

asked 2013-07-23 03:06:12 -0600

fpga18 gravatar image

updated 2013-07-23 04:22:36 -0600

I use cmake cross compile opencv2.4.6 in IOS,and I get a opencv2.framework,but it's has 38M.it's too big,how to I cut it? I only use stitch function! thanks

edit retag flag offensive close merge delete

Comments

Basically remove every single option in CMAKE that you don't need. OpenCV isn't a small library, so only picking the options you really need is the way to go. Do not include debug information in your built also.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-07-23 04:35:49 -0600 )edit

1 answer

Sort by » oldest newest most voted
4

answered 2013-07-31 01:09:26 -0600

AlexanderShishkov gravatar image

You can remove some unused modules with flags in CMake (eg. BUILD_opencv_highgui,...). But what is the problem with size? Yes it is big. But only needed functions will be included to your application due to static linking.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-23 03:06:12 -0600

Seen: 597 times

Last updated: Jul 31 '13