/public/home/lijingsk/deng/opencv-3.4.1/modules/imgcodecs/src/grfmt_tiff.cpp:132:12: error: 'tmsize_t' does not name a type; did you mean 'ssize_t'?
static tmsize_t read( thandle_t handle, void* buffer, tmsize_t n )
^~~~~~~~
ssize_t
/public/home/lijingsk/deng/opencv-3.4.1/modules/imgcodecs/src/grfmt_tiff.cpp:147:12: error: 'tmsize_t' does not name a type; did you mean 'ssize_t'? static tmsize_t write( thandle_t /handle/, void* /buffer/, tmsize_t /n/ ) ^~~~~~~~ ssize_t /public/home/lijingsk/deng/opencv-3.4.1/modules/imgcodecs/src/grfmt_tiff.cpp: In member function 'virtual bool cv::TiffDecoder::readHeader()': /public/home/lijingsk/deng/opencv-3.4.1/modules/imgcodecs/src/grfmt_tiff.cpp:213:108: error: 'read' is not a member of 'cv::TiffDecoderBufHelper' tif = TIFFClientOpen( "", "r", reinterpret_cast<thandle_t>(buf_helper), &TiffDecoderBufHelper::read, ^~~~ /public/home/lijingsk/deng/opencv-3.4.1/modules/imgcodecs/src/grfmt_tiff.cpp:214:58: error: 'write' is not a member of 'cv::TiffDecoderBufHelper' &TiffDecoderBufHelper::write, &TiffDecoderBufHelper::seek, ^~~~~ /public/home/lijingsk/deng/opencv-3.4.1/modules/imgcodecs/src/grfmt_tiff.cpp: At global scope:
my compiler's version is gcc (GCC) 7.3.0, centos version is 6.8