OpenCV compliation on linux: how to feed to it specific zlib lib?

Posted by myWallJSON on Stack Overflow See other posts from Stack Overflow or by myWallJSON
Published on 2011-11-23T00:54:08Z Indexed on 2011/11/23 1:52 UTC
Read the original article Hit count: 229

I want to compile OpenCV with same zlib as I use for compilation of Boost Iostreams (not system default one). I want to compile OpenCV as static lib, having zlib compiled as static lib. Currently I use something like :

 ../$CMAKE_PATH -DCMAKE_INSTALL_PREFIX=./$OPENCV_INSTALL_SUBDIR -DBUILD_WITH_STATIC_CRT=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_PYTHON_SUPPORT=OFF -DOPENCV_EXTRA_C_FLAGS=-fPIC -DOPENCV_BUILD_3RDPARTY_LIBS=TRUE
make
make install
echo Done! 

I wonder: having some $ZLIB_HEADERS and $ZLIB_LIB_FILES_FOLDER path strings how to feed them into cmake to get OpenCV compiled with built by me zlib?

© Stack Overflow or respective owner

Related posts about opencv

Related posts about static