Ask Your Question
0

built dll's sizes

asked 2015-03-20 05:13:49 -0600

updated 2015-06-26 04:55:52 -0600

i built libraries with cmake and codeblock. i wonder why the built dll's sizes are over the sizes of distributed dlls.

sizes of dll's

libopencv_core2410.dll - 3.458.431 bytes

libopencv_imgproc2410.dll - 3.176.642 bytes

libopencv_highgui2410.dll - 3.765.243 bytes

libopencv_objdetect2410.dll - 808.956 bytes

can someone who built libraries with another compiler check the sizes and inform me.

thanks.

edit retag flag offensive close merge delete

Comments

1

Without any proper information of your build setup this is impossible. Did you build all cuda kernels or not? What backends did you include? Did you add debug information or only release? ...

StevenPuttemans gravatar imageStevenPuttemans ( 2015-03-20 05:34:08 -0600 )edit

Thank You Steven.. i added "General configuration for build" ...

sturkmen gravatar imagesturkmen ( 2015-03-20 06:05:48 -0600 )edit
1

Windows 7 MSVC 2012 32 bits

1 473 024 opencv_calib3d300.dll

2 357 760 opencv_core300.dll

785 920 opencv_features2d300.dll

10 535 057 opencv_ffmpeg300.dll

544 768 opencv_flann300.dll

139 776 opencv_highgui300.dll

2 517 504 opencv_imgcodecs300.dll

2 705 408 opencv_imgproc300.dll

693 248 opencv_ml300.dll

616 448 opencv_objdetect300.dll

624 128 opencv_photo300.dll

346 112 opencv_shape300.dll

966 144 opencv_stitching300.dll

287 232 opencv_superres300.dll

471 040 opencv_video300.dll

172 032 opencv_videoio300.dll

606 720 opencv_videostab300.dll

WITH_1394:BOOL=ON WITH_CUDA:BOOL=ON WITH_CUFFT:BOOL=ON WITH_OPENCL:BOOL=ON WITH_OPENCLAMDBLAS:BOOL=ON

LBerger gravatar imageLBerger ( 2015-03-20 11:20:14 -0600 )edit

1 answer

Sort by » oldest newest most voted
2

answered 2015-06-25 20:36:23 -0600

here tips for reducing executable size. and i found an answer to my question "why the built dll's sizes are over the sizes of distributed dlls.":

  • Use Microsoft Visual C++ instead of gcc (Cygwin or Mingw) on Windows. It does produce smaller and faster executables.
edit flag offensive delete link more

Comments

1

@sturkmen sorry it's a mistake @StevenPuttemans@berak I don't want badge citizen patrol it's a mistake

I have got a slippery mouse [-o< :(

LBerger gravatar imageLBerger ( 2015-08-17 08:42:25 -0600 )edit

Question Tools

Stats

Asked: 2015-03-20 05:13:49 -0600

Seen: 1,287 times

Last updated: Jun 25 '15