The content of this page has been moved to https://github.com/openimaj/openimaj/wiki/Compiling-OpenIMAJ-from-Source
Wiki: Home
Wiki: OpenIMAJ Tools
Wiki: SimpleMosaic
Anonymous
Hi, after running the command "mvn install" I got this error:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 49.235s
[INFO] Finished at: Mon Jul 08 21:04:31 CEST 2013
[INFO] Final Memory: 42M/106M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project core-image: Compilation failure
[ERROR] /Users/Marco/Desktop/Development/Java/Libraries/openimaj/core/core-image/src/main/java/org/openimaj/image/typography/hershey/HersheyFont.java:[203,30] inconvertible types
[ERROR] found : org.openimaj.image.typography.hershey.HersheyFontRenderer<capture#620 of="" ?="">
[ERROR] required: org.openimaj.image.typography.FontRenderer<T,Q>
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :core-image
And using the command "mvn -e install" I got this error (the same one, but with the extended stack trace):
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.489s
[INFO] Finished at: Mon Jul 08 21:09:59 CEST 2013
[INFO] Final Memory: 41M/91M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project core-image: Compilation failure
[ERROR] /Users/Marco/Desktop/Development/Java/Libraries/openimaj/core/core-image/src/main/java/org/openimaj/image/typography/hershey/HersheyFont.java:[203,30] inconvertible types
[ERROR] found : org.openimaj.image.typography.hershey.HersheyFontRenderer<capture#14 of="" ?="">
[ERROR] required: org.openimaj.image.typography.FontRenderer<T,Q>
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project core-image: Compilation failure
/Users/Marco/Desktop/Development/Java/Libraries/openimaj/core/core-image/src/main/java/org/openimaj/image/typography/hershey/HersheyFont.java:[203,30] inconvertible types
found : org.openimaj.image.typography.hershey.HersheyFontRenderer<capture#14 of="" ?="">
required: org.openimaj.image.typography.FontRenderer<T,Q>
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
/Users/Marco/Desktop/Development/Java/Libraries/openimaj/core/core-image/src/main/java/org/openimaj/image/typography/hershey/HersheyFont.java:[203,30] inconvertible types
found : org.openimaj.image.typography.hershey.HersheyFontRenderer<capture#14 of="" ?="">
required: org.openimaj.image.typography.FontRenderer<T,Q>
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :core-image
I downloaded the library using the command "svn checkout svn://svn.code.sf.net/p/openimaj/code/trunk openimaj"
What should I do?
Please, send me any answers to marco.speziali.96@gmail.com
Thank you, in advance!
Marco.
Hi Marco. The error your seeing is due to a bug in some versions of the java 6 compiler. Can you update your java version and try again?
I'm currently using the OSX integrated version of Java, as I read OSX does not support completely Java 7. Should I install it anyway?
Hi again - I just sent you an email, but regarding java 7, we've been using it for a long while on our Macs without issue.
Hi, is it possible to capture a photo from a webcam using openIMAGVIDEO?
Please see the reply on the same question you posted in the OpenIMAJ video page.
I using window 7. I has no clue at the step, svn checkout svn://svn.code.sf.net/p/openimaj/code/trunk openimaj. How should i install the openimaj with maven in this case?
You almost certainly don't want to be following these instructions - if you just want to use OpenIMAJ, then follow Chapter 1 of the tutorial: http://www.openimaj.org/tutorial
If you really want to build it from source, get the latest version of the code from github: http://github.com/openimaj/openimaj
(We're currently in the middle of migrating from sourceforge to github, and not all the links and instructions on this site have been moved/updated yet)
After i run the mvn install -DskipTests, i got these errors:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project sandbox: Compilation failure: Compilati
on failure:
[ERROR] \openimaj-code\demos\sandbox\src\main\java\org\openimaj\demos\sandbox\PD
MDemo.java:[51,37] error: package org.openimaj.content.slideshow does not exist
[ERROR] \openimaj-code\demos\sandbox\src\main\java\org\openimaj\demos\sandbox\PD
MDemo.java:[52,37] error: package org.openimaj.content.slideshow does not exist
[ERROR] \openimaj-code\demos\sandbox\src\main\java\org\openimaj\demos\sandbox\PD
MDemo.java:[63,32] error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :sandbox
My java version is 1.8.0_25 and i set MAVEN_OPTS="Xmx4G" and tried but still get the same error. Please kindly help me regarding this issues....
Please get the latest version of the code from http://github.com/openimaj/openimaj and that problem will go away.
Ok. I try it now. Thanks Jonathon Hare.
That had solved my problems Thanks a lot Jonathan Hare.
Hi, I imported the files in eclipse, but there are error shown as attachment. What should i proceed to solve it? Thanks a lot
Hi,
The previous problem were solved. Now Left the 1 errors, as in ImageCollecionConfigTest.java :The method assertEquals(Object, Object) is ambiguous for the type ImageCollectionConfigTest. Any idea how to solve it?
I have no idea why eclipse thinks that's a problem (what version are you using?). You can probably work-around it by casting to an int:
assertEquals((int)config.read("$.a.inner"),2);
though.Hey I am not able to download jtemp-maven-plugin:1.0 to run the OpenIMAJ master project
Error description:
[ERROR] Plugin uk.ac.soton.ecs.jsh2:jtemp-maven-plugin:1.0 or one of its depende
ncies could not be resolved: Could not find artifact uk.ac.soton.ecs.jsh2:jtemp-
maven-plugin:jar:1.0 in octopussy (http://octopussy.ecs.soton.ac.uk/m2/releases/
) -> [Help 1]
Even I am not able to access http://octopussy.ecs.soton.ac.uk/m2/releases/
Can you please suggest me a fix?