Re: [CMake] problems in building opencv (zlib.h: No such file or directory)

2015-05-08 Thread Jean-Christophe Fillion-Robin
Hi Saverio, Make sure you install zlib dev package. That way the header will be found on the system. On Ubuntu 14.04, you could do it using the following command: $ sudo apt-get install zlib1g-dev See http://packages.ubuntu.com/trusty/zlib1g-dev Hth Jc On Wed, May 6, 2015 at 1:44 PM, Saverio

[CMake] problems in building opencv (zlib.h: No such file or directory)

2015-05-06 Thread Saverio Iacovelli
Hi, I have serious problems in installing OpenCV 2.4 on my Ubuntu Linux machine (Linux 2.6.32-24-generic #43-Ubuntu SMP ... x86_64 GNU/Linux). Firstly I use cmake as below: cmake -D CMAKE_INSTALL_PREFIX:PATH=/pathwherebuilding /path-to-source  Secondly I use make but there are the following