problems in building opencv 2.4 on ubuntu
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