How do I compile now?

Asked by niknah

Sorry, I don't know much about maven. I am trying to compile sikuli from the sources in github.

To compile I'm using(as mentioned in the README)...

mvn -f pom_make_sikuli-script-jar.xml clean package assembly:single

But I get this error...

[ERROR] Failed to execute goal on project SikuliX-API: Could not resolve dependencies for project org.sikuli:SikuliX-API:jar:1.1.0: The following artifacts could not be resolved: org.sikuli:SikuliX-Basics:jar:1.1.0, org.sikuli:SikuliX-Jython:jar:1.1.0: Could not find artifact org.sikuli:SikuliX-Basics:jar:1.1.0 in uni-due.de (http://mvn.is.inf.uni-due.de:8081/nexus/content/repositories/atunes-dependencies/

Warnings before that error....

Downloading: http://mvn.is.inf.uni-due.de:8081/nexus/content/repositories/atunes-dependencies/org/sikuli/SikuliX-Basics/1.1.0/SikuliX-Basics-1.1.0.pom
Downloading: http://repo.maven.apache.org/maven2/org/sikuli/SikuliX-Basics/1.1.0/SikuliX-Basics-1.1.0.pom
[WARNING] The POM for org.sikuli:SikuliX-Basics:jar:1.1.0 is missing, no dependency information available
Downloading: http://mvn.is.inf.uni-due.de:8081/nexus/content/repositories/atunes-dependencies/org/sikuli/SikuliX-Jython/1.1.0/SikuliX-Jython-1.1.0.pom
Downloading: http://repo.maven.apache.org/maven2/org/sikuli/SikuliX-Jython/1.1.0/SikuliX-Jython-1.1.0.pom
[WARNING] The POM for org.sikuli:SikuliX-Jython:jar:1.1.0 is missing, no dependency information available

And if I try to compile the jar manually and add the jar...

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project SikuliX-API: Compilation failure: Compilation failure:
[ERROR] /home/hankin/Downloads/sikuli_src/SikuliX-API/src/main/java/org/sikuli/script/Region.java:[1578,19] cannot find symbol
[ERROR] symbol: method getImageFromCache(java.lang.String)
[ERROR] location: class org.sikuli.basics.Image
[ERROR] /home/hankin/Downloads/sikuli_src/SikuliX-API/src/main/java/org/sikuli/script/Region.java:[1839,20] cannot find symbol
[ERROR] symbol: method createImage(java.lang.String)
[ERROR] location: class org.sikuli.basics.Image
[ERROR] /home/hankin/Downloads/sikuli_src/SikuliX-API/src/main/java/org/sikuli/script/Region.java:[1892,20] cannot find symbol
[ERROR] symbol: method createImage(java.lang.String)
[ERROR] location: class org.sikuli.basics.Image
[ERROR] /home/hankin/Downloads/sikuli_src/SikuliX-API/src/main/java/org/sikuli/script/SikuliEventManager.java:[126,26] cannot find symbol

Question information

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

you first have to run mvn install in Basics and Jython to get these jars into your local repo.

Revision history for this message
niknah (hankin0) said :
#2

Thanks Raiman,

Now I have some compilation errors about not being able to find Image.getImageFromCache, Image.createImage
I have the latest SikuliX-Basics from github. These functions don't seem to be there.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project SikuliX-API: Compilation failure: Compilation failure:
[ERROR] /home/hankin/Downloads/sikuli_src/SikuliX-API/src/main/java/org/sikuli/script/Region.java:[1578,19] cannot find symbol
[ERROR] symbol: method getImageFromCache(java.lang.String)
[ERROR] location: class org.sikuli.basics.Image
[ERROR] /home/hankin/Downloads/sikuli_src/SikuliX-API/src/main/java/org/sikuli/script/Region.java:[1839,20] cannot find symbol
[ERROR] symbol: method createImage(java.lang.String)
[ERROR] location: class org.sikuli.basics.Image
[ERROR] /home/hankin/Downloads/sikuli_src/SikuliX-API/src/main/java/org/sikuli/script/Region.java:[1892,20] cannot find symbol
[ERROR] symbol: method createImage(java.lang.String)
[ERROR] location: class org.sikuli.basics.Image
[ERROR] /home/hankin/Downloads/sikuli_src/SikuliX-API/src/main/java/org/sikuli/script/SikuliEventManager.java:[126,26] cannot find symbol

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

Sorry, if you want to live in peace for now, you should fork the master branches (level current 1.0.1)

The develop branches will only be somehow stable in about 1 week with the first beta for 1.1

Can you help with this problem?

Provide an answer of your own, or ask niknah for more information if necessary.

To post a message you must log in.