2012-12-03 134 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時無需任何額外步驟即可正常工作。

相關問題