Building Bioformats c++ bindings on Windows 7
Posted: Mon Feb 09, 2015 3:14 pm
Hi,
I've been following this tutorial: http://www.openmicroscopy.org/site/supp ... ndows.html
However, when I run
I get an error:
[INFO] Beginning Proxy generation.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.316 s
[INFO] Finished at: 2015-02-09T07:57:54-07:00
[INFO] Final Memory: 33M/526M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wra
p (default-cli) on project formats-bsd: Execution default-cli of goal loci.maven
.plugins:cppwrap-maven-plugin:1.1.1:wrap failed: An API incompatibility was enco
untered while executing loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wrap: java
.lang.ClassFormatError: Unrecognized constant tag value <15>
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>loci.maven.plugins:cppwrap-maven-plugin:1.1.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/John/.m2/repository/loci/maven/plugins/cppwrap-
maven-plugin/1.1.1/cppwrap-maven-plugin-1.1.1.jar
[ERROR] urls[1] = file:/C:/Users/John/.m2/repository/loci/jar2lib/1.1.1/jar2lib-
1.1.1.jar
[ERROR] urls[2] = file:/C:/Users/John/.m2/repository/jace/jace/r39/jace-r39.jar
[ERROR] urls[3] = file:/C:/Users/John/.m2/repository/asm/asm/3.1/asm-3.1.jar
[ERROR] urls[4] = file:/C:/Users/John/.m2/repository/asm/asm-tree/3.1/asm-tree-3
.1.jar
[ERROR] urls[5] = file:/C:/Users/John/.m2/repository/org/slf4j/slf4j-api/1.5.5/s
lf4j-api-1.5.5.jar
[ERROR] urls[6] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-clas
sic/0.9.11/logback-classic-0.9.11.jar
[ERROR] urls[7] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-core
/0.9.11/logback-core-0.9.11.jar
[ERROR] urls[8] = file:/C:/Users/John/.m2/repository/net/sourceforge/retroweaver
/retroweaver-rt/2.0.7/retroweaver-rt-2.0.7.jar
[ERROR] urls[9] = file:/C:/Users/John/.m2/repository/backport-util-concurrent/ba
ckport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[10] = file:/C:/Users/John/.m2/repository/org/apache/velocity/veloci
ty/1.6.4/velocity-1.6.4.jar
[ERROR] urls[11] = file:/C:/Users/John/.m2/repository/commons-collections/common
s-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[12] = file:/C:/Users/John/.m2/repository/commons-lang/commons-lang/
2.4/commons-lang-2.4.jar
[ERROR] urls[13] = file:/C:/Users/John/.m2/repository/oro/oro/2.0.8/oro-2.0.8.ja
r
[ERROR] urls[14] = file:/C:/Users/John/.m2/repository/org/codehaus/plexus/plexus
-utils/1.5.1/plexus-utils-1.5.1.jar
[ERROR] urls[15] = file:/C:/Users/John/.m2/repository/junit/junit/3.8.1/junit-3.
8.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>ome:formats-bsd:5.0.
7, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[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/disp ... inContaine
rException
I've checked at https://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException, and my loci/cppwrap-maven-plugin seems to be in this directory: .m2\repository\loci\maven\plugins\cppwrap-maven-plugin\1.1.1
however, even copying the .pom and .jar files to
.m2\repository\com\loci\maven\plugins\cppwrap-maven-plugin\1.1.1
doesn't make a difference.
I've even tried the instructions at http://www.itk.org/Wiki/ITK_Release_4/Microscopy/File_Formats/Bio-Formats#Build_Bio-Formats_and_Its_C.2B.2B_Bindings, but the directory components/native/bf-cpp doesn't exist.
Bioformats would be a huge help to my company's project, and it'd be great if I could build this for Windows. Could anyone offer some advice?
I've been following this tutorial: http://www.openmicroscopy.org/site/supp ... ndows.html
However, when I run
- Code: Select all
mvn -DskipTests package dependency:copy-dependencies cppwrap:wrap
I get an error:
[INFO] Beginning Proxy generation.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.316 s
[INFO] Finished at: 2015-02-09T07:57:54-07:00
[INFO] Final Memory: 33M/526M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wra
p (default-cli) on project formats-bsd: Execution default-cli of goal loci.maven
.plugins:cppwrap-maven-plugin:1.1.1:wrap failed: An API incompatibility was enco
untered while executing loci.maven.plugins:cppwrap-maven-plugin:1.1.1:wrap: java
.lang.ClassFormatError: Unrecognized constant tag value <15>
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>loci.maven.plugins:cppwrap-maven-plugin:1.1.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/John/.m2/repository/loci/maven/plugins/cppwrap-
maven-plugin/1.1.1/cppwrap-maven-plugin-1.1.1.jar
[ERROR] urls[1] = file:/C:/Users/John/.m2/repository/loci/jar2lib/1.1.1/jar2lib-
1.1.1.jar
[ERROR] urls[2] = file:/C:/Users/John/.m2/repository/jace/jace/r39/jace-r39.jar
[ERROR] urls[3] = file:/C:/Users/John/.m2/repository/asm/asm/3.1/asm-3.1.jar
[ERROR] urls[4] = file:/C:/Users/John/.m2/repository/asm/asm-tree/3.1/asm-tree-3
.1.jar
[ERROR] urls[5] = file:/C:/Users/John/.m2/repository/org/slf4j/slf4j-api/1.5.5/s
lf4j-api-1.5.5.jar
[ERROR] urls[6] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-clas
sic/0.9.11/logback-classic-0.9.11.jar
[ERROR] urls[7] = file:/C:/Users/John/.m2/repository/ch/qos/logback/logback-core
/0.9.11/logback-core-0.9.11.jar
[ERROR] urls[8] = file:/C:/Users/John/.m2/repository/net/sourceforge/retroweaver
/retroweaver-rt/2.0.7/retroweaver-rt-2.0.7.jar
[ERROR] urls[9] = file:/C:/Users/John/.m2/repository/backport-util-concurrent/ba
ckport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[10] = file:/C:/Users/John/.m2/repository/org/apache/velocity/veloci
ty/1.6.4/velocity-1.6.4.jar
[ERROR] urls[11] = file:/C:/Users/John/.m2/repository/commons-collections/common
s-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[12] = file:/C:/Users/John/.m2/repository/commons-lang/commons-lang/
2.4/commons-lang-2.4.jar
[ERROR] urls[13] = file:/C:/Users/John/.m2/repository/oro/oro/2.0.8/oro-2.0.8.ja
r
[ERROR] urls[14] = file:/C:/Users/John/.m2/repository/org/codehaus/plexus/plexus
-utils/1.5.1/plexus-utils-1.5.1.jar
[ERROR] urls[15] = file:/C:/Users/John/.m2/repository/junit/junit/3.8.1/junit-3.
8.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>ome:formats-bsd:5.0.
7, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[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/disp ... inContaine
rException
I've checked at https://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException, and my loci/cppwrap-maven-plugin seems to be in this directory: .m2\repository\loci\maven\plugins\cppwrap-maven-plugin\1.1.1
however, even copying the .pom and .jar files to
.m2\repository\com\loci\maven\plugins\cppwrap-maven-plugin\1.1.1
doesn't make a difference.
I've even tried the instructions at http://www.itk.org/Wiki/ITK_Release_4/Microscopy/File_Formats/Bio-Formats#Build_Bio-Formats_and_Its_C.2B.2B_Bindings, but the directory components/native/bf-cpp doesn't exist.
Bioformats would be a huge help to my company's project, and it'd be great if I could build this for Windows. Could anyone offer some advice?