參與:2
分享評論舉報
JohnLin

JohnLin

初學乍練

5 則回答

0得分


最佳解


Mr. 郭

 

     上面是我提供的build 步驟跟git上抓取位置.  是否是你需要的.

1F
JohnLin

JohnLin

初學乍練
0得分


最佳解


OS : Ubuntu 22.04 

2. Following https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/BUILDING.md

     1.1 git clone --recurse-submodules http://github.com/project-chip/connectedhomeip.git

     1.2 git pull && git submodule update --init

     1.3 sudo apt-get install libsdl2-dev // install UI build

     1.4 run source scripts/bootstrap.sh in connectedhomeip folder.

    
 WELCOME TO...

        █
        █
    ▄   █   ▄                                █     █
    ??█████??      ▄???▄ ▄???▄    ▄????▄█  ??█?????█??   ▄????▄    ▄??
  ?█▄       ▄█?   █     █     █  █      █    █     █    █▄▄▄▄▄▄█  █   
    ?█▄   ▄█?     █     █     █  █      █    █     █    █         █   
 ▄██??█   █??██▄  █     █     █   ?▄▄▄▄?█    ?▄▄   ?▄▄   ?▄▄▄▄?   █   
??    █   █    ??

 BOOTSTRAP! Bootstrap may take a few minutes; please be patient.

Downloading and installing packages into local source directory:

 Setting up CIPD package manager...done (9.1s)
 Setting up Project actions........skipped (0.1s)
 Setting up Python environment.....done (13.0s)
 Setting up pw packages............skipped (0.1s)
 Setting up Host tools.............done (0.1s)

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:

pw: command not found
Error during bootstrap--see messages above.
Installing pip requirements for all...

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: pip install --upgrade pip
 

     1.5 run ./scripts/build/build_examples.py --target genio-lighting-app build   // commandline to build code

I also get fail in link. 

2024-04-13 00:28:42 INFO    [636/649] stamp obj/third_party/connectedhomeip/src/lib/shell/commands/commands.stamp
2024-04-13 00:28:42 INFO    [637/649] ar libChipController.a
2024-04-13 00:28:42 INFO    [638/649] stamp obj/third_party/connectedhomeip/examples/lighting-app/lighting-common/lighting-common.stamp
2024-04-13 00:28:42 INFO    [639/649] ar libCHIPShell.a
2024-04-13 00:28:42 INFO    [640/649] ar shell_common.a
2024-04-13 00:28:42 INFO    [641/649] stamp obj/third_party/connectedhomeip/examples/platform/mt793x/genio-matter-shell.stamp
2024-04-13 00:28:43 INFO    [642/649] ar libCHIP.a
2024-04-13 00:28:46 INFO    [643/649] ld ./chip-mt793x-lighting-app-example.out
2024-04-13 00:28:46 INFO    FAILED: chip-mt793x-lighting-app-example.out chip-mt793x-lighting-app-example.out.map 
2024-04-13 00:28:46 INFO    arm-none-eabi-g++ -T../../examples/lighting-app/genio/mt793x_xip.ld -Wl,--print-memory-usage -fstack-usage -march=armv8-m.main+dsp -mcpu=cortex-m33 -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -Og --specs=nosys.specs --specs=nano.specs -Werror -Wl,--fatal-warnings -fdiagnostics-color -Wl,--gc-sections -Wl,--wrap=malloc -Wl,--wrap=free -Wl,--wrap=realloc -Wl,--wrap=calloc -Wl,--wrap=calloc -Wl,--wrap=MemoryAlloc -Wl,--wrap=_malloc_r -Wl,--wrap=_realloc_r -Wl,--wrap=_free_r -Wl,--wrap=_calloc_r -Wl,--wrap=_write -Wl,--wrap=__assert_function -Wl,--wrap=wlan_printf -Wl,--wrap=_gettimeofday -Wl,-Map,./chip-mt793x-lighting-app-example.out.map -Wl,--cref @./chip-mt793x-lighting-app-example.out.rsp -o ./chip-mt793x-lighting-app-example.out
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main+fp/hard/libc_nano.a(libc_a-closer.o): in function `_close_r':
2024-04-13 00:28:46 INFO    closer.c:(.text._close_r+0xc): warning: _close is not implemented and will always fail
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main+fp/hard/libc_nano.a(libc_a-fstatr.o): in function `_fstat_r':
2024-04-13 00:28:46 INFO    fstatr.c:(.text._fstat_r+0xe): warning: _fstat is not implemented and will always fail
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main+fp/hard/libc_nano.a(libc_a-signalr.o): in function `_getpid_r':
2024-04-13 00:28:46 INFO    signalr.c:(.text._getpid_r+0x0): warning: _getpid is not implemented and will always fail
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main+fp/hard/libc_nano.a(libc_a-isattyr.o): in function `_isatty_r':
2024-04-13 00:28:46 INFO    isattyr.c:(.text._isatty_r+0xc): warning: _isatty is not implemented and will always fail
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main+fp/hard/libc_nano.a(libc_a-signalr.o): in function `_kill_r':
2024-04-13 00:28:46 INFO    signalr.c:(.text._kill_r+0xe): warning: _kill is not implemented and will always fail
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main+fp/hard/libc_nano.a(libc_a-lseekr.o): in function `_lseek_r':
2024-04-13 00:28:46 INFO    lseekr.c:(.text._lseek_r+0x10): warning: _lseek is not implemented and will always fail
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main+fp/hard/libc_nano.a(libc_a-openr.o): in function `_open_r':
2024-04-13 00:28:46 INFO    openr.c:(.text._open_r+0x10): warning: _open is not implemented and will always fail
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main+fp/hard/libc_nano.a(libc_a-readr.o): in function `_read_r':
2024-04-13 00:28:46 INFO    readr.c:(.text._read_r+0x10): warning: _read is not implemented and will always fail
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: ../../examples/lighting-app/genio/third_party/connectedhomeip/third_party/mt793x_sdk/filogic/project/mt7933_hdk/apps/matter_sdk/lib/matter_sdk.a(matter_sdk.tasks.c.o): in function `prvInitialiseNewTask':
2024-04-13 00:28:46 INFO    tasks.c:(.text.prvInitialiseNewTask+0xc8): undefined reference to `__sf_fake_stdin'
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: tasks.c:(.text.prvInitialiseNewTask+0xcc): undefined reference to `__sf_fake_stdout'
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: tasks.c:(.text.prvInitialiseNewTask+0xd0): undefined reference to `__sf_fake_stderr'
2024-04-13 00:28:46 INFO    /home/shutinglin/workspace/connectedhomeip/.environment/cipd/packages/arm/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: ../../examples/lighting-app/genio/third_party/connectedhomeip/third_party/mt793x_sdk/filogic/project/mt7933_hdk/apps/matter_sdk/lib/matter_sdk.a(matter_sdk.hal_nvic.c.o): in function `isrC_main':
2024-04-13 00:28:46 INFO    hal_nvic.c:(.tcm_code+0x50): undefined reference to `_global_impure_ptr'
2024-04-13 00:28:46 INFO    Memory region         Used Size  Region Size  %age Used
2024-04-13 00:28:46 INFO              ROM_BL:          0 GB        64 KB      0.00%
2024-04-13 00:28:46 INFO             ROM_RBL:          0 GB         8 KB      0.00%
2024-04-13 00:28:46 INFO             ROM_TFM:          0 GB       200 KB      0.00%
2024-04-13 00:28:46 INFO            ROM_RTOS:     1969580 B      2092 KB     91.94%
2024-04-13 00:28:46 INFO            ROM_FOTA:          0 GB      3968 KB      0.00%
2024-04-13 00:28:46 INFO            ROM_NVDM:          0 GB        64 KB      0.00%
2024-04-13 00:28:46 INFO             ROM_LOG:          0 GB        64 KB      0.00%
2024-04-13 00:28:46 INFO              ROM_BT:          0 GB       304 KB      0.00%
2024-04-13 00:28:46 INFO     ROM_WIFI_PWRTBL:          0 GB        20 KB      0.00%
2024-04-13 00:28:46 INFO        ROM_WIFI_EXT:          0 GB       636 KB      0.00%
2024-04-13 00:28:46 INFO      ROM_BUFFER_BIN:          0 GB         4 KB      0.00%
2024-04-13 00:28:46 INFO                 TCM:        7968 B        20 KB     38.91%
2024-04-13 00:28:46 INFO            RAM_WFFW:        300 KB       312 KB     96.15%
2024-04-13 00:28:46 INFO                 RAM:          0 GB      3272 KB      0.00%
2024-04-13 00:28:46 INFO             RAM_TFM:          0 GB       512 KB      0.00%
2024-04-13 00:28:46 INFO            RAM_BTFW:        352 KB       352 KB    100.00%
2024-04-13 00:28:46 INFO              SYSRAM:      953496 B       992 KB     93.87%
2024-04-13 00:28:46 INFO                VROM:          0 GB         4 MB      0.00%
2024-04-13 00:28:46 INFO           VRAM_WFFW:          0 GB       312 KB      0.00%
2024-04-13 00:28:46 INFO                VRAM:     1089920 B      3272 KB     32.53%
2024-04-13 00:28:46 INFO            VRAM_TFM:          0 GB       512 KB      0.00%
2024-04-13 00:28:46 INFO           VRAM_BTFW:          0 GB       352 KB      0.00%
2024-04-13 00:28:46 INFO             VSYSRAM:      952752 B       992 KB     93.79%
2024-04-13 00:28:46 INFO    collect2: error: ld returned 1 exit status
2024-04-13 00:28:46 INFO    ninja: build stopped: subcommand failed.
Traceback (most recent call last):
 File "./scripts/build/build_examples.py", line 230, in <module>
   main(auto_envvar_prefix='CHIP')
 File "/home/shutinglin/workspace/connectedhomeip/.environment/pigweed-venv/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
   return self.main(*args, **kwargs)
 File "/home/shutinglin/workspace/connectedhomeip/.environment/pigweed-venv/lib/python3.8/site-packages/click/core.py", line 1055, in main
   rv = self.invoke(ctx)
 File "/home/shutinglin/workspace/connectedhomeip/.environment/pigweed-venv/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
   rv.append(sub_ctx.command.invoke(sub_ctx))
 File "/home/shutinglin/workspace/connectedhomeip/.environment/pigweed-venv/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
   return ctx.invoke(self.callback, **ctx.params)
 File "/home/shutinglin/workspace/connectedhomeip/.environment/pigweed-venv/lib/python3.8/site-packages/click/core.py", line 760, in invoke
   return __callback(*args, **kwargs)
 File "/home/shutinglin/workspace/connectedhomeip/.environment/pigweed-venv/lib/python3.8/site-packages/click/decorators.py", line 26, in new_func
   return f(get_current_context(), *args, **kwargs)
 File "./scripts/build/build_examples.py", line 220, in cmd_build
   context.obj.Build()
 File "/home/shutinglin/workspace/connectedhomeip/scripts/build/build/__init__.py", line 71, in Build
   builder.build()
 File "/home/shutinglin/workspace/connectedhomeip/scripts/build/builders/builder.py", line 99, in build
   self._build()
 File "/home/shutinglin/workspace/connectedhomeip/scripts/build/builders/gn.py", line 109, in _build
   self._Execute(cmd, title='Building ' + self.identifier)
 File "/home/shutinglin/workspace/connectedhomeip/scripts/build/builders/builder.py", line 104, in _Execute
   self._runner.Run(cmdarray, title=title)
 File "/home/shutinglin/workspace/connectedhomeip/scripts/build/runner/shell.py", line 73, in Run
   raise Exception('Command %r failed: %d' % (cmd, code))
Exception: Command ['ninja', '-C', '/home/shutinglin/workspace/connectedhomeip/out/genio-lighting-app'] failed: 1
  

    

 

 

 

 

 

2F
JohnLin

JohnLin

初學乍練
0得分


最佳解


OS: Ubuntu 22.04 

1. Following from the website https://www.wpgdadatong.com/solution/detail/71941 

     1.1 git clone https://github.com/matter-mtk/connectedhomeip.git -b v1.0-branch

     1.2 git submodule update --init --recursive

     1.3 source scripts/activate.sh

     get something wrong as below. show error      RuntimeError: Please install the official package with: pip install grpcio

 

I type a command as "pip install grpcio".  I also get the same message after an install.

Collecting google-api-core<3.0.0dev,>=2.15.0 (from google-cloud-storage->pigweed==0.0.10+20240412235152)
 Using cached google_api_core-2.17.1-py3-none-any.whl.metadata (2.7 kB)
 Using cached google_api_core-2.17.0-py3-none-any.whl.metadata (2.7 kB)
 Using cached google_api_core-2.16.2-py3-none-any.whl.metadata (2.7 kB)
 Using cached google_api_core-2.16.1-py3-none-any.whl.metadata (2.7 kB)
 Using cached google_api_core-2.16.0-py3-none-any.whl.metadata (2.7 kB)
 Using cached google_api_core-2.15.0-py3-none-any.whl.metadata (2.7 kB)
Collecting googleapis-common-protos (from pigweed==0.0.10+20240412235152)
 Using cached googleapis_common_protos-1.63.0-py2.py3-none-any.whl.metadata (1.5 kB)
INFO: pip is looking at multiple versions of googleapis-common-protos to determine which version is compatible with other requirements. This could take a while.
 Using cached googleapis_common_protos-1.62.0-py2.py3-none-any.whl.metadata (1.5 kB)
 Using cached googleapis_common_protos-1.61.0-py2.py3-none-any.whl.metadata (1.5 kB)
 Using cached googleapis_common_protos-1.60.0-py2.py3-none-any.whl.metadata (1.5 kB)
 Using cached googleapis_common_protos-1.59.1-py2.py3-none-any.whl.metadata (1.5 kB)
 Using cached googleapis_common_protos-1.59.0-py2.py3-none-any.whl.metadata (1.5 kB)
 Using cached googleapis_common_protos-1.58.0-py2.py3-none-any.whl.metadata (1.5 kB)
 Using cached googleapis_common_protos-1.57.1-py2.py3-none-any.whl.metadata (1.5 kB)
INFO: pip is still looking at multiple versions of googleapis-common-protos to determine which version is compatible with other requirements. This could take a while.
 Using cached googleapis_common_protos-1.57.0-py2.py3-none-any.whl.metadata (1.5 kB)
 Using cached googleapis_common_protos-1.56.4-py2.py3-none-any.whl.metadata (1.3 kB)
INFO: pip is still looking at multiple versions of google-api-core to determine which version is compatible with other requirements. This could take a while.
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
 Using cached googleapis_common_protos-1.56.3-py2.py3-none-any.whl.metadata (1.3 kB)
 Using cached googleapis_common_protos-1.56.2-py2.py3-none-any.whl.metadata (1.3 kB)
 Using cached googleapis_common_protos-1.56.1-py2.py3-none-any.whl.metadata (1.3 kB)
 Using cached googleapis_common_protos-1.56.0-py2.py3-none-any.whl.metadata (1.3 kB)
 Using cached googleapis_common_protos-1.55.0-py2.py3-none-any.whl.metadata (1.3 kB)
 Using cached googleapis_common_protos-1.54.0-py2.py3-none-any.whl.metadata (1.3 kB)
 Using cached googleapis_common_protos-1.53.0-py2.py3-none-any.whl.metadata (1.3 kB)
 Using cached googleapis_common_protos-1.52.0-py2.py3-none-any.whl.metadata (1.3 kB)
 Using cached googleapis-common-protos-1.51.0.tar.gz (35 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.50.0.tar.gz (29 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.6.0.tar.gz (35 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.5.10.tar.gz (37 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.5.9.tar.gz (37 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.5.8.tar.gz (33 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.5.7.tar.gz (33 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.5.6.tar.gz (33 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.5.5.tar.gz (33 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.5.4.tar.gz (33 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.5.3.tar.gz (28 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.5.2.tar.gz (28 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.5.1.tar.gz (28 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.5.0.tar.gz (28 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.4.0.tar.gz (30 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.3.5.tar.gz (28 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.3.4.tar.gz (27 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.3.3.tar.gz (26 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.3.2.tar.gz (26 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
 Using cached googleapis-common-protos-1.3.1.tar.gz (26 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: grpcio>=1.0.0 in /home/shutinglin/workspace/connectedhomeip/.environment/pigweed-venv/lib/python3.8/site-packages (from googleapis-common-protos->pigweed==0.0.10+20240412235152) (1.62.1)
 Using cached googleapis-common-protos-1.3.0.tar.gz (26 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'done'
Collecting grpc>=1.0.0 (from googleapis-common-protos->pigweed==0.0.10+20240412235152)
 Using cached grpc-1.0.0.tar.gz (5.2 kB)
 Preparing metadata (setup.py): started
 Preparing metadata (setup.py): finished with status 'error'
 error: subprocess-exited-with-error
 
 × python setup.py egg_info did not run successfully.
 │ exit code: 1
 ╰─> [6 lines of output]
     Traceback (most recent call last):
       File "<string>", line 2, in <module>
       File "<pip-setuptools-caller>", line 34, in <module>
       File "/tmp/pip-install-h_mrxo5w/grpc_8c870dd6c847485bb647b0b9499f916d/setup.py", line 33, in <module>
         raise RuntimeError(HINT)
     RuntimeError: Please install the official package with: pip install grpcio
     [end of output]
 
 note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

ninja: build stopped: subcommand failed.
['ninja', '-C', '/home/shutinglin/workspace/connectedhomeip/.environment/gn_out', '-v', ':python_packages.install']

Traceback (most recent call last):
 File "/home/shutinglin/workspace/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 327, in install_packages
   subprocess.check_call(ninja_cmd, stdout=outs, stderr=outs)
 File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
   raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', '/home/shutinglin/workspace/connectedhomeip/.environment/gn_out', '-v', ':python_packages.install']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/home/shutinglin/workspace/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 795, in <module>
   sys.exit(main())
 File "/home/shutinglin/workspace/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 787, in main
   return EnvSetup(**vars(parse())).setup()
 File "/home/shutinglin/workspace/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 457, in setup
   result = step(spin)
 File "/home/shutinglin/workspace/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 606, in virtualenv
   if not virtualenv_setup.install(
 File "/home/shutinglin/workspace/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 342, in install
   install_packages(gn_target)
 File "/home/shutinglin/workspace/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 330, in install_packages
   raise subprocess.CalledProcessError(err.returncode, err.cmd,
subprocess.CalledProcessError: Command '['ninja', '-C', '/home/shutinglin/workspace/connectedhomeip/.environment/gn_out', '-v', ':python_packages.install']' returned non-zero exit status 1.
shutinglin@shutinglin-VirtualBox:~/workspace/connectedhomeip$ 
 

 

3F
JohnLin

JohnLin

初學乍練
0得分


最佳解


1. 我使用大大通上面的網址git 在 source scripts/bootstrap.sh 的時候就會發生錯誤. (參考留言訊息)

無法取得跟上面網址一樣的結果.

2. 當我去git上抓最新的connectedhomeip 時, 透過git上說明去build genio-lighting-app 這個專案時,

的確build完了,在link的時候找不到一些參數. 我後來有去看了一下. 我發現在thrid-party內有一個matter_sdk.a

的lib.我不確定是不是這隻.a造成的. 也不知道 MT793x_FREERTOS_SDK 要如何產生這隻檔案 matter_sdk.a.   (參考留言訊息)

 

4F
JohnLin

JohnLin

初學乍練
0得分


最佳解


Hi John,

Please share your build step for analysism including source code fetch, build command & etc...

Thanks.

5F
郭智傑

郭智傑

初學乍練

我要回答