Menu

OpenIMAJ From Source Log in to Edit

Jonathon Hare Sina Samangooei Patrick McSweeney

Related

Wiki: Home
Wiki: OpenIMAJ Tools
Wiki: SimpleMosaic

Discussion

  • Anonymous

    Anonymous - 2013-07-08

    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>

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    

    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>

    at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
    at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
    

    [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.

     
  • Jonathon Hare

    Jonathon Hare - 2013-07-08

    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?

     
  • Anonymous

    Anonymous - 2013-07-08

    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?

     
  • Jonathon Hare

    Jonathon Hare - 2013-07-08

    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.

     
  • Anonymous

    Anonymous - 2013-07-24

    Hi, is it possible to capture a photo from a webcam using openIMAGVIDEO?

     
    • David Dupplaw

      David Dupplaw - 2013-07-24

      Please see the reply on the same question you posted in the OpenIMAJ video page.

       
  • Anonymous

    Anonymous - 2015-03-17

    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?

     
    • Jonathon Hare

      Jonathon Hare - 2015-03-17

      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)

       
  • Anonymous

    Anonymous - 2015-03-18

    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....

     
    • Jonathon Hare

      Jonathon Hare - 2015-03-18

      Please get the latest version of the code from http://github.com/openimaj/openimaj and that problem will go away.

       
      • Anonymous

        Anonymous - 2015-03-18

        Ok. I try it now. Thanks Jonathon Hare.

         
      • Anonymous

        Anonymous - 2015-03-18

        That had solved my problems Thanks a lot Jonathan Hare.

         
  • Anonymous

    Anonymous - 2015-03-19

    Hi, I imported the files in eclipse, but there are error shown as attachment. What should i proceed to solve it? Thanks a lot

     
  • Anonymous

    Anonymous - 2015-03-20
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2015-03-20

    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?

     
  • Jonathon Hare

    Jonathon Hare - 2015-03-20

    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.

     
  • Anonymous

    Anonymous - 2015-04-17
    Post awaiting moderation.
  • Sudeep Singh

    Sudeep Singh - 2015-05-22

    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?

     
  • Anonymous

    Anonymous - 2016-01-14
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2016-04-27
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel