Ask Your Question
0

Compile-time errors with cv::TiffDecoderBufHelper

asked 2017-11-22 22:18:01 -0600

I encountered compile-time errors when building grfmt_tiff.cpp.o in the imgcodecs module like these (a full make log in with VERBOSE=1 is attachwed below)

grfmt_tiff.cpp:132:12: error: 'tmsize_t' does not name a type
grfmt_tiff.cpp:213:86: error: 'read' is not a member of 'cv::TiffDecoderBufHelper'
...

I was unable to find similar issues online. Can someone help?

Thanks in advance.

System info:

  • OpenCV: 3.3.1
  • Operating System / Platform: Cray Linux Environment
  • Compiler: GCC 6.3.0

Make log:

/mnt/a/sw/xe/cmake/3.9.4/sles11.3_gnu4.9.3/bin/cmake -H/projects/install_path/Programs/OpenCV/opencv-3.3.1 -B/projects/install_path/Programs/OpenCV/opencv-3.3.1/build --check-build-system CMakeFiles/Makefile.cmake 0
/mnt/a/sw/xe/cmake/3.9.4/sles11.3_gnu4.9.3/bin/cmake -E cmake_progress_start /projects/install_path/Programs/OpenCV/opencv-3.3.1/build/CMakeFiles /projects/install_path/Programs/OpenCV/opencv-3.3.1/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/mnt/b/projects/install_path/Programs/OpenCV/opencv-3.3.1/build'
make -f CMakeFiles/gen-pkgconfig.dir/build.make CMakeFiles/gen-pkgconfig.dir/depend
make[2]: Entering directory `/mnt/b/projects/install_path/Programs/OpenCV/opencv-3.3.1/build'
cd /projects/install_path/Programs/OpenCV/opencv-3.3.1/build && /mnt/a/sw/xe/cmake/3.9.4/sles11.3_gnu4.9.3/bin/cmake -E cmake_depends "Unix Makefiles" /projects/install_path/Programs/OpenCV/opencv-3.3.1 /projects/install_path/Programs/OpenCV/opencv-3.3.1 /projects/install_path/Programs/OpenCV/opencv-3.3.1/build /projects/install_path/Programs/OpenCV/opencv-3.3.1/build /projects/install_path/Programs/OpenCV/opencv-3.3.1/build/CMakeFiles/gen-pkgconfig.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/mnt/b/projects/install_path/Programs/OpenCV/opencv-3.3.1/build'
make -f CMakeFiles/gen-pkgconfig.dir/build.make CMakeFiles/gen-pkgconfig.dir/build
make[2]: Entering directory `/mnt/b/projects/install_path/Programs/OpenCV/opencv-3.3.1/build'
make[2]: Nothing to be done for `CMakeFiles/gen-pkgconfig.dir/build'.
make[2]: Leaving directory `/mnt/b/projects/install_path/Programs/OpenCV/opencv-3.3.1/build'
[  0%] Built target gen-pkgconfig
make -f 3rdparty/libwebp/CMakeFiles/libwebp.dir/build.make 3rdparty/libwebp/CMakeFiles/libwebp.dir/depend
make[2]: Entering directory `/mnt/b/projects/install_path/Programs/OpenCV/opencv-3.3.1/build'
cd /projects/install_path/Programs/OpenCV/opencv-3.3.1/build && /mnt/a/sw/xe/cmake/3.9.4/sles11.3_gnu4.9.3/bin/cmake -E cmake_depends "Unix Makefiles" /projects/install_path/Programs/OpenCV/opencv-3.3.1 /projects/install_path/Programs/OpenCV/opencv-3.3.1/3rdparty/libwebp /projects/install_path/Programs/OpenCV/opencv-3.3.1/build /projects/install_path/Programs/OpenCV/opencv-3.3.1/build/3rdparty/libwebp /projects/install_path/Programs/OpenCV/opencv-3.3.1/build/3rdparty/libwebp/CMakeFiles/libwebp.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/mnt/b/projects/install_path/Programs/OpenCV/opencv-3.3.1/build'
make -f 3rdparty/libwebp/CMakeFiles/libwebp.dir/build.make 3rdparty/libwebp/CMakeFiles/libwebp.dir/build
make[2]: Entering directory `/mnt/b/projects/install_path/Programs/OpenCV/opencv-3.3.1/build'
make[2]: Nothing to be done for `3rdparty/libwebp/CMakeFiles/libwebp ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-11-23 01:24:35 -0600

berak gravatar image

it seems, your trying to use your system's libtiff, and that it does not know about tmsize_t

can you try to use the 3rdparty libtiff, that comes with opencv instead ?

 cmake -DBUILD_TIFF=ON
edit flag offensive delete link more

Comments

That solved it, thank you :-)

sibowsb gravatar imagesibowsb ( 2017-11-23 01:48:50 -0600 )edit

Thank you from me as well! Three years later, this helped me getting OpenCV 4.2.0 to compile on CentOS 6.10 Linux with GCC 6.5.0 and GNU as 2.35.

Thanks also to Payam, though I chose to use the command line parameter instead of the GUI.

GrandAdmiralThrawn gravatar imageGrandAdmiralThrawn ( 2020-07-30 01:36:36 -0600 )edit
0

answered 2020-01-10 13:16:17 -0600

Payam gravatar image

You can use cmake gui and tick BUILD_TIFF entry

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-11-22 22:18:01 -0600

Seen: 1,489 times

Last updated: Nov 22 '17