Building sikuli source code is unsuccessfull

Asked by kabilan on 2012-05-02

I am trying to build sikuli source code which is downloaded from GIT. I installed the dependent softwares as given in build-mac.txt. I am using MacOS 10.6.8. I also made necessary path changed in my env path and also changed common.cmake. here is my changed common.cmake file

SET(CMAKE_BUILD_TYPE Release) # Release | Debug
SET(CMAKE_VERBOSE_MAKEFILE 0)
#SET(CMAKE_OSX_ARCHITECTURES i386 x86_64)

FIND_PATH(OpenCV_DIR OpenCVConfig.cmake
   "/OpenCV-2.3.1"
   "c:/OpenCV2.1"
)

FIND_PATH(TESSERACT_DATA_DIR confsets
   "/usr/local/share/tessdata"
   "c:/tesseract-2.04/tessdata"
)

IF(WIN32)
   FIND_PATH(TESSERACT_SRC_DIR ccmain
      "c:/tesseract-2.04"
   )

ENDIF()

message("Tesseract-OCR Data Path: ${TESSERACT_DATA_DIR}")
#message("OpenCV Path: ${OpenCV_DIR}")

IF(UNIX AND NOT APPLE)
   SET(LINUX 1)
ENDIF()

Once done with common.cmake, i created build folder in sikuli-script folder and from inside the build i ran "cmake ..". Here is where i am getting the issue. Below is my issue.

Tesseract-OCR Data Path: TESSERACT_DATA_DIR-NOTFOUND
Tesseract-OCR Data Path: TESSERACT_DATA_DIR-NOTFOUND
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
found OpenCVConfig /OpenCV-2.3.1;/OpenCV-2.3.1/include;/OpenCV-2.3.1/include/opencv
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Tesseract_INCLUDE_DIR=/Library/Frameworks/tesseract.framework
Tesseract_INCLUDE_DIRS=/Library/Frameworks/tesseract.framework;/Library/Frameworks/tesseract.framework
Tesseract_LIBRARY=Tesseract_LIBRARY-NOTFOUND
Tesseract_LIBRARIES=
CMake Error at /Users/symantecadmin/Downloads/sikuli-sikuli-699d404/cmake_modules/LibFindMacros.cmake:74 (message):
  Required library Tesseract NOT FOUND.

  Install the library (dev version) and try again. If the library is already
  installed, use ccmake to set the missing variables manually.
Call Stack (most recent call first):
  /Users/symantecadmin/Downloads/sikuli-sikuli-699d404/cmake_modules/FindTesseract.cmake:34 (libfind_process)
  src/main/native/CMakeLists.txt:47 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!

I have set the env path for Opencv_DIR and TESSERACT_DATA_DIR. but still i am getting this issue.

Please help me to solve this as soon as possible.

Thanks,
Kabilan

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2012-05-03
Last reply:
2012-05-03
RaiMan (raimund-hocke) said : #1

--- not sure, wether OpenCV 2.3 works (I have it running with OpenCV 2.2)

--- why don't you install the stuff like openCV and Tesseract into the common place like /usr/local ???

--- your Tesseract installation is not found (-> cmake_modules/FindTesseract.cmake)

On my Mac Lion I have all the stuff installed in the normal places and have no problem building even a plain x64 version.

kabilan (kabi-tvp) said : #2

Hi,

I tried installing tesseract 2.0 where the tesseract issue is solved. but i am getting another issue regarding till_libs. Here is my new issue details

NATIVE_LIBS: VisionProxy;VDictProxy;MacUtil;MacHotkeyManager
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
TIFF_LIBS
    linked by target "MacHotkeyManager" in directory /Users/symantecadmin/Downloads/sikuli-sikuli-699d404/sikuli-script/src/main/native
    linked by target "MacUtil" in directory /Users/symantecadmin/Downloads/sikuli-sikuli-699d404/sikuli-script/src/main/native
    linked by target "VDictProxy" in directory /Users/symantecadmin/Downloads/sikuli-sikuli-699d404/sikuli-script/src/main/native
    linked by target "VDictProxy" in directory /Users/symantecadmin/Downloads/sikuli-sikuli-699d404/sikuli-script/src/main/native
    linked by target "VisionProxy" in directory /Users/symantecadmin/Downloads/sikuli-sikuli-699d404/sikuli-script/src/main/native

-- Configuring incomplete, errors occurred!

Please suggest me a solution for this..

Thanks,
Kabilan

RaiMan (raimund-hocke) said : #3

You need libtiff

I am using hombrew as package manager and this installs libtiff 3.9.5 from
http://www.remotesensing.org/libtiff/

kabilan (kabi-tvp) said : #4

Hi RaiMan,

I installed libtiff and build the sikuli successfully.

Once building is done, dmg file created and i installed the sikuli-IDE from the dmg file. But when i launch the sikuli-IDE application, i am getting an error. The error is given below,

"uncaught exception in main application:
java.lang.UnsatisfiedLinkError: /Applications/Sikuli-IDE.app/Contents/Frameworks/libMacHotkeyManager.jnilib: no suitable image found. Did find: /Applications/Sikuli-IDE.app/Contents/Frameworks/libMacHotkeyManager.jnilib: mach-o, but wrong architecture."

When i get the error i changed 64bit to 32bit in java preferences in Utility folder. Even after i am getting the same messagebox showing the same error.

Can u suggest me a solution??

Thanks,
Kabilan

RaiMan (raimund-hocke) said : #5

No idea.

I always build completely with 64 Bit on my Mac Lion
by commenting out the line in common.cmake:
#SET(CMAKE_OSX_ARCHITECTURES i386 x86_64)
and having all dependency stuff installed as 64-Bit.

So this might be some mix up of architecture settings some where in the build process.

Sorry, I cannot help you further.

kabilan (kabi-tvp) said : #6

Thanks RaiMan....

kabilan (kabi-tvp) said : #7

Hey RaiMan...

One last question. please tell how to build opencv and tesseract in 64bit? I am little confused in that part.
It will useful if you tell me this... please

Thanks,
kabilan

RaiMan (raimund-hocke) said : #8

You made up a new question on the remaining problem.