Can't build opencv headers and libraries in eclipse CDT luna + windows

asked 2015-05-25 15:05:51 -0500

Molana gravatar image


I've followed all the steps in this up to the point that I need to build the project and get the headers and binary files to add to my projects. But when I try to build the project in eclipse, I get the following error:

error: .../tif_stream.cxx:367:49:cast from 'tiffos_data*' to 'thandle_t {aka int}' loses precision [-fpermissive]

What should I do to make the project?

Thank you in advance

edit retag flag offensive close merge delete


I got the same error when using Cygwin make on 2.4.13 source in Win7x64, while MinGW makes OK. Still looking for solution to get Cygwin make work.

legendbb gravatar imagelegendbb ( 2016-06-15 10:20:09 -0500 )edit

@legendbb, please do not post answers, if you have a comment or question

(and, if you want my2ct: avoid cygwin like the pest it is ..)

berak gravatar imageberak ( 2016-06-15 10:35:39 -0500 )edit

you could either try to use the tiff version, that comes with opencv/3rdparty : rebuild with cmake -DWITH_TIFF -DBUILD_TIFF , and later link your program to -llibtiff

or you could disable tiff support completely: cmake -DWITH_TIFF=OFF

btw, which compiler are you using exactly ?

berak gravatar imageberak ( 2016-06-16 04:33:02 -0500 )edit