2012-02-26 78 views
2

我想弄清楚为什么我无法在Mac OSX上编译启蒙e17窗口管理器包ejde。请给我下面的输出(长行拆分可读性):数组元素有不完整的类型

libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I. \ 
-I../.. -I../../src/bin -I../../src/lib \ 
-DPACKAGE_BIN_DIR=\"/usr/local/bin\" \ 
-DPACKAGE_LIB_DIR=\"/usr/local/lib\" \ 
-DPACKAGE_DATA_DIR=\"/usr/local/share/edje\" \ 
-I/usr/local/include/eina-1 -I/usr/local/include/eina-1/eina \ 
-I/usr/local/include/eet-1 -I/usr/local/include/evas-1 \ 
-I/usr/local/include/freetype2 -I/usr/local/include \ 
-I/usr/local/include/ecore-1 -I/usr/local/include/embryo-1 \ 
-I/usr/local/include/ecore-1 -I/usr/local/include/eina-1 \ 
-I/usr/local/include/eina-1/eina -I/usr/local/include/evas-1 \ 
-I/usr/local/include/eet-1 -I/usr/local/include/freetype2 \ 
-I/usr/local/include \ 
-g -O2 -MT edje_lua2.lo -MD -MP -MF .deps/edje_lua2.Tpo \ 
-c edje_lua2.c -fno-common -DPIC -o 

.libs/edje_lua2.o edje_lua2.c:183: error: array type has incomplete element type 

edje_lua2.c:638: error: array type has incomplete element 
type edje_lua2.c: In function '_elua_messagesend': 

线183:

static const struct luaL_reg _elua_edje_gc_funcs [] = 
{ 
    {"__gc", _elua_obj_gc}, // garbage collector func for edje objects 

    {NULL, NULL} // end 
}; 

回答

9

我想这不是因为编译LUA-5.2不具备这样的:

#define luaL_reg  luaL_Reg 

http://lua-users.org/lists/lua-l/2011-07/msg00708.html

9 upvotes,令人印象深刻。在Mac上使用E17的价值是愚蠢的差事

+0

如果确实是这个问题,请尝试使用Lua 5.1来构建ejde或任何ejde使用的Lua版本。 – lhf 2012-02-28 01:29:32

1

检查结构类型struct luaL_reg是您的_elua_edje_gc_funcs对象的声明之前声明。

您可能会错过相关的头文件:或者是因为它未包含在系统中,或者缺少正确的-I路径。

相关问题