Closed hassan-xy closed 2 weeks ago
./gn_build.sh
builds a whole bunch of different example apps and configurations. It's supposed to be a "build and test everything" kind of thing, not appropriate for anything like a constrained device.
@hassan-xy What are you actually trying to build?
I am trying to build chip-tool firstly. Later I would want to test example codes for Linux arm64 arch. If there is a way to only build for my arch then that would be great.
If you want to just build chip-tool, I would recommend either
scripts/examples/gn_build_example.sh examples/chip-tool place/to/put/binary
or
./scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target linux-arm64-chip-tool"
All the builds ./gn_build.sh
does are for your arch, but it does them with different compilers/settings...
Well I am running on the x86 desktop for my target board.
@andy31415 what's the right way to build just chip-tool while cross-compiling?
Only clang can cross-compile, hence the error there saying due to rule ONLY IF
-(clang|nodeps)`.
The target should be linux-arm64-chip-tool-clang
Hi @andy31415
I tried and I got a diffrent error this time.
I have tried different combinations like --out-prefix, --clean but still the same error.
Edit: I am also trying to build on my board by inserting the 64GB SD card. But I am getting some errors due to python.
I had python 3.6 while pulling the recursive git files then updated to python 3.8.0.
Let me know if you have any suggestions for this as well.
Thanks guys
@hassan-xy You want
./scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target linux-arm64-chip-tool-clang build"
Well...
I am cross-compiling for arm64 environment on x86_64 ubuntu 20.04 desktop.
I am also parallely trying to build on the dev board by building inside of a sd card. I am also facing the same python dependencies. Do you guys have a list of all the python packages or versions necessary for build to succeed?
The sysroot env var presumably needs to be set to the relevant sysroot for the cross-compile that has the other-arhc compilers, libraries, etc? That's about as much as I know about the cross-compiling bits, which are badly under-documented....
Hi, Well I tried to move the binary to my device after building on RPI 4 board but faced issues with glibc 2.35 version and openssl 3. Even after building the source code to update, the current version I am facing the issue.
So, can you share a list of all the dependencies connectedIP and its example binaries like chip-tool has so I can prepare for it. Also please provide support for the linux yocto environment. I very popular among developers and will beneficial for everyone.
I will be waiting for your responses. THANKS!!!
Guys, I am waiting for your comments...
I think fundamentally: no one knows the answers to your questions.
Well can you at least share the I'd of the person working with platform integration.
https://www.yoctoproject.org/ Link to the yocto project. It's just another flavour of the Linux distro but quite popular.
Let me know if anything else is needed.
Still waiting for a comment....
No updates here as well.
Reproduction steps
I run the command ./gn_build.sh It builds and takes a space of around 30GB while my linux arm64 dev board has only 8 GB. Any ideas as to how I can cross-compile and resolve the issue.
Platform
other
Platform Version(s)
No response
Type
Manually tested with SDK
(Optional) If manually tested please explain why this is only manually tested
No response
Anything else?
No response