Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV 2.4.9 build errors on Ubuntu

I have tested OpenCV 3.0.0 and I have concluded that I have to rollback to 2.4.9, for now. When I have tried to rebuild it, I am getting the following errors:

Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/denoising.cpp.o
In file included from /home/me/opencv/modules/highgui/src/grfmt_tiff.cpp:54:0:
/home/me/opencv/3rdparty/libtiff/tiff.h:77:23: error: conflicting declaration ‘typedef long long int int64’
 typedef TIFF_INT64_T  int64;
                       ^
In file included from /home/me/opencv/modules/core/include/opencv2/core/core.hpp:49:0,
                 from /home/me/opencv/modules/highgui/include/opencv2/highgui/highgui.hpp:46,
                 from /home/me/opencv/modules/highgui/src/precomp.hpp:47,
                 from /home/me/opencv/modules/highgui/src/grfmt_tiff.cpp:50:
/home/me/opencv/modules/core/include/opencv2/core/types_c.h:163:20: note: previous declaration as ‘typedef int64_t int64’
    typedef int64_t int64;
                    ^
In file included from /home/me/opencv/modules/highgui/src/grfmt_tiff.cpp:54:0:
/home/me/opencv/3rdparty/libtiff/tiff.h:78:23: error: conflicting declaration ‘typedef long long unsigned int uint64’
 typedef TIFF_UINT64_T uint64;
                       ^
In file included from /home/me/opencv/modules/core/include/opencv2/core/core.hpp:49:0,
                 from /home/me/opencv/modules/highgui/include/opencv2/highgui/highgui.hpp:46,
                 from /home/me/opencv/modules/highgui/src/precomp.hpp:47,
                 from /home/me/opencv/modules/highgui/src/grfmt_tiff.cpp:50:
/home/me/opencv/modules/core/include/opencv2/core/types_c.h:164:21: note: previous declaration as ‘typedef uint64_t uint64’
    typedef uint64_t uint64;
                     ^
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_tiff.cpp.o] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2

what has happened meanwhile?