Search.h-There is no such file or directory when porting libtiff to Android-tiff 4.0.1

I am trying to download libtiff on Android. The original version I'm using is tiff 4.0.1. I am creating this source in u1 android OS. I get the error below when running mmm external / tiff 4.0.1 /

In file included from external/tiff-4.0.1/libtiff/tiffiop.h:33,
                 from external/tiff-4.0.1/libtiff/tif_dirread.c:42:
external/tiff-4.0.1/libtiff/tif_config.h:93:1: warning: "HAVE_MALLOC_H" redefined
In file included from <command-line>:0:
./system/core/include/arch/linux-arm/AndroidConfig.h:221:1: warning: this is the location of the previous definition
In file included from external/tiff-4.0.1/libtiff/tif_dirread.c:42:
external/tiff-4.0.1/libtiff/tiffiop.h:54:21: error: search.h: No such file or directory

I try to search a lot on the Internet but cannot solve the problem. Can someone give me a rough idea what might be wrong or which package is missing.

+5
source share
2 answers

I finally solved this problem. Hope this helps someone who will do the job in the future. We just need to remove the lines from libtiff / tiffiop.h that the header file refers to. It worked for me.

+9
source

libtiff HAVE_SEARCH_H tif_config.h, <search.h>:

tif_config.h:

#ifndef ANDROID
/* Define to 1 if you have the <search.h> header file. */
#define HAVE_SEARCH_H 1
#endif
+1

All Articles