[CMake] problems in building opencv (zlib.h: No such file or directory)
Saverio Iacovelli
iacovelli_mail at yahoo.it
Wed May 6 13:44:13 EDT 2015
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 errors:
[ 0%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPxr24Compressor.cpp.o
/shared/sav/opencv-2.4.11/3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp:75:18: zlib.h: No such file or directory
/shared/sav/opencv-2.4.11/3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp: In member function `int Imf::Pxr24Compressor::compress(const char*, int, Imath::Box2i, const char*&)':.........make[2]: *** [3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPxr24Compressor.cpp.o] Error 1
make[1]: *** [3rdparty/openexr/CMakeFiles/IlmImf.dir/all] Error 2
make: *** [all] Error 2
I am completly stuck and I do not know how to proceed.How can I solve this problem?
Thank you,
Saverio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150506/113e4632/attachment.html>
More information about the CMake
mailing list