Ask Your Question
0

problems in building opencv 2.4 on ubuntu

asked 2015-05-06 11:38:25 -0600

savio gravatar image

Hi,

I have big problems in installing opencv 2.4.11 on an ubuntu machine (Linux 2.6.32-24-generic #43-Ubuntu SMP ... x86_64 GNU/Linux).

I have to do all by source files. Therefore, firstly I use cmake and when I use make there are the following problems:

/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*&)': ... ... ... /shared/sav/opencv-2.4.11/3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp:434: error: expected)' before ';' token /shared/sav/opencv-2.4.11/3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp:453: error: minX' was not declared in this scope /shared/sav/opencv-2.4.11/3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp:468: error:tmpSize' was not declared in this scope /shared/sav/opencv-2.4.11/3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp:494: error: tmpSize' was not declared in this scope /shared/sav/opencv-2.4.11/3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp:518: error:tmpSize' was not declared in this scope /shared/sav/opencv-2.4.11/3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp:543: error: `tmpSize' was not declared in this scope 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

What is the problem? I am completly stuck!

Thanks in advance, Saverio

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-17 03:21:40 -0600

harsha gravatar image

Error message says it make cannot find zlib.h. Try to install zlib from apt-get. There are some instructions on building opencv on linux here

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-05-06 11:38:25 -0600

Seen: 1,185 times

Last updated: May 06 '15