← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #194069]: How to build android-robot jar file on Mac OSX Lion

 

Question #194069 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/194069

    Status: Open => Answered

RaiMan proposed the following answer:
@ Don
I had a look at the android stuff (latest OS X Lion).

It seems, that the currently available version of monkeyrunner, that comes with the Android SDK, is no longer compatible with the android-robot-0.3 sources:
- adb class no longer available in monkeyrunner (has been moved elsewhere ?) 
- there is a strange error with the class MonkeyDevice, so I guess something changed there too

So i had no chance to get the make work and produce a jar file.

I guess this is the reason, why the jar cannot be downloaded anymore: it
does not work with the current Android SDK anyway.

So one has to fix the problems in the android-robot source to get this
feature working again. Since I do not have any experience with Android
and I am not the developer, I cannot help you here.

*** BTW: this is the way to run the build

(as you will see: all actions happen in the build folder! This is the
recommended way and allows to forget unsuccessful builds by simply
deleting this folder.)

1. Download the current Sikuli sources from GitHub (however you do that)
2. If you do not build sikuli-script.jar from the sources, copy an actual sikuli-script.jar (Mac: from /Applications/Sikuli-IDE.app/Contents/Resources/Java) to the folder lib (is on same level as extensions)
2. Make sure you have Xcode and Cmake (OpenCV, Tesseract, SWIG only needed for building sikuli-script.jar)
3. make sure you have a valid Android SDK (> version 10) on your system (this build expects it to be in /opt/android-sdk-mac_x86 - if this is not the case, you have to change the CmakeLists.txt in 2 places)
3. Open Terminal - Go to android-robot folder in the extension folder of the Sikuli stuff
4. Make a subfolder "build" in "android-robot/"
5. cd to this empty build folder
5. $ cmake .. ( makefile is created in build/)
7. $ make

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.