Remove zlib dependency

asked 2018-10-25 04:12:58 -0600

Kostas gravatar image

Dear cv Forum

I am compiling opencv with cmake and visual studio and I was wondering if there is a way to completely deactivate the use of the 3rdparty zlib. I think it is being used in the core module for xml/yaml functionality. I am just using the core and imgproc modules. Thank you.

Best

edit retag flag offensive close merge delete

Comments

just curious, why do you want to do this ?

(cmake -DBUILD_ZLIB=OFF ??)

berak gravatar imageberak ( 2018-10-25 04:28:24 -0600 )edit
1

Sorry, incomplete description. I have already deactivated BUILD_ZLIB in cmake ui, however in the visual studio solution there is always a zlib project created, which is also linked (I think by the core module for xml/yaml). Why? I would like to avoid managing the zlib license and keep only minimal configuration for opencv.

Kostas gravatar imageKostas ( 2018-10-25 05:14:35 -0600 )edit

this is probably, because there is no "native" zlib on windows (as it is on linux).

have you tried to disable WITH_ZLIB in cmake, too ?

(i'm a bit pessimistic, if you can get rid of the zlib dependancy in core at all.)

berak gravatar imageberak ( 2018-10-25 05:29:37 -0600 )edit