kurisaW / micro_ros_rtthread_component

1 stars 0 forks source link

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

Open kurisaW opened 10 months ago

kurisaW commented 10 months ago

在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 commented 10 months ago

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

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

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

然后使用choco安装make

choco install make