2012-06-27 1 views
5

Android에서 libtiff를 이식하려고합니다. 내가 사용하고있는 소스 버전은 tiff 4.0.1이다. 이 소스를 u1 android OS에 빌드하고 있습니다. 나는 음 외부/티파니 4.0.1/search.h- Android tiff 4.0.1에서 libtiff를 이식하는 동안 해당 파일이나 디렉토리가 없습니다.

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 

나는 인터넷에서 많이 검색을 시도하지만 문제를 가져올 수 없습니다를 실행할 때 나는 아래의 오류를 얻고있다. 어떤 사람이 나에게 무엇이 잘못되었거나 누락 된 패키지인지 대략적인 아이디어를 알려줄 수 있습니까?

답변

9

마지막으로이 문제가 해결되었습니다. 앞으로이 일을하는 사람을 도울 수 있기를 바랍니다. 헤더 파일이 참조되는 libtiff/tiffiop.h에서 줄을 제거하면됩니다. 저에게 도움이되었습니다.

1

당신의 libtiff 버전에 따라 tif_config.h는 다음 더 이상 <search.h> config 파일에서 또한 단지 UNDEFINE HAVE_SEARCH_H을 포함하지 않습니다 수 있습니다

tif_config.h 에서 :

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