2012-12-03 26 views
0

我想编译在android应用程序中使用它的mupdf项目。 我已经完成了所有步骤,直到我必须编译S.O.中的“generated”文件夹为止。我正在使用Mac Os 10.7.5。 当我尝试在项目的顶层文件夹中做“make”时出现问题,并且我总是得到相同的错误。mupdf limits.h:没有这样的文件或目录在mac os x

CC build/debug/ft_ftbase.o 
In file included from thirdparty/freetype-2.4.10/include/freetype/config/ftstdlib.h:60, 
       from thirdparty/freetype-2.4.10/include/freetype/config/ftconfig.h:43, 
       from thirdparty/freetype-2.4.10/include/freetype/freetype.h:33, 
       from thirdparty/freetype-2.4.10/src/base/ftpic.c:20, 
       from thirdparty/freetype-2.4.10/src/base/ftbase.c:23: 
/Developer/usr/bin/../lib/gcc/i686-apple-darwin9/4.2.1/include/limits.h:10:25: error: limits.h: No such file or directory 
In file included from thirdparty/freetype-2.4.10/include/freetype/config/ftconfig.h:43, 
       from thirdparty/freetype-2.4.10/include/freetype/freetype.h:33, 
       from thirdparty/freetype-2.4.10/src/base/ftpic.c:20, 
       from thirdparty/freetype-2.4.10/src/base/ftbase.c:23: 
thirdparty/freetype-2.4.10/include/freetype/config/ftstdlib.h:77:20: error: string.h: No such file or directory 
thirdparty/freetype-2.4.10/include/freetype/config/ftstdlib.h:101:19: error: stdio.h: No such file or directory 
thirdparty/freetype-2.4.10/include/freetype/config/ftstdlib.h:119:20: error: stdlib.h: No such file or directory 
thirdparty/freetype-2.4.10/include/freetype/config/ftstdlib.h:155:20: error: setjmp.h: No such file or directory 
In file included from thirdparty/freetype-2.4.10/include/freetype/freetype.h:33, 
thirdparty/freetype-2.4.10/include/freetype/config/ftconfig.h:127:19: error: errno.h: No such file or directory 
In file included from thirdparty/freetype-2.4.10/src/base/ftbase.c:28: 
thirdparty/freetype-2.4.10/src/base/ftgloadr.c: In function ‘FT_GlyphLoader_CheckPoints’: 
thirdparty/freetype-2.4.10/src/base/ftgloadr.c:234: warning: implicit declaration of function ‘memmove’ 
thirdparty/freetype-2.4.10/src/base/ftgloadr.c:234: warning: incompatible implicit declaration of built-in function ‘memmove’ 
thirdparty/freetype-2.4.10/src/base/ftgloadr.c: In function ‘FT_GlyphLoader_CopyPoints’: 
thirdparty/freetype-2.4.10/src/base/ftgloadr.c:375: warning: implicit declaration of function ‘memcpy’ 
thirdparty/freetype-2.4.10/src/base/ftgloadr.c:375: warning: incompatible implicit declaration of built-in function ‘memcpy’ 
In file included from thirdparty/freetype-2.4.10/src/base/ftobjs.c:22, 
    from thirdparty/freetype-2.4.10/src/base/ftbase.c:29: 
thirdparty/freetype-2.4.10/include/freetype/internal/ftvalid.h: At top level: 
thirdparty/freetype-2.4.10/include/freetype/internal/ftvalid.h:87: error: expected specifier-qualifier-list before ‘jmp_buf’ 
In file included from thirdparty/freetype-2.4.10/src/base/ftbase.c:29: 
thirdparty/freetype-2.4.10/src/base/ftobjs.c: In function ‘ft_service_list_lookup’: 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:58: warning: implicit declaration of function ‘strcmp’ 
thirdparty/freetype-2.4.10/src/base/ftobjs.c: In function ‘ft_validator_error’: 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:100: error: nested functions are disabled, use -fnested-functions to re-enable 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:100: error: ‘jump_buffer’ undeclared (first use in this function) 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:100: error: (Each undeclared identifier is reported only once 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:100: error: for each function it appears in.) 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:100: error: ‘volatile struct FT_ValidatorRec_’ has no member named ‘jump_buffer’ 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:107: warning: implicit declaration of function ‘longjmp’ 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:107: error: ‘jmp_buf’ undeclared (first use in this function) 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:107: error: expected expression before ‘)’ token 
thirdparty/freetype-2.4.10/src/base/ftobjs.c: In function ‘ft_glyphslot_clear’: 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:319: warning: implicit declaration of function ‘memset’ 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:319: warning: incompatible implicit declaration of built-in function ‘memset’ 
thirdparty/freetype-2.4.10/src/base/ftobjs.c: In function ‘FT_Request_Metrics’: 
thirdparty/freetype-2.4.10/src/base/ftobjs.c:2737: warning: incompatible implicit declaration of built-in function ‘memset’ 
In file included from thirdparty/freetype-2.4.10/src/base/ftbase.c:30: 
thirdparty/freetype-2.4.10/src/base/ftoutln.c: In function ‘FT_Outline_Copy’: 
thirdparty/freetype-2.4.10/src/base/ftoutln.c:404: warning: incompatible implicit declaration of built-in function ‘memcpy’ 
In file included from thirdparty/freetype-2.4.10/src/base/ftbase.c:31: 
thirdparty/freetype-2.4.10/src/base/ftrfork.c: In function ‘FT_Raccess_Get_DataOffsets’: 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:213: warning: implicit declaration of function ‘qsort’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c: In function ‘raccess_guess_darwin_hfsplus’: 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:510: warning: implicit declaration of function ‘strlen’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:510: warning: incompatible implicit declaration of built-in function ‘strlen’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:523: warning: incompatible implicit declaration of built-in function ‘memcpy’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c: In function ‘raccess_guess_darwin_newvfs’: 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:546: warning: incompatible implicit declaration of built-in function ‘strlen’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:559: warning: incompatible implicit declaration of built-in function ‘memcpy’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c: In function ‘raccess_make_file_name’: 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:791: warning: incompatible implicit declaration of built-in function ‘strlen’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:795: warning: implicit declaration of function ‘strrchr’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:795: warning: incompatible implicit declaration of built-in function ‘strrchr’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:798: warning: implicit declaration of function ‘strncpy’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:798: warning: incompatible implicit declaration of built-in function ‘strncpy’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:808: warning: implicit declaration of function ‘strcat’ 
thirdparty/freetype-2.4.10/src/base/ftrfork.c:808: warning: incompatible implicit declaration of built-in function ‘strcat’ 
In file included from thirdparty/freetype-2.4.10/src/base/ftbase.c:33: 
thirdparty/freetype-2.4.10/src/base/ftstream.c: In function ‘FT_Stream_ReadAt’: 
thirdparty/freetype-2.4.10/src/base/ftstream.c:145: warning: incompatible implicit declaration of built-in function ‘memcpy’ 
thirdparty/freetype-2.4.10/src/base/ftstream.c: In function ‘FT_Stream_TryRead’: 
thirdparty/freetype-2.4.10/src/base/ftstream.c:182: warning: incompatible implicit declaration of built-in function ‘memcpy’ 
thirdparty/freetype-2.4.10/src/base/ftstream.c: In function ‘FT_Stream_ReadFields’: 
thirdparty/freetype-2.4.10/src/base/ftstream.c:770: warning: incompatible implicit declaration of built-in function ‘memcpy’ 
In file included from thirdparty/freetype-2.4.10/src/base/ftbase.c:35: 
thirdparty/freetype-2.4.10/src/base/ftutil.c: In function ‘ft_mem_alloc’: 
thirdparty/freetype-2.4.10/src/base/ftutil.c:58: warning: incompatible implicit declaration of built-in function ‘memset’ 
thirdparty/freetype-2.4.10/src/base/ftutil.c: In function ‘ft_mem_realloc’: 
thirdparty/freetype-2.4.10/src/base/ftutil.c:104: warning: incompatible implicit declaration of built-in function ‘memset’ 
thirdparty/freetype-2.4.10/src/base/ftutil.c: In function ‘ft_mem_dup’: 
thirdparty/freetype-2.4.10/src/base/ftutil.c:186: warning: incompatible implicit declaration of built-in function ‘memcpy’ 
thirdparty/freetype-2.4.10/src/base/ftutil.c: In function ‘ft_mem_strdup’: 
thirdparty/freetype-2.4.10/src/base/ftutil.c:198: warning: incompatible implicit declaration of built-in function ‘strlen’ 
make: *** [build/debug/ft_ftbase.o] Error 1 

我不知道我能做什么,因为我有“limits.h”文件和编译器说没有出现的其他人。

感谢

+1

我在Windows上也遇到过这种问题,但是通过编译Ubuntu来解决它。 –

回答

2

你检查过的位置“/Developer/usr/bin/../lib/gcc/i686-apple-darwin9/4.2.1/include”,看看limits.h中存在该文件夹? (我知道你说你有这个文件,但是,其中安装了?)

我们怀疑是你的gcc安装被破坏了,或者(可能)有某种路径问题,因为。无法找到的h文件是系统文件,不是MuPDF或第三方库的一部分。

FWDW MuPDF的首席开发人员在Mac上完成了他所有的Android开发工作,因此我们确信在安装gcc或MuPDF时无需任何额外步骤即可正常工作。

相关问题