Ask Your Question
0

OpenCV 2.4.9 build errors on Ubuntu

asked 2015-01-05 07:30:07 -0600

thdrksdfthmn gravatar image

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?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-01-05 07:42:07 -0600

thdrksdfthmn gravatar image

OpenCV 2.4.10 is going to fix this, but the question still remains open: What has just happened meanwhile?

edit flag offensive delete link more

Comments

I am guessing the PR with the multipage TIFF reading has something to do with this. 3.0 is not very stable, is there a way of eliminating the module with that function?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-01-06 07:47:39 -0600 )edit

Is there going to be a big improve in openCV 3 release? :)

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-01-06 08:10:05 -0600 )edit

The 3.0 release has indeed quite some amazing new things, which can be tested in the beta release. But there is still some steps to go before it is stable!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-01-06 09:32:44 -0600 )edit

hello I am having the same error to compile opencv 1.0.0 now. So have you resolved this problem?

kakooyang gravatar imagekakooyang ( 2016-10-05 02:34:11 -0600 )edit

Please, OpenCV 1.0.0 is ancient, deprecated and lost in translation. Move over to OpenCV 3 at least which is stable and has all these fixes integrated!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-10-05 04:01:31 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2015-01-05 07:30:07 -0600

Seen: 1,394 times

Last updated: Jan 05 '15