Building Sikuli in windows

Asked by Yadish Khan

Hi,
I was trying to build sikuli from source code on windows 64 bit system.
I downloaded and installed the following softwares (as mentioned as prerequisite in build-win32.txt):
OpenCV2.1
tesseract 2.04 with english data pack
Cmake 2.8
Swigwin2.0.9
Visual Studio 2010
JDK 6

While trying to generate make file, I got the following error:
CMake Error: Could not create named generator NMake Makefiles

Following is my 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
   "/OpenCV2.1"
   "c:/OpenCV2.1"
)

FIND_PATH(TESSERACT_DATA_DIR confsets
   "/opt/local/share/tessdata"
   "/usr/local/share/tessdata"
   "/usr/share/tesseract-ocr/tessdata"
   "/usr/share/tesseract/tessdata"
   "/usr/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()

It might not actualy be a sikuli problem but please help me out so that I can build it on my system.
Note- I have cygwin also installed previously on my system.

Thanks!!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
codingcat (huan-le-song) said :
#1

are you sure that you are using the Visual Studio command prompt , NOT a cmd console?

Revision history for this message
Yadish Khan (yadish-khan) said :
#2

Yes I am using Visual Studio command prompt!!
Btw today I somehow figured out that this was because the cmake used here was from cygwin and wasnt compatible.
So I changed that and it started building but I still get some other errors regarding 'int' to pointer conversion
My guess is its because of mismatch of 32 bit and 64 bit softwares but i am unable to figure out which.

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

the failing statements have to be modified using a reinterpret_cast.

Revision history for this message
Yadish Khan (yadish-khan) said :
#4

Thanks RaiMan, that solved my question.