Skip to content

Commit

Permalink
Remove most libtiff dependencies
Browse files Browse the repository at this point in the history
libtiff is no longer needed for OpenCL, so remove that dependency.

It is still suggested for Windows to redirect warning messages
from the tesseract executable to the console.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed May 12, 2017
1 parent 2b373d1 commit 5e3665c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
3 changes: 1 addition & 2 deletions api/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ tesseract_LDFLAGS = $(OPENCL_LDFLAGS)
tesseract_LDADD += $(LEPTONICA_LIBS)
tesseract_LDADD += $(OPENMP_CXXFLAGS)

tesseract_LDADD += -ltiff

if T_WIN
tesseract_LDADD += -ltiff
tesseract_LDADD += -lws2_32
libtesseract_la_LDFLAGS += -no-undefined -Wl,--as-needed -lws2_32
endif
Expand Down
7 changes: 2 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ AM_CONDITIONAL([GRAPHICS_DISABLED], false)
AC_SUBST([AM_CPPFLAGS])

OPENCL_INC="/opt/AMDAPP/include"
OPENCL_LIBS="-lOpenCL -ltiff"
OPENCL_LIBS="-lOpenCL"
#############################
#
# Platform specific setup
Expand Down Expand Up @@ -226,7 +226,7 @@ case "${host_os}" in
fi
AM_CPPFLAGS="-DUSE_OPENCL $AM_CPPFLAGS"
OPENCL_CPPFLAGS=""
OPENCL_LDFLAGS="-framework OpenCL -ltiff"
OPENCL_LDFLAGS="-framework OpenCL"
fi
;;
*)
Expand All @@ -240,9 +240,6 @@ case "${host_os}" in
if !($have_opencl_lib); then
AC_MSG_ERROR([Required OpenCL library not found!])
fi
if !($have_tiff); then
AC_MSG_ERROR([Required TIFF headers not found! Try to install libtiff-dev?? package.])
fi
AM_CPPFLAGS="-DUSE_OPENCL $AM_CPPFLAGS"
OPENCL_CPPFLAGS="-I${OPENCL_INC}"
OPENCL_LDFLAGS="${OPENCL_LIBS}"
Expand Down
4 changes: 0 additions & 4 deletions opencl/openclwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
#include <stdio.h>
#include "allheaders.h"
#include "pix.h"
#ifdef USE_OPENCL
#include "tiff.h"
#include "tiffio.h"
#endif
#include "tprintf.h"

// including CL/cl.h doesn't occur until USE_OPENCL defined below
Expand Down

0 comments on commit 5e3665c

Please sign in to comment.