1
我想用jenkins windows 7节点构建程序。该程序使用cmake构建,但在配置阶段,cmake告诉我没有g ++编译器。我认为这个错误是由于错误的shell发生的,但我不知道如何设置正确的shell。该文件说,Windows上的第一个sh文件被执行,但msys2需要mingw32.exe作为正确的shell。如何设置jenkins windows从属节点以支持msys2 mingw shell
我想用jenkins windows 7节点构建程序。该程序使用cmake构建,但在配置阶段,cmake告诉我没有g ++编译器。我认为这个错误是由于错误的shell发生的,但我不知道如何设置正确的shell。该文件说,Windows上的第一个sh文件被执行,但msys2需要mingw32.exe作为正确的shell。如何设置jenkins windows从属节点以支持msys2 mingw shell
有几种方式启动MinGW的外壳:
set MSYSTEM=mingw32
或set MSYSTEM=mingw64
。然后开始msys2_shell.cmd
或usr/bin/bash --login
。msys2_shell.cmd
与-mingw32
或-mingw64
arg。source shell <name>
其中可以是:msys
,mingw32
,mingw64
。msys2-launcher-git
和运行mingw32.exe
或mingw64.exe