Skip to content


Subversion checkout URL

You can clone with
Download ZIP
79 lines (58 sloc) 2.37 KB
= How To Build Sikuli on Mac OS X =
CMake 2.8+
OpenCV 2.1+
Tesseract-OCR 2.04 + English language data (3.0 won't work),
SWIG 1.3+
The path to these dependent libraries can be set in cmake_modules/common.cmake.
You may need to add appropriate paths on your machine if cmake can not find
the libraries automatically.
CMake, SWIG and Tesseract-OCR can be installed with MacPorts.
( However, if you would like to build a universal
binary (x86_64 + i386) of Sikuli, you need the patch included in the end
of this file to fix the tesseract-ocr in MacPorts.
In addition, we strongly recommend to download and compile OpenCV from its
official source instead of using the MacPorts version.
Assume you are in the top directory of Sikuli's source tree. You can
build Sikuli IDE and Sikuli Script with the following steps.
0. Open the
1. make a "build" directory in sikuli-script/
mkdir sikuli-script/build
2. generate makefiles with CMake
cd sikuli-script/build
cmake ..
3. build sikuli-script
4. make a "build" directory in sikuli-ide/
cd ../.. # go back to the top directory
mkdir sikuli-ide/build
5. generate makefiles of Sikuli-IDE with CMake
cd sikuli-ide/build
cmake ..
6. generate a release package of sikuli-ide.
make package
= Tesseract's patch for building a universal binary (i386+x86_64) =
When "port install tesseract +universal" fails, patch the following file and
then do port install again:
< ld -r -o libtesseract_full.o tesseractfull.o \
> ld -arch i386 -r -o libtesseract_full_i386.o tesseractfull.o \
> ld -arch x86_64 -r -o libtesseract_full_x86_64.o tesseractfull.o \
> libtesseract_main.a \
> ../textord/libtesseract_textord.a \
> ../pageseg/libtesseract_pageseg.a \
> ../wordrec/libtesseract_wordrec.a \
> ../classify/libtesseract_classify.a \
> ../dict/libtesseract_dict.a \
> ../viewer/libtesseract_viewer.a \
> ../image/libtesseract_image.a \
> ../cutil/libtesseract_cutil.a \
> ../ccstruct/libtesseract_ccstruct.a \
> ../ccutil/libtesseract_ccutil.a
> lipo -create -output libtesseract_full.o libtesseract_full_i386.o libtes
Jump to Line
Something went wrong with that request. Please try again.