[ImageJ-devel] Imagej-launcher build woes

Curtis Rueden ctrueden at wisc.edu
Wed Mar 11 15:18:54 CDT 2015


Hi Gerold,

The launcher is the most complex component of ImageJ to build, because it
has native code and must be built on several platforms. We use the NAR
Maven plugin to do it.

>From your build log, it seems the build actually worked from NetBeans --
which is believable, since NetBeans's Maven support basically just
delegates completely to Maven to do the build.

> I would appreciate any help to resolve this issue.

So I am not sure what "issue" you are having. You want to know where the
final executable ended up?

One option is to use the "build" shell script that comes with the launcher.
It is in the base directory of the imagej-launcher directory structure. It
builds the launcher, then copies it into the base directory as both
"ImageJ" and "debug".

Regards,
Curtis


On Thu, Mar 5, 2015 at 5:24 PM, geroldr at bluewin.ch <geroldr at bluewin.ch>
wrote:

> Hello Curtis,
>
> I am a beginner with ImageJ and Netbeans, but am giving it a go...
>
> I just tried to download and build using Netbeans 8.02 with no changes
> except to the file:
> /imagej-launcher/src/main/c/ImageJ.c
>
> where I commented out the garbage collector options.
>
> The build gives me the following results:
>
> cd /home/foxel/NetBeansProjects/imagej-launcher;
> JAVA_HOME=/usr/lib/jvm/zulu-8-amd64
> /home/foxel/netbeans-8.0.2/java/maven/bin/mvn install
> Scanning for projects...
>
> ------------------------------------------------------------------------
> Building ImageJ Launcher 3.3.1-SNAPSHOT
> ------------------------------------------------------------------------
>
> --- nar-maven-plugin:3.2.0:nar-validate (default-nar-validate) @
> imagej-launcher ---
> Using AOL: amd64-Linux-gcc
>
> --- maven-enforcer-plugin:1.3.1:enforce (enforce-rules) @ imagej-launcher
> ---
> Adding ignorable dependency: null:jcodings:null
>   Adding ignore: org/jcodings/*
> Adding ignorable dependency: null:jnr-constants:null
>   Adding ignore: com/kenai/constantine/*
>   Adding ignore: jnr/constants/*
> Adding ignorable dependency: null:jnr-ffi:null
>   Adding ignore: jnr/ffi/*
> Adding ignorable dependency: null:VIB-lib:null
>   Adding ignore: javax/media/j3d/
> Adding ignorable dependency: null:j3d-core:null
>   Adding ignore: javax/media/j3d/
> Adding ignorable dependency: null:joda-time:null
>   Adding ignore: *
> Adding ignorable dependency: null:slf4j-log4j12:null
>   Adding ignore: org/slf4j/impl/*
> Adding ignorable dependency: batik:batik:null
>   Adding ignore: *
> Adding ignorable dependency: jama:jama:null
>   Adding ignore: Jama/*
> Adding ignorable dependency: com.sun:tools:null
>   Adding ignore: *
>
> --- buildnumber-maven-plugin:1.3:create (default) @ imagej-launcher ---
> Executing: /bin/sh -c cd /home/foxel/NetBeansProjects/imagej-launcher &&
> git rev-parse --verify HEAD
> Working directory: /home/foxel/NetBeansProjects/imagej-launcher
> Storing buildNumber: 3e061521a554e4786eebcb6397ee77bb69396703 at
> timestamp: 1425595836078
> Storing buildScmBranch: master
>
> --- nar-maven-plugin:3.2.0:nar-download (default-nar-download) @
> imagej-launcher ---
> Preparing Nar dependencies
> Unpacking 0 dependencies to
> /home/foxel/NetBeansProjects/imagej-launcher/target/nar
>
> --- nar-maven-plugin:3.2.0:nar-unpack (default-nar-unpack) @
> imagej-launcher ---
> Unpacking 0 dependencies to
> /home/foxel/NetBeansProjects/imagej-launcher/target/nar
>
> --- nar-maven-plugin:3.2.0:nar-gnu-configure (default-nar-gnu-configure) @
> imagej-launcher ---
>
> --- nar-maven-plugin:3.2.0:nar-system-generate
> (default-nar-system-generate) @ imagej-launcher ---
>
> --- maven-resources-plugin:2.6:resources (default-resources) @
> imagej-launcher ---
> Using 'UTF-8' encoding to copy filtered resources.
> skip non existing resourceDirectory
> /home/foxel/NetBeansProjects/imagej-launcher/src/main/resources
>
> --- nar-maven-plugin:3.2.0:nar-resources (default-nar-resources) @
> imagej-launcher ---
> Copied 0 resources
>
> --- nar-maven-plugin:3.2.0:nar-gnu-resources (default-nar-gnu-resources) @
> imagej-launcher ---
>
> --- nar-maven-plugin:3.2.0:nar-vcproj (default-nar-vcproj) @
> imagej-launcher ---
>
> --- maven-compiler-plugin:3.1:compile (default-compile) @ imagej-launcher
> ---
> Nothing to compile - all classes are up to date
>
> --- nar-maven-plugin:3.2.0:nar-javah (default-nar-javah) @ imagej-launcher
> ---
>
> --- nar-maven-plugin:3.2.0:nar-gnu-make (default-nar-gnu-make) @
> imagej-launcher ---
>
> --- nar-maven-plugin:3.2.0:nar-compile (default-nar-compile) @
> imagej-launcher ---
> Preparing Nar dependencies
> Unpacking 0 dependencies to
> /home/foxel/NetBeansProjects/imagej-launcher/target/nar
> Compiling 10 native files
> Starting dependency analysis for 10 files.
> Starting dependency analysis for 10 files.
> 10 files are up to date.
> 10 files are up to date.
> 0 files to be recompiled from dependency analysis.
> 0 files to be recompiled from dependency analysis.
> 0 total files to be compiled.
> 0 total files to be compiled.
>
> --- nar-maven-plugin:3.2.0:nar-gnu-process (default-nar-gnu-process) @
> imagej-launcher ---
>
> --- nar-maven-plugin:3.2.0:nar-process-libraries
> (default-nar-process-libraries) @ imagej-launcher ---
> [info] Running process libraries
> [info] Processing library Library: type: executable
>
> --- nar-maven-plugin:3.2.0:nar-prepare-package
> (default-nar-prepare-package-1) @ imagej-launcher ---
>
> --- maven-resources-plugin:2.6:testResources (default-testResources) @
> imagej-launcher ---
> Using 'UTF-8' encoding to copy filtered resources.
> skip non existing resourceDirectory
> /home/foxel/NetBeansProjects/imagej-launcher/src/test/resources
>
> --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
> imagej-launcher ---
> Nothing to compile - all classes are up to date
>
> --- nar-maven-plugin:3.2.0:nar-testCompile (default-nar-testCompile) @
> imagej-launcher ---
> Preparing Nar dependencies
> Unpacking 0 dependencies to
> /home/foxel/NetBeansProjects/imagej-launcher/target/test-nar
> Unpacking 0 dependencies to
> /home/foxel/NetBeansProjects/imagej-launcher/target/test-nar
>
> --- maven-surefire-plugin:2.17:test (default-test) @ imagej-launcher ---
> Tests are skipped.
>
> --- nar-maven-plugin:3.2.0:nar-test (default-nar-test) @ imagej-launcher
> ---
> Preparing Nar dependencies
> Unpacking 0 dependencies to
> /home/foxel/NetBeansProjects/imagej-launcher/target/test-nar
>
> --- exec-maven-plugin:1.3.1:java (default) @ imagej-launcher ---
> Warning: killAfter is now deprecated. Do you need it ? Please comment on
> MEXEC-6.
> Cannot find
> '/home/foxel/NetBeansProjects/imagej-launcher/target/nar/imagej-launcher-3.3.1-SNAPSHOT-amd64-Linux-gcc-executable/bin/amd64-Linux-gcc/imagej-launcher.exe';
> not changing icon
>
> --- nar-maven-plugin:3.2.0:nar-prepare-package
> (default-nar-prepare-package) @ imagej-launcher ---
>
> --- nar-maven-plugin:3.2.0:nar-package (default-nar-package) @
> imagej-launcher ---
> Building zip:
> /home/foxel/NetBeansProjects/imagej-launcher/target/imagej-launcher-3.3.1-SNAPSHOT-noarch.nar
> Building zip:
> /home/foxel/NetBeansProjects/imagej-launcher/target/imagej-launcher-3.3.1-SNAPSHOT-amd64-Linux-gcc-executable.nar
>
> --- maven-jar-plugin:2.5:jar (default-jar) @ imagej-launcher ---
> Building jar:
> /home/foxel/NetBeansProjects/imagej-launcher/target/imagej-launcher-3.3.1-SNAPSHOT.jar
>
> --- maven-source-plugin:2.3:jar-no-fork (default) @ imagej-launcher ---
>
> --- maven-jar-plugin:2.5:test-jar (default) @ imagej-launcher ---
> Building jar:
> /home/foxel/NetBeansProjects/imagej-launcher/target/imagej-launcher-3.3.1-SNAPSHOT-tests.jar
>
> --- nar-maven-plugin:3.2.0:nar-integration-test
> (default-nar-integration-test) @ imagej-launcher ---
> Preparing Nar dependencies
> Unpacking 0 dependencies to
> /home/foxel/NetBeansProjects/imagej-launcher/target/test-nar
> Surefire report directory:
> /home/foxel/NetBeansProjects/imagej-launcher/target/surefire-reports
>
> --- maven-install-plugin:2.5.1:install (default-install) @ imagej-launcher
> ---
> Installing
> /home/foxel/NetBeansProjects/imagej-launcher/target/imagej-launcher-3.3.1-SNAPSHOT.jar
> to
> /home/foxel/.m2/repository/net/imagej/imagej-launcher/3.3.1-SNAPSHOT/imagej-launcher-3.3.1-SNAPSHOT.nar
> Installing /home/foxel/NetBeansProjects/imagej-launcher/pom.xml to
> /home/foxel/.m2/repository/net/imagej/imagej-launcher/3.3.1-SNAPSHOT/imagej-launcher-3.3.1-SNAPSHOT.pom
> Installing
> /home/foxel/NetBeansProjects/imagej-launcher/target/imagej-launcher-3.3.1-SNAPSHOT-noarch.nar
> to
> /home/foxel/.m2/repository/net/imagej/imagej-launcher/3.3.1-SNAPSHOT/imagej-launcher-3.3.1-SNAPSHOT-noarch.nar
> Installing
> /home/foxel/NetBeansProjects/imagej-launcher/target/imagej-launcher-3.3.1-SNAPSHOT-amd64-Linux-gcc-executable.nar
> to
> /home/foxel/.m2/repository/net/imagej/imagej-launcher/3.3.1-SNAPSHOT/imagej-launcher-3.3.1-SNAPSHOT-amd64-Linux-gcc-executable.nar
> Installing
> /home/foxel/NetBeansProjects/imagej-launcher/target/imagej-launcher-3.3.1-SNAPSHOT-sources.jar
> to
> /home/foxel/.m2/repository/net/imagej/imagej-launcher/3.3.1-SNAPSHOT/imagej-launcher-3.3.1-SNAPSHOT-sources.jar
> Installing
> /home/foxel/NetBeansProjects/imagej-launcher/target/imagej-launcher-3.3.1-SNAPSHOT-tests.jar
> to
> /home/foxel/.m2/repository/net/imagej/imagej-launcher/3.3.1-SNAPSHOT/imagej-launcher-3.3.1-SNAPSHOT-tests.jar
>
> --- imagej-maven-plugin:0.5.4:copy-jars (copy-jars) @ imagej-launcher ---
> ------------------------------------------------------------------------
> BUILD SUCCESS
> ------------------------------------------------------------------------
> Total time: 4.494s
> Finished at: Thu Mar 05 23:50:38 CET 2015
> Final Memory: 23M/538M
>
>
> I would appreciate any help to resolve this issue.
>
> Thanks again for your contributions to an impressive project.
>
> Best wishes,
>
> Gerold
>
> --
> Gerold Rupprecht
> 10, rue Louis-Curval
> CH-1206 Genève, Suisse
>
> Mobile: +41 79 914 29 52
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20150311/c41ea38b/attachment.html>


More information about the ImageJ-devel mailing list