For Linux host example:
./scripts/examples/gn_build_example.sh examples/fabric-admin out/debug/standalone 'import("//with_pw_rpc.gni")'
For Raspberry Pi 4 example:
docker pull connectedhomeip/chip-build-vscode:latest
docker run -it -v ~/connectedhomeip:/var/connectedhomeip connectedhomeip/chip-build-vscode:latest /bin/bash
cd /var/connectedhomeip git config --global --add safe.directory /var/connectedhomeip git config --global --add safe.directory /var/connectedhomeip/third_party/pigweed/repo git config --global --add safe.directory /var/connectedhomeip/examples/common/QRCode/repo ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py \ --target linux-arm64-fabric-admin-clang-rpc \ build"
scp ./fabric-admin ubuntu@xxx.xxx.xxx.xxx:/home/ubuntu