gozfree / gear-lib

Gear-Lib, C library for IOT Embedded Multimedia and Network
MIT License
2.97k stars 805 forks source link

raspi board build failed #69

Open hh-kai opened 2 years ago

hh-kai commented 2 years ago

下的release压缩包 直接解压build image 这个头文件是有的 怎么还是提示缺少 路径也已经包含进去了 而且我在build all 的时候 会出现各种错误 image 这是gcc版本 image

gozfree commented 2 years ago

第一步,先用./build.sh 全部编译一次,会将依赖头文件输出到gear-lib/output/linux//include/gear-lib里,最新的全编是可以pass的 第二步,sudo ./build.sh install,安装到/usr/local/目录下 单模块编译,是为了修改某个libxxx库后更新安装的,可以进入到libxxx下make,make install

hh-kai commented 2 years ago

下的1.1.19的压缩包 执行./build.sh的结果

无标题

树莓派4B 64位官方系统 image

gozfree commented 2 years ago

下的1.1.19压缩包可能比较早,代码有更新,但是版本号没增加,麻烦再更新下:

如下patch已经修复了编译错误

commit 66a7df474110ac6132543e8bfb4493569b1b8084 Author: pi-zero gozfree@163.com Date: Sun Nov 7 19:55:19 2021 +0800

libuvc: add cancel fd to quit poll thread

diff --git a/gear-lib/librpc/librpc.c b/gear-lib/librpc/librpc.c index 763c1ab..561889e 100644 --- a/gear-lib/librpc/librpc.c +++ b/gear-lib/librpc/librpc.c @@ -111,7 +111,7 @@ void print_session(struct rpc_session *ss) printf("session.msg_id = 0x%08x\n", ss->msg_id); printf("session.timestamp = %" PRIu64 "(%s)\n", ss->timestamp, time_str_format_by_msec(ss->timestamp, ts, sizeof(ts)));

hh-kai commented 2 years ago

我刚刚直接克隆了一份 然后build.sh image

gozfree commented 2 years ago

LIST 更新后再试

hh-kai commented 2 years ago

下了最新的 build.sh过了 但是build.sh all linux release失败 image 我把这个改了 但是还有其它类似的错误出现