OpenCV for Android:在 PATH 中找不到错误程序"sh"
OpenCV for Android: Error Program "sh" not found in PATH
我尝试使用这里的官方教程在Eclipse中构建OpenCV4Android SDK
。我遵循了所有这些说明,在尝试从OpenCV4Android SDK构建那些OpenCV库项目时,我得到了以下错误:
Invoking autoreconf in build directory: C:/Android-64/Opencv4Android/sdk/java/
Configuration failed with error
(sh -c "autoreconf -i"
Cannot run program "sh": Launching failed
Error: Program "sh" not found in PATH
PATH=[C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;c:Program Files (x86)Microsoft SQL Server100ToolsBinn;c:Program FilesMicrosoft SQL Server100ToolsBinn;c:Program FilesMicrosoft SQL Server100DTSBinn;C:Program FilesTortoiseSVNbin;C:Program FilesMicrosoftWeb Platform Installer;C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0;C:Program Files (x86)Windows Kits8.0Windows Performance Toolkit;C:Program FilesMicrosoft SQL Server110ToolsBinn;C:Program Files (x86)MATLABR2013abin;C:Program Files (x86)IDM Computer SolutionsUltraEdit]
)
这是我第一次尝试在Eclipse中构建C++代码(以前我使用VS),所以我怀疑这可能是在Eclipse中编译C++代码的问题。经过一些互联网搜索,我在Eclipse中打开了Properties->C/C++Build->Settings->Binary Parsers
中的PE Windows Parser
,但错误仍然存在。我该如何解决这个问题?提前谢谢。
尝试安装CYGWIN,并在Windows环境变量的path中提供CYGWIN的bin目录的路径(在声明Windows Toolkit之前)。也许Windows工具包不适合您。
根据此线程,您应该尝试创建一个新项目Executable project
,然后选择要使用的工具链。
相关文章:
- 我在c ++矩阵计算器程序中找不到错误
- 我在代码中找不到错误以找到最大的素因数?
- 在我的应用逻辑中找不到错误
- 在模板类中找不到错误
- 双重释放或损坏错误(找不到错误?
- 在我的 cpp 或头文件中找不到错误,类构建失败
- 在哈希表复制构造函数中找不到错误
- 找不到错误。C++,字符串
- 8谜题代码.我的队列没有填充,我找不到错误的位置
- C++中的预期表达式,但找不到错误
- C++ 将布尔隐式转换为 int 和算术,删除分支,找不到错误
- 找不到错误"invalid conversion from char to const char*"的解决方案
- 在以下代码中找不到错误:- 在 try() 之前预期未限定 id
- 在重载运算符中找不到错误<
- C++ 中的分段错误(核心转储) 找不到错误
- 在使用set_difference算法时找不到错误
- 在 while 循环中找不到错误?
- C++错误LNK2001,找不到错误
- 在我的代码中找不到错误....分段错误
- LNK2005(已定义)找不到错误