根据安信可官网开发环境搭建的教程一步步做到构建menuconfig的时候,控制台(console)报错:
Error: Program "mintty.exe" not found in PATH
PATH=。。。。
同时还报找不到G++之类的错误。
百度无法解决,早上仔细看了下环境变量中PATH的定义,觉得有点不顺,怎么一片 \ 中有了 / ,好家伙,敢情是从Linux之类的操作系统偷渡而来的。赶紧把PATH的路径复制到word里,查找替换了一下,OK了。
原PATH路径:E:/AiThinkerIDE_V1.0/eclipse/jre/bin/client;E:/AiThinkerIDE_V1.0/eclipse/jre/bin;E:/AiThinkerIDE_V1.0/eclipse/jre/lib/i386;E:\AiThinkerIDE_V1.0\msys32\opt\arm-nono-eabi-gcc\bin;E:\AiThinkerIDE_V1.0\msys32\opt\xtensa-lx106-elf\bin;E:\AiThinkerIDE_V1.0\msys32\opt\xtensa-esp32-elf\bin;E:\AiThinkerIDE_V1.0\msys32\mingw32\bin;E:\AiThinkerIDE_V1.0\msys32\usr\bin;E:\AiThinkerIDE_V1.0\eclipse\eclipse.exe;C:\Program Files (x86)\NetSarang\Xftp 6\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\AiThinkerIDE_V1.0\eclipse
正确路径:E:\AiThinkerIDE_V1.0\eclipse\jre\bin\client;E:\AiThinkerIDE_V1.0\eclipse\jre\bin;E:\AiThinkerIDE_V1.0\eclipse\jre\lib\i386;E:\AiThinkerIDE_V1.0\msys32\opt\arm-nono-eabi-gcc\bin;E:\AiThinkerIDE_V1.0\msys32\opt\xtensa-lx106-elf\bin;E:\AiThinkerIDE_V1.0\msys32\opt\xtensa-esp32-elf\bin;E:\AiThinkerIDE_V1.0\msys32\mingw32\bin;E:\AiThinkerIDE_V1.0\msys32\usr\bin;E:\AiThinkerIDE_V1.0\eclipse\eclipse.exe;C:\Program Files (x86)\NetSarang\Xftp 6\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\AiThinkerIDE_V1.0\eclipse
就 / 跟 \ 的区别而已
这应该是安信可研发人员没注意到的一个细节,本来想反馈给安信可,但是找了一遍网站,也没看到反馈入口,这点最好改进下了。