Ask Your Question
1

Building opencv 3.1.0 on Ubuntu 16.04

asked 2016-05-25 03:00:46 -0600

Hi, I'm trying to build opencv from scratch on ubuntu 16.04 following instructions from here. (http://milq.github.io/install-opencv-...), but keep running into this libtiff error see below:

//usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to TIFFClose@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference toTIFFDefaultStripSize@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to TIFFFdOpen@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference toTIFFWriteScanline@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to `TIFFSetField@LIBTIFF_4.0'

To be sure I installed libtiff5-dev and it was already installed. Looks like some version differences is there? If so how can I leave out this dependency and go on with compiling and building?

edit retag flag offensive close merge delete

Comments

1

Try to use -DBUILD_TIFF=ON option to use libtiff provided with OpenCV.

mshabunin gravatar imagemshabunin ( 2016-05-25 06:18:51 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-05-30 04:34:29 -0600

mshabunin gravatar image

I was able to build latest opencv in ubuntu 16.04 with packaged libtiff using the following Docker config:

FROM ubuntu:16.04

RUN apt-get update -y

RUN apt-get install \
    libtiff-dev \
    gcc \
    g++ \
    cmake \
    ninja-build \
    -y

RUN mkdir -p /build
VOLUME /opencv

CMD cd /build && rm -rf * && cmake -GNinja ../opencv && ninja
edit flag offensive delete link more
0

answered 2016-05-27 07:19:05 -0600

I managed to get it done by switching off TIFF completely I used WITH_TIFF=OFF. Not sure that'll affect any other functionality I need, but since I"m just playing around with it for learning purposes it should be fine.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-05-25 03:00:46 -0600

Seen: 932 times

Last updated: May 30 '16