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

aivs-monitor编译尝试报错缺少curl.h #35

Closed
c2012 opened this issue Jan 24, 2025 · 3 comments
Closed

aivs-monitor编译尝试报错缺少curl.h #35

c2012 opened this issue Jan 24, 2025 · 3 comments

Comments

@c2012
Copy link

c2012 commented Jan 24, 2025

交叉编译环境使用下面的:
open-lx01/tree/main/src/cross-build-env
make方式准备的交叉编译环境 或者 build好的image都试过

根据:
open-lx01/tree/main/src/apps/aivs-monitor
中的说明
make build-all
报错:
make: *** No rule to make target 'build-all'. Stop.

观察
open-lx01/blob/main/src/cross-build-env/Makefile
发现问题:
根据提供的Makefile内容,无法直接使用 make build-all,因为该Makefile中并没有定义名为 build-all 的目标

发现makefile中存在:
build-with-docker:
docker run --rm -v $(TOP_DIR):/build -w /build $(BUILD_IMAGE) sh -c "cd $(MAKEFILE_DIR) && make build"

故尝试执行:
make build-with-docker

依然报错提示没有curl.h

@jialeicui
Copy link
Owner

我更新了下文档, 参考链接到这个 issue 的 PR

简单来讲, 您如果想把 aivs-monitor build 出来放到固件里面, 在 src/app 目录 make 就可以.
之后可以在 src/tmp/rootfs 目录找到 build 出来的 binary

pack.sh 脚本会自动把这个目录里面的文件打包到固件里边

@jialeicui
Copy link
Owner

另, 可以参考这里 #14 (comment)

@c2012
Copy link
Author

c2012 commented Jan 25, 2025

搞定! 非常感谢。

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