Compiling Sikuli project to run it on Windows 7 as an EXE file

Asked by Sikuli User

I would need to know if is possible to compile a Sikuli project in order to run it as an EXE on Windows 7. Didn't find anything about this, yet.

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Sikuli User
Solved:
Last query:
Last reply:
Revision history for this message
Sikuli User (hidden-hidden) said :
#1

I am still searching to see if this is possible..but I can't find any information.

I appreciate any help in regard to this matter.

Thanks

Revision history for this message
Sikuli User (hidden-hidden) said :
#2

After more reading I believe I understand. The .skl file exported from the IDE is actually the .exe in this case. In order to run it, I should use the command line or a .bat file.

Revision history for this message
jesperfjoelner@hotmail.com (jesperfjoelner) said :
#3

NT

Revision history for this message
KingRider (kingrider) said :
#4

But... how to make .skl to .exe? with w7 64bits ... i try work pytlon -> java (with execute .py) to exe not work fine =(

Help me... thanks

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

A .skl has nothing to do with .exe.

It is simply a zipped version of the respective scriptfolder "saved as executable", which might be misleading :-(

Sikuli does not have any feature to transform a script into a standalone .exe.

A .skl has to be run from command line using Sikuli-IDE.bat.

Revision history for this message
KingRider (kingrider) said :
#6

hum.. i understand... thanks!

Revision history for this message
guto (gmsetta) said :
#7

So, there is no way to do it?

I'll have to take all the original Sikuli folder with this "exported executable"?

Thks!

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

@guto
If you are talking about scripts (.sikuli): principally possible but complex up to not possible.

I had a look at some free exe builders: no success.
There are some solutions available, that target at having everything on a stick and not touching the registry: no success.

The most promising solution is using Launch4J.

... but I do not want to discourage you:
with the Sikuli versions before 1.1.0, there are many pitfalls: system path settings, libraries not loadable from .exe (must be exported). So you have to add some Java code, to arrange the system where the exe is started on.

Version 1.1.0 will have an option to build self contained exe packages using Launch4J (not yet available though).
This is possible, since I managed to have SikuliX self contained now, so that all features are available to run an exe having everything inside. Even the IDE will come back now as exe.

Revision history for this message
guto (gmsetta) said :
#9

Thks @RaiMan!!!

When it'll be available this 'powerful' version? =D

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

the 1.1.0 is available as prefixal (I hope you know: http:sikulix.com).
... only some fixes away from the final. No changes anymore with features.

... only the .exe feature might have to wait for an update release 1.1.1 later.

Revision history for this message
Mason Costa (masoncosta) said :
#11

I too am very interested in being able to compile a self-contained executable (.exe) script that can be run on other PCs that don't have the Sikuli project installed. TinyTask has a nice compile option, but it does not do the awesome image recognition like Sikuli can.
(http://www.vtaskstudio.com/tinytask.exe)

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

@MasonCosta
Thanks for the pointer to vtaskstudio.
Always a chance to rethink the features of SikuliX.

Version 2 will have a feature to pack scripts into self contained jar files (+ exe on Windows), but SikuliX will need Java to be installed on the target machine, until there is a better idea how to solve this requirement.