Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv-3.4.1 build error: source code error(not sure)?

/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

click to hide/show revision 2
None

updated 2018-08-13 11:54:43 -0600

berak gravatar image

opencv-3.4.1 build error: source code error(not sure)?

.

 /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/, /*handle*/, void* /buffer/, /*buffer*/, tmsize_t /n/ /*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:

scope: my compiler's version is gcc (GCC) 7.3.0, centos version is 6.8

6.8