使用wsl_Ubuntu 編譯問題

jonsking
Posts: 1
Joined: Wed Jul 01, 2020 3:40 am

使用wsl_Ubuntu 編譯問題

Postby jonsking » Wed Jul 01, 2020 3:53 am

新手第一次發文請多指教…

當前使用系統:win10_HOME版+WSL_Ubuntu
依照官網教學逐步下載及設定。到使用 idf.py menuconfig 及idf.py build 時都會出現以下error,請問此錯誤是什麼意思?如何解決,謝謝~
nick@DESKTOP-Q7F9AST:~/esp/esp-idf/examples/get-started/blink$ idf.py menuconfig
Executing action: menuconfig
Traceback (most recent call last):
File "/home/nick/esp/esp-idf/tools/idf.py", line 784, in <module>
main()
File "/home/nick/esp/esp-idf/tools/idf.py", line 702, in main
cli(sys.argv[1:], prog_name=PROG)
File "/home/nick/.espressif/python_env/idf4.2_py3.8_env/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/nick/.espressif/python_env/idf4.2_py3.8_env/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/nick/.espressif/python_env/idf4.2_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1290, in invoke
return _process_result(rv)
File "/home/nick/.espressif/python_env/idf4.2_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1224, in _process_result
value = ctx.invoke(self.result_callback, value, **ctx.params)
File "/home/nick/.espressif/python_env/idf4.2_py3.8_env/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/nick/esp/esp-idf/tools/idf.py", line 618, in execute_tasks
task(ctx, global_args, task.action_args)
File "/home/nick/esp/esp-idf/tools/idf.py", line 211, in __call__
self.callback(self.name, context, global_args, **action_args)
File "/home/nick/esp/esp-idf/tools/idf_py_actions/core_ext.py", line 36, in menuconfig
build_target(target_name, ctx, args)
File "/home/nick/esp/esp-idf/tools/idf_py_actions/core_ext.py", line 23, in build_target
ensure_build_directory(args, ctx.info_name)
File "/home/nick/esp/esp-idf/tools/idf_py_actions/tools.py", line 180, in ensure_build_directory
os.makedirs(build_dir)
File "/usr/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/nick/esp/esp-idf/examples/get-started/blink/build'
nick@DESKTOP-Q7F9AST:~/esp/esp-idf/examples/get-started/blink$

13435374944
Posts: 3
Joined: Mon May 23, 2022 10:02 am

Re: 使用wsl_Ubuntu 編譯問題

Postby 13435374944 » Mon May 23, 2022 10:08 am

我也是遇到此问题,解决了嘛?
我按照官方 B站的教学视频搭建的。

Who is online

Users browsing this forum: No registered users and 41 guests