之后我正在尝试从源代码构建 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;
我是一名优秀的程序员,十分优秀!