このサイトのやり方を実践する
インストールの方法はNordicのホームページのhttps://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html#installing-ses-nordic-edition
に書いてある方法を行うhttps://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html#installing-ses-nordic-edition
まずpowershellを管理者で起動し「choco feature enable -n allowGlobalConfirmation」を入力する。次に「choco feature enable -n allowGlobalConfirmation」を入力する。次に「choco install ninja gperf python git」を入力する。以下はログである。
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> choco feature enable -n allowGlobalConfirmation
Chocolatey v0.10.15
Enabled allowGlobalConfirmation
PS C:\WINDOWS\system32> choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
Chocolatey v0.10.15
Installing the following packages:
cmake
By installing you accept licenses for the packages.
Progress: Downloading cmake.install 3.21.0... 100%
Progress: Downloading cmake 3.21.0... 100%
cmake.install v3.21.0 [Approved]
cmake.install package files install completed. Performing other installation steps.
Installing 64-bit cmake.install...
cmake.install has been installed.
cmake.install may be able to be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv
).
The install of cmake.install was successful.
Software installed to 'C:\Program Files\CMake'
cmake v3.21.0 [Approved]
cmake package files install completed. Performing other installation steps.
The install of cmake was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Chocolatey installed 2/2 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
PS C:\WINDOWS\system32> choco install ninja gperf python git
Chocolatey v0.10.15
Installing the following packages:
ninja;gperf;python;git
By installing you accept licenses for the packages.
Progress: Downloading ninja 1.10.2... 100%
ninja v1.10.2 [Approved]
ninja package files install completed. Performing other installation steps.
Extracting C:\ProgramData\chocolatey\lib\ninja\tools\ninja-win_x32.zip to C:\ProgramData\chocolatey\lib\ninja\tools...
C:\ProgramData\chocolatey\lib\ninja\tools
Installed to: 'C:\ProgramData\chocolatey\lib\ninja\tools'
ShimGen has successfully created a shim for ninja.exe
The install of ninja was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\ninja\tools'
Progress: Downloading gperf 3.1... 100%
gperf v3.1 [Approved]
gperf package files install completed. Performing other installation steps.
Getting x64 bit zip
Extracting C:\ProgramData\chocolatey\lib\gperf\tools\gperf-3.1-win64_x64.zip to C:\ProgramData\chocolatey\lib\gperf\tools...
C:\ProgramData\chocolatey\lib\gperf\tools
ShimGen has successfully created a shim for gperf.exe
The install of gperf was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\gperf\tools'
Progress: Downloading python3 3.9.6... 100%
Progress: Downloading vcredist2015 14.0.24215.20170201... 100%
Progress: Downloading vcredist140 14.29.30040... 100%
Progress: Downloading chocolatey-core.extension 1.3.5.1... 100%
Progress: Downloading KB3033929 1.0.5... 100%
Progress: Downloading chocolatey-windowsupdate.extension 1.0.4... 100%
Progress: Downloading KB3035131 1.0.3... 100%
Progress: Downloading KB2919355 1.0.20160915... 100%
Progress: Downloading KB2919442 1.0.20160915... 100%
Progress: Downloading KB2999226 1.0.20181019... 100%
Progress: Downloading python 3.9.6... 100%
chocolatey-core.extension v1.3.5.1 [Approved]
chocolatey-core.extension package files install completed. Performing other installation steps.
Installed/updated chocolatey-core extensions.
The install of chocolatey-core.extension was successful.
Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-core'
chocolatey-windowsupdate.extension v1.0.4 [Approved]
chocolatey-windowsupdate.extension package files install completed. Performing other installation steps.
Installed/updated chocolatey-windowsupdate extensions.
The install of chocolatey-windowsupdate.extension was successful.
Software installed to 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate'
KB3035131 v1.0.3 [Approved]
kb3035131 package files install completed. Performing other installation steps.
Skipping installation because update KB3035131 does not apply to this operating system (Microsoft Windows 10 Pro).
The install of kb3035131 was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
KB3033929 v1.0.5 [Approved]
kb3033929 package files install completed. Performing other installation steps.
Skipping installation because update KB3033929 does not apply to this operating system (Microsoft Windows 10 Pro).
The install of kb3033929 was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
KB2919442 v1.0.20160915 [Approved]
kb2919442 package files install completed. Performing other installation steps.
Skipping installation because this hotfix only applies to Windows 8.1 and Windows Server 2012 R2.
The install of kb2919442 was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
KB2919355 v1.0.20160915 [Approved]
kb2919355 package files install completed. Performing other installation steps.
Skipping installation because this hotfix only applies to Windows 8.1 and Windows Server 2012 R2.
The install of kb2919355 was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
KB2999226 v1.0.20181019 [Approved] - Possibly broken
kb2999226 package files install completed. Performing other installation steps.
Skipping installation because update KB2999226 does not apply to this operating system (Microsoft Windows 10 Pro).
The install of kb2999226 was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
vcredist140 v14.29.30040 [Approved]
vcredist140 package files install completed. Performing other installation steps.
Downloading vcredist140-x86
from 'https://download.visualstudio.microsoft.com/download/pr/888b4c07-c602-499a-9efb-411188496ce7/F3A86393234099BEDD558FD35AB538A6E4D9D4F99AD5ADFA13F603D4FF8A42DC/VC_redist.x86.exe'
Progress: 100% - Completed download of C:\Users\user\AppData\Local\Temp\chocolatey\vcredist140\14.29.30040\VC_redist.x86.exe (13.14 MB).
Download of VC_redist.x86.exe (13.14 MB) completed.
Hashes match.
Installing vcredist140-x86...
vcredist140-x86 has been installed.
Downloading vcredist140-x64 64 bit
from 'https://download.visualstudio.microsoft.com/download/pr/36e45907-8554-4390-ba70-9f6306924167/97CC5066EB3C7246CF89B735AE0F5A5304A7EE33DC087D65D9DFF3A1A73FE803/VC_redist.x64.exe'
Progress: 100% - Completed download of C:\Users\user\AppData\Local\Temp\chocolatey\vcredist140\14.29.30040\VC_redist.x64.exe (24 MB).
Download of VC_redist.x64.exe (24 MB) completed.
Hashes match.
Installing vcredist140-x64...
vcredist140-x64 has been installed.
vcredist140 may be able to be automatically uninstalled.
The install of vcredist140 was successful.
Software installed as 'exe', install location is likely default.
vcredist2015 v14.0.24215.20170201 [Approved]
vcredist2015 package files install completed. Performing other installation steps.
The install of vcredist2015 was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
python3 v3.9.6 [Approved]
python3 package files install completed. Performing other installation steps.
Installing 64-bit python3...
python3 has been installed.
Python installed to: 'C:\Python39'
Restricting write permissions to Administrators
python3 can be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv
).
The install of python3 was successful.
Software installed as 'exe', install location is likely default.
python v3.9.6 [Approved]
python package files install completed. Performing other installation steps.
The install of python was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Progress: Downloading git.install 2.32.0.2... 100%
Progress: Downloading git 2.32.0.2... 100%
git.install v2.32.0.2 [Approved]
git.install package files install completed. Performing other installation steps.
Using Git LFS
Installing 64-bit git.install...
git.install has been installed.
git.install installed to 'C:\Program Files\Git'
git.install can be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv
).
The install of git.install was successful.
Software installed to 'C:\Program Files\Git'
git v2.32.0.2 [Approved]
git package files install completed. Performing other installation steps.
The install of git was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Chocolatey installed 15/15 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Installed:
- kb3033929 v1.0.5
- python3 v3.9.6
- chocolatey-windowsupdate.extension v1.0.4
- ninja v1.10.2
- vcredist140 v14.29.30040
- git v2.32.0.2
- kb2999226 v1.0.20181019
- kb2919355 v1.0.20160915
- chocolatey-core.extension v1.3.5.1
- kb2919442 v1.0.20160915
- gperf v3.1
- vcredist2015 v14.0.24215.20170201
- kb3035131 v1.0.3
- python v3.9.6
- git.install v2.32.0.2
Packages requiring reboot:
- vcredist140 (exit code 3010)
The recent package changes indicate a reboot is necessary.
Please reboot at your earliest convenience.
GNをインストールする
PS C:\WINDOWS\system32> git clone https://gn.googlesource.com/gn
Cloning into 'gn'...
remote: Total 30822 (delta 16201), reused 30822 (delta 16201)
Receiving objects: 100% (30822/30822), 30.70 MiB | 16.70 MiB/s, done.
Resolving deltas: 100% (16201/16201), done.
PS C:\WINDOWS\system32> cd gn
PS C:\WINDOWS\system32\gn> python build/gen.py
PS C:\WINDOWS\system32\gn> ninja -C out
ninja: Entering directory `out'
[1/282] CXX src/base/files/file_util.obj
FAILED: src/base/files/file_util.obj
ninja -t msvc -- cl.exe /nologo /showIncludes /FC -I..\src -I. /O2 /DNDEBUG /Zc:inline /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /DWINVER=0x0A00 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_UNICODE /D_WIN32_WINNT=0x0A00 /FS /W4 /WX /Zi /wd4099 /wd4100 /wd4127 /wd4244 /wd4267 /wd4505 /wd4838 /wd4996 /std:c++17 /GR- /D_HAS_EXCEPTIONS=0 /c ..\src\base\files\file_util.cc /Fosrc/base/files/file_util.obj
ninja: fatal: CreateProcess: 指定されたファイルが見つかりません。
[2/282] CXX src/base/md5.obj
FAILED: src/base/md5.obj
ninja -t msvc -- cl.exe /nologo /showIncludes /FC -I..\src -I. /O2 /DNDEBUG /Zc:inline /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /DWINVER=0x0A00 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_UNICODE /D_WIN32_WINNT=0x0A00 /FS /W4 /WX /Zi /wd4099 /wd4100 /wd4127 /wd4244 /wd4267 /wd4505 /wd4838 /wd4996 /std:c++17 /GR- /D_HAS_EXCEPTIONS=0 /c ..\src\base\md5.cc /Fosrc/base/md5.obj
ninja: fatal: CreateProcess: 指定されたファイルが見つかりません。
[3/282] CXX src/base/files/file_path_constants.obj
FAILED: src/base/files/file_path_constants.obj
ninja -t msvc -- cl.exe /nologo /showIncludes /FC -I..\src -I. /O2 /DNDEBUG /Zc:inline /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /DWINVER=0x0A00 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_UNICODE /D_WIN32_WINNT=0x0A00 /FS /W4 /WX /Zi /wd4099 /wd4100 /wd4127 /wd4244 /wd4267 /wd4505 /wd4838 /wd4996 /std:c++17 /GR- /D_HAS_EXCEPTIONS=0 /c ..\src\base\files\file_path_constants.cc /Fosrc/base/files/file_path_constants.obj
ninja: fatal: CreateProcess: 指定されたファイルが見つかりません。
[4/282] CXX src/base/files/file_enumerator.obj
FAILED: src/base/files/file_enumerator.obj
ninja -t msvc -- cl.exe /nologo /showIncludes /FC -I..\src -I. /O2 /DNDEBUG /Zc:inline /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /DWINVER=0x0A00 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_UNICODE /D_WIN32_WINNT=0x0A00 /FS /W4 /WX /Zi /wd4099 /wd4100 /wd4127 /wd4244 /wd4267 /wd4505 /wd4838 /wd4996 /std:c++17 /GR- /D_HAS_EXCEPTIONS=0 /c ..\src\base\files\file_enumerator.cc /Fosrc/base/files/file_enumerator.obj
ninja: fatal: CreateProcess: 指定されたファイルが見つかりません。
[5/282] CXX src/base/files/scoped_file.obj
FAILED: src/base/files/scoped_file.obj
ninja -t msvc -- cl.exe /nologo /showIncludes /FC -I..\src -I. /O2 /DNDEBUG /Zc:inline /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /DWINVER=0x0A00 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_UNICODE /D_WIN32_WINNT=0x0A00 /FS /W4 /WX /Zi /wd4099 /wd4100 /wd4127 /wd4244 /wd4267 /wd4505 /wd4838 /wd4996 /std:c++17 /GR- /D_HAS_EXCEPTIONS=0 /c ..\src\base\files\scoped_file.cc /Fosrc/base/files/scoped_file.obj
ninja: fatal: CreateProcess: 指定されたファイルが見つかりません。
[6/282] CXX src/base/files/scoped_temp_dir.obj
FAILED: src/base/files/scoped_temp_dir.obj
ninja -t msvc -- cl.exe /nologo /showIncludes /FC -I..\src -I. /O2 /DNDEBUG /Zc:inline /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /DWINVER=0x0A00 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_UNICODE /D_WIN32_WINNT=0x0A00 /FS /W4 /WX /Zi /wd4099 /wd4100 /wd4127 /wd4244 /wd4267 /wd4505 /wd4838 /wd4996 /std:c++17 /GR- /D_HAS_EXCEPTIONS=0 /c ..\src\base\files\scoped_temp_dir.cc /Fosrc/base/files/scoped_temp_dir.obj
ninja: fatal: CreateProcess: 指定されたファイルが見つかりません。
[7/282] CXX src/base/files/file_path.obj
FAILED: src/base/files/file_path.obj
ninja -t msvc -- cl.exe /nologo /showIncludes /FC -I..\src -I. /O2 /DNDEBUG /Zc:inline /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /DWINVER=0x0A00 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_UNICODE /D_WIN32_WINNT=0x0A00 /FS /W4 /WX /Zi /wd4099 /wd4100 /wd4127 /wd4244 /wd4267 /wd4505 /wd4838 /wd4996 /std:c++17 /GR- /D_HAS_EXCEPTIONS=0 /c ..\src\base\files\file_path.cc /Fosrc/base/files/file_path.obj
ninja: fatal: CreateProcess: 指定されたファイルが見つかりません。
[8/282] CXX src/base/json/string_escape.obj
FAILED: src/base/json/string_escape.obj
ninja -t msvc -- cl.exe /nologo /showIncludes /FC -I..\src -I. /O2 /DNDEBUG /Zc:inline /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /DWINVER=0x0A00 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_UNICODE /D_WIN32_WINNT=0x0A00 /FS /W4 /WX /Zi /wd4099 /wd4100 /wd4127 /wd4244 /wd4267 /wd4505 /wd4838 /wd4996 /std:c++17 /GR- /D_HAS_EXCEPTIONS=0 /c ..\src\base\json\string_escape.cc /Fosrc/base/json/string_escape.obj
ninja: fatal: CreateProcess: 指定されたファイルが見つかりません。
[9/282] CXX src/base/logging.obj
FAILED: src/base/logging.obj
ninja -t msvc -- cl.exe /nologo /showIncludes /FC -I..\src -I. /O2 /DNDEBUG /Zc:inline /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /DWINVER=0x0A00 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_UNICODE /D_WIN32_WINNT=0x0A00 /FS /W4 /WX /Zi /wd4099 /wd4100 /wd4127 /wd4244 /wd4267 /wd4505 /wd4838 /wd4996 /std:c++17 /GR- /D_HAS_EXCEPTIONS=0 /c ..\src\base\logging.cc /Fosrc/base/logging.obj
ninja: fatal: CreateProcess: 指定されたファイルが見つかりません。
[10/282] CXX src/base/json/json_parser.obj
FAILED: src/base/json/json_parser.obj
ninja -t msvc -- cl.exe /nologo /showIncludes /FC -I..\src -I. /O2 /DNDEBUG /Zc:inline /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /DWINVER=0x0A00 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_UNICODE /D_WIN32_WINNT=0x0A00 /FS /W4 /WX /Zi /wd4099 /wd4100 /wd4127 /wd4244 /wd4267 /wd4505 /wd4838 /wd4996 /std:c++17 /GR- /D_HAS_EXCEPTIONS=0 /c ..\src\base\json\json_parser.cc /Fosrc/base/json/json_parser.obj
ninja: fatal: CreateProcess: 指定されたファイルが見つかりません。
ninja: build stopped: subcommand failed.
エラーが出てGNをインストールできなかった