Can't build opencv headers and libraries in eclipse CDT luna + windows
Hi
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
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, please do not post answers, if you have a comment or question
(and, if you want my2ct: avoid cygwin like the pest it is ..)
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 ?