build1.1.0 2015-01-16 Different APIs for Mac and Windows

Asked by angelo

Hi Raimund,

just generated a Java API .jar using the setup on Windows wich resulted in a sikuli-java.jar. On Mac it was called sikulixapi. The Windows jar also behaves like the old 1.0.1 as it does not know Settings.CheckLastSeen and several other stuff...

By the way, can you give an advice how to build a x-OS compatible software with the new version? With 1.0.1 I just merged the libs directories of Windows an Mac and put both "MadeForSikuli...txt" files into it, which worked fine.

Question information

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

to get the jars for version 1.1.0 (sikulix.jar, sikulixapi.jar) you have to use the setup for version 1.1.0:
http://sikulix.com -> nightly builds

... and carefully obey the suggestions made for the use of the nightly build.

BTW: on Mac and Windows, one should not handle with/manipulate the libs folder in any way.
If you have any doubts, just delete an existing one, it will be correctly regenerated automatically the next time it is needed.

... and on Windows with version 1.1.0+ the needed system path entries will be added on the fly during runtime.
So when using 1.1.0+, you should take care, that ANY pointers to Sikuli stuff is purged from the environment before using it.

With the final version 1.1.0 the libs folder and other stuff will no longer be in the folder with sikulix stuff anyways, but somewhere else in the user home area. so you can freely move/copy the jars around as you like (though this is not recommended, use links/references/pointers instead).

Revision history for this message
angelo (angelo-j) said :
#2

Ok, I used the setup of 1.0.1 by accident (looked very similar to 1.1.0 through my blurry view in the morning).

But using the setup I only get OS specific versions of the sikulixapi.jar. So I generated a version for mac and a version for Windows and merged the META-INF/libs folder. So now I have a sikuliapi.jar that contains both, a META-INF/libs/mac and a META-INF/libs/Windows folder. This solved the problem of developing the same project on MAC and Windows.

@Raimund: Whats the idea of having a setup that generates OS specific APIs? Maybe its a good idea to provide another setup option to generate an OS independent API.jar?

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

--- Whats the idea of having a setup that generates OS specific APIs?
Because the normal Sikuli user would use a Sikuli version on the system he is working on.
So I decided to be selective in the standard.

--- another setup option to generate an OS independent API.jar
yes, you can ;-)
see faq 2609
in your case
options 2 4.1 4.2 3

the 3 would add Tesseract support.