gpt4 book ai didi

java - Android 版 OpenCV : Error Program "sh" not found in PATH

转载 作者:行者123 更新时间:2023-11-28 00:42:03 26 4
gpt4 key购买 nike

我尝试使用官方教程在 Eclipse 中构建 OpenCV4Android SDK here .我按照所有这些说明进行操作,在尝试从 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:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\MATLAB\R2013a\bin;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\]
)

这是我第一次尝试在 Eclipse 中构建 C++ 代码(之前我使用的是 VS),所以我怀疑这可能是在 Eclipse 中编译 C++ 代码的问题。经过一些互联网搜索,我在 Eclipse 的 Properties->C/C++Build->Settings->Binary Parsers 中打开了 PE Windows Parser,但是错误仍然存​​在。我该如何解决这个问题?提前致谢。

最佳答案

尝试安装CYGWIN,并在Windows环境变量的PATH中提供cygwin的bin目录路径(在Windows Toolkit声明之前)。也许 Windows 工具包不适合您。

关于java - Android 版 OpenCV : Error Program "sh" not found in PATH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18398206/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com