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

[microros] 编译依赖--GNU make #5

Open
kurisaW opened this issue Oct 23, 2023 · 1 comment
Open

[microros] 编译依赖--GNU make #5

kurisaW opened this issue Oct 23, 2023 · 1 comment

Comments

@kurisaW
Copy link
Owner

kurisaW commented Oct 23, 2023

在windows上安装make有三个渠道:

1.第一个渠道是从官网下载 make.exe Make for Windows

官网首页:https://www.gnu.org/software/make/

下载地址:https://gnuwin32.sourceforge.net/downlinks/make.php

完整安装后。把安装路径添加到环境变量 PATH 中.

2.第二种是chocolatey 参考chocolaty官网安装chocolatey

https://community.chocolatey.org/packages/make

管理员运行power shell

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

接着在power shell中键入如下命令安装make

choco install make

3.第三种是安装mingw

里面有mingw32-make.exe,拷贝之后重命名为make.exe添加到环境变量PATH

mingw下载路径在这里:https://sourceforge.net/projects/mingw/

注意:由于Mingw可能与我们实际的工具链会产生冲突,不建议使用第三种方式

@kurisaW
Copy link
Owner Author

kurisaW commented Oct 23, 2023

这里我选择的是第二种方式,可以参考这篇文章:

打开powershell 管理员模式终端,输入命令:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

然后使用choco安装make

choco install make

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

No branches or pull requests

1 participant