已经解决了,原来是window里的文件被直接拖入Linux中会损坏,在Ubuntu用命令行下载解压可以正常
L
lh35
@lh35
0
声望
3
楼层
22
资料浏览
0
粉丝
0
关注
lh35 发布的帖子
-
按照教程编译固件时出错?
Ubuntu版本是18.04
不是在GitHub上pull的仓库,是下载官网的文件进行编译的../../lib/berkeley-db-1.xx/PORT/include/db.h:1:1: error: expected identifier or '(' before '.' token ../../include/db.h ^ In file included from ../../lib/berkeley-db-1.xx/btree/bt_conv.c:45:0: ../../lib/berkeley-db-1.xx/PORT/include/db.h:1:1: error: expected identifier or '(' before '.' token ../../include/db.h ^ In file included from ../../lib/berkeley-db-1.xx/btree/bt_search.c:45:0: ../../lib/berkeley-db-1.xx/PORT/include/db.h:1:1: error: expected identifier or '(' before '.' token ../../include/db.h ^ In file included from ../../lib/berkeley-db-1.xx/btree/bt_get.c:47:0: ../../lib/berkeley-db-1.xx/PORT/include/db.h:1:1: error: expected identifier or '(' before '.' token ../../include/db.h ^ In file included from ../../lib/berkeley-db-1.xx/btree/bt_search.c:46:0: ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: data definition has no type or storage class [-Werror] } PAGE; ^~~~ In file included from ../../lib/berkeley-db-1.xx/btree/bt_get.c:48:0: ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: data definition has no type or storage class [-Werror] } PAGE; ^~~~ In file included from ../../lib/berkeley-db-1.xx/btree/bt_page.c:43:0: ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: data definition has no type or storage class [-Werror] } PAGE; ^~~~ In file included from ../../lib/berkeley-db-1.xx/btree/bt_conv.c:46:0: ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: data definition has no type or storage class [-Werror] } PAGE; ^~~~ ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: type defaults to 'int' in declaration of 'PAGE' [-Werror=implicit-int] ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: type defaults to 'int' in declaration of 'PAGE' [-Werror=implicit-int] ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: type defaults to 'int' in declaration of 'PAGE' [-Werror=implicit-int] ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: type defaults to 'int' in declaration of 'PAGE' [-Werror=implicit-int] ../../lib/berkeley-db-1.xx/btree/btree.h:127:2: error: unknown type name 'pgno_t' pgno_t pgno; /* page number stored on */ ^~~~~~ ../../lib/berkeley-db-1.xx/btree/btree.h:127:2: error: unknown type name 'pgno_t' pgno_t pgno; /* page number stored on */ ^~~~~~ ../../lib/berkeley-db-1.xx/btree/btree.h:127:2: error: unknown type name 'pgno_t' pgno_t pgno; /* page number stored on */ ^~~~~~ ../../lib/berkeley-db-1.xx/btree/btree.h:127:2: error: unknown type name 'pgno_t' pgno_t pgno; /* page number stored on */ ^~~~~~ ../../lib/berkeley-db-1.xx/btree/btree.h:157:2: error: unknown type name 'recno_t' recno_t nrecs; /* number of records */ ^~~~~~~ ../../lib/berkeley-db-1.xx/btree/btree.h:158:2: error: unknown type name 'pgno_t' pgno_t pgno; /* page number stored below */ ^~~~~~ ../../lib/berkeley-db-1.xx/btree/btree.h:157:2: error: unknown type name 'recno_t'