Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raspi board build failed #69

Open
hh-kai opened this issue Apr 7, 2022 · 6 comments
Open

raspi board build failed #69

hh-kai opened this issue Apr 7, 2022 · 6 comments

Comments

@hh-kai
Copy link

hh-kai commented Apr 7, 2022

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

@gozfree
Copy link
Owner

gozfree commented Apr 9, 2022

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

@hh-kai
Copy link
Author

hh-kai commented Apr 12, 2022

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

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

@gozfree
Copy link
Owner

gozfree commented Apr 12, 2022

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

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

commit 66a7df4
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)));

  • printf("session.checksum = 0x%08lx\n", ss->cseq);
  • printf("session.checksum = 0x%" PRIx64 "\n", ss->cseq);
    printf("================\n");
    }

@hh-kai
Copy link
Author

hh-kai commented Apr 13, 2022

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

@gozfree
Copy link
Owner

gozfree commented Apr 13, 2022

LIST
更新后再试

@hh-kai
Copy link
Author

hh-kai commented Apr 14, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants