gpt4 book ai didi

opencv - 当尝试使用适用于 Windows 桌面的 Visual Studio 2012 在 Windows 8 64 位上从源构建 sikuli 时,cmake 会引发以下问题

转载 作者:太空宇宙 更新时间:2023-11-03 21:47:30 26 4
gpt4 key购买 nike

之后我正在尝试从源代码构建 sikuli,以便我以后可以编辑 sikuli 源代码并生成我自己的可执行文件。我安装了必要的软件并按照以下链接中给出的说明进行操作:

https://github.com/sikuli/sikuli/blob/develop/build-win32.txt

我最终遇到以下错误:

Tesseract-OCR Data Path: c:/tesseract-2.04/tessdata
Tesseract-OCR Data Path: c:/tesseract-2.04/tessdata
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMake Warning (dev) at c:/OpenCV2.1/OpenCVConfig.cmake:39 (LINK_DIRECTORIES):
This command specifies the relative path



as a link directory.

Policy CMP0015 is not set: link_directories() treats paths relative to the
source dir. Run "cmake --help-policy CMP0015" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
E:/tsn/sikuli/cmake_modules/FindOpenCV.cmake:77 (include)
src/main/native/CMakeLists.txt:26 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

found OpenCVConfig c:/OpenCV2.1/include;c:/OpenCV2.1/include/opencv
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPack
ageHandleStandardArgs.cmake:97 (message):
Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStan
dardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindSWIG.cmake:67 (FI
ND_PACKAGE_HANDLE_STANDARD_ARGS)
src/main/native/CMakeLists.txt:28 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!

PS:我使用的是 Windows 8(64 位)、Windows 桌面版 Visual Studio 2012(安装在 C:\Program Files (x86)\Microsoft Visual Studio 11.0)及其命令提示符、opencv 2.4、tesseract 2.04 +英语数据、SWIG、jdk 6 和 cmake 2.8 来构建可执行文件。谁能帮我解决这个问题?

最佳答案

将jdk 1.6和swig的路径添加到系统环境变量中,一切正常

jdk path: C:\Program Files (x86)\Java\jdk1.6.0_43\bin;

swig path: C:\swigwin-2.0.9;

关于opencv - 当尝试使用适用于 Windows 桌面的 Visual Studio 2012 在 Windows 8 64 位上从源构建 sikuli 时,cmake 会引发以下问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16197565/

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