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

[Tooling] Enable RPC for all-clusters-app #31002

Closed
adis-ikea opened this issue Dec 14, 2023 · 1 comment · Fixed by #31006
Closed

[Tooling] Enable RPC for all-clusters-app #31002

adis-ikea opened this issue Dec 14, 2023 · 1 comment · Fixed by #31006

Comments

@adis-ikea
Copy link
Contributor

Reproduction steps / Feature

RPC is not available for the all-clusters-app. Most of the existing protos are relevant for the all-clusters-app. Would be nice if we could build the app with RPC:

Is there any specific reason why it is not added?

Platform

other

Platform Version(s)

master

Type

Manually tested with SDK

(Optional) If manually tested please explain why this is only manually tested

No response

Anything else?

No response

adis-ikea added a commit to adis-ikea/connectedhomeip that referenced this issue Dec 14, 2023
@mergify mergify bot closed this as completed in #31006 Feb 13, 2024
mergify bot pushed a commit that referenced this issue Feb 13, 2024
* Issue #31002 Enable RPC for all-clusters-app

* Restyled by gn

---------

Co-authored-by: Restyled.io <[email protected]>
raul-marquez-csa pushed a commit to raul-marquez-csa/connectedhomeip that referenced this issue Feb 16, 2024
…p#31006)

* Issue project-chip#31002 Enable RPC for all-clusters-app

* Restyled by gn

---------

Co-authored-by: Restyled.io <[email protected]>
@Chapoly1305
Copy link
Contributor

Chapoly1305 commented Apr 13, 2024

Thank you for raising this request and seeing it has been merged, however, I cannot complete the compile process if I enable the rpc, could anyone share the command to build for linux? Much appreciated.
This is the command I have used on Ubuntu 22.04, v1.3-branch.

./scripts/examples/gn_build_example.sh examples/all-clusters-app/linux/ app-cluster-app chip_enable_pw_rpc=true 'import("//with_pw_rpc.gni")'

This is the error message from console,

ACTIVATOR! This sets your shell environment variables.

Activating environment (setting environment variables):

  Setting environment variables for CIPD package manager...done
  Setting environment variables for Project actions........skipped
  Setting environment variables for Python environment.....done
  Setting environment variables for pw packages............skipped
  Setting environment variables for Host tools.............done

Checking the environment:

20240412 23:01:15 INF Environment passes all checks!

Environment looks good, you are ready to go!

+ env
SHELL=/bin/bash
SESSION_MANAGER=local/lee-Z690-AERO-G-DDR4:@/tmp/.ICE-unix/2026,unix/lee-Z690-AERO-G-DDR4:/tmp/.ICE-unix/2026
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
SSH_AGENT_LAUNCHER=gnome-keyring
XDG_MENU_PREFIX=gnome-
TERM_PROGRAM_VERSION=1.88.1
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GTK_IM_MODULE=ibus
GNOME_SHELL_SESSION_MODE=ubuntu
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
PW_PROJECT_ROOT=/home/lee/connectedhomeip
XMODIFIERS=@im=ibus
DESKTOP_SESSION=ubuntu
PW_ZAP_CIPD_INSTALL_DIR=/home/lee/connectedhomeip/.environment/cipd/packages/zap
GTK_MODULES=gail:atk-bridge
PWD=/home/lee/connectedhomeip
LOGNAME=lee
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
SYSTEMD_EXEC_PID=2049
XAUTHORITY=/run/user/1000/gdm/Xauthority
VSCODE_GIT_ASKPASS_NODE=/usr/share/code/code
CIPD_CACHE_DIR=/home/lee/.cipd-cache-dir
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
WINDOWPATH=2
PW_ROOT=/home/lee/connectedhomeip/third_party/pigweed/repo
HOME=/home/lee
USERNAME=lee
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
XDG_CURRENT_DESKTOP=Unity
VIRTUAL_ENV=/home/lee/connectedhomeip/.environment/pigweed-venv
GIT_ASKPASS=/usr/share/code/resources/app/extensions/git/dist/askpass.sh
INVOCATION_ID=1e499775fa374811b339a285a27ed321
MANAGERPID=1771
PW_PYTHON_CIPD_INSTALL_DIR=/home/lee/connectedhomeip/.environment/cipd/packages/python
CHROME_DESKTOP=code-url-handler.desktop
_PW_ROSETTA=0
GJS_DEBUG_OUTPUT=stderr
VSCODE_GIT_ASKPASS_EXTRA_ARGS=
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
LESSOPEN=| /usr/bin/lesspipe %s
USER=lee
VSCODE_GIT_IPC_HANDLE=/run/user/1000/vscode-git-b3ddad4e52.sock
DISPLAY=:1
SHLVL=2
QT_IM_MODULE=ibus
PW_PACKAGE_ROOT=/home/lee/connectedhomeip/.environment/packages
_PW_ENVIRONMENT_CONFIG_FILE=/home/lee/connectedhomeip/scripts/setup/environment.json
XDG_RUNTIME_DIR=/run/user/1000
_PW_ACTUAL_ENVIRONMENT_ROOT=/home/lee/connectedhomeip/.environment
PW_BRANDING_BANNER=/home/lee/connectedhomeip/scripts/setup/banner.txt
PW_ARM_CIPD_INSTALL_DIR=/home/lee/connectedhomeip/.environment/cipd/packages/arm
VSCODE_GIT_ASKPASS_MAIN=/usr/share/code/resources/app/extensions/git/dist/askpass-main.js
JOURNAL_STREAM=8:42358
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
GDK_BACKEND=x11
PATH=/home/lee/connectedhomeip/third_party/pigweed/repo/out/host/host_tools:/home/lee/connectedhomeip/.environment/pigweed-venv/bin:/home/lee/connectedhomeip/.environment/cipd/packages/arm/bin:/home/lee/connectedhomeip/.environment/cipd/packages/arm:/home/lee/connectedhomeip/.environment/cipd/packages/zap:/home/lee/connectedhomeip/.environment/cipd/packages/pigweed/bin:/home/lee/connectedhomeip/.environment/cipd/packages/pigweed:/home/lee/connectedhomeip/.environment/cipd:/home/lee/.local/bin:/home/lee/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
GDMSESSION=ubuntu
ORIGINAL_XDG_CURRENT_DESKTOP=ubuntu:GNOME
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
GIO_LAUNCHED_DESKTOP_FILE_PID=4048
PW_PIGWEED_CIPD_INSTALL_DIR=/home/lee/connectedhomeip/.environment/cipd/packages/pigweed
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/code.desktop
TERM_PROGRAM=vscode
_=/usr/bin/env
+ gn gen --check --fail-on-unused-args --root=examples/all-clusters-app/linux/ app-cluster-app '--args=chip_enable_pw_rpc=true import("//with_pw_rpc.gni")'
ERROR Unresolved dependencies.
//:chip-all-clusters-common(//third_party/connectedhomeip/build/toolchain/linux:linux_x64_gcc)
  needs //third_party/connectedhomeip/third_party/pigweed/repo/pw_hdlc:pw_rpc(//third_party/connectedhomeip/build/toolchain/linux:linux_x64_gcc)

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

Successfully merging a pull request may close this issue.

2 participants