Re: Imagej group maintenance?
- To: Andreas Tille <tillea@rki.de>
- Cc: Debian Med Project List <debian-med@lists.debian.org>
- Subject: Re: Imagej group maintenance?
- From: Paolo Ariano <paolo.ariano@unito.it>
- Date: Wed, 28 May 2008 16:07:37 +0200
- Message-id: <1211983657.11501.20.camel@GiBo>
- Reply-to: paolo.ariano@unito.it
- In-reply-to: <alpine.DEB.1.10.0805281435490.26412@wr-linux02>
- References: <alpine.DEB.1.10.0805131431040.11523@wr-linux02> <1849.130.192.143.38.1210854822.squirrel@mail.unito.it> <alpine.DEB.1.10.0805151447390.9801@wr-linux02> <1993.130.192.143.31.1210857433.squirrel@mail.unito.it> <alpine.DEB.1.10.0805151601460.9801@wr-linux02> <2089.130.192.143.33.1210865041.squirrel@mail.unito.it> <alpine.DEB.1.10.0805151731290.9801@wr-linux02> <2235.130.192.143.33.1210866272.squirrel@mail.unito.it> <alpine.DEB.1.10.0805152032580.6802@wr-linux02> <1210923659.3944.5.camel@GiBo> <alpine.DEB.1.10.0805161023220.25982@wr-linux02> <1210926205.7894.4.camel@GiBo> <alpine.DEB.1.10.0805281435490.26412@wr-linux02>
Il giorno mer, 28/05/2008 alle 14.39 +0200, Andreas Tille ha scritto:
> Well, I think I the bugs are quite easy to handle if you have some experience
> with gcj because I can not imagine that gcj has no method to handle JPEG images
> which causes 5 of 6 errors and I somehow smell out of general experience that
> the first problem is not that hard to fix.
Dear Andreas,
in this period i'm little busy preparing a lot of lessons (ocular
phisiology) :( so i'm not able to manage imagej new features/bugs but i
wrote to the only person who tried to compile image with gcj and the
answer i've received is pasted at the end.
hope this help
till next
paolo
************************************************************************
Warning: it's not worth it.
Warning 2: the following notes are from June 2006, with gcj6, and ij137
Here are my notes to help you get started. Good luck.
- remove any ocurrrence of the string ';;' (since gcj chokes) in source
code
- fix text encoding oddities where gcj chokes (may have changed with
latest ij.jar src)
- disable JPEG support at ij/plugin/JpegWriter.java, involving
JPEGImageEncoder class, or delete the ij/plugin/JpegWriter.java file.
- disable Tools.jar calls:
delete ij/plugin/Compiler.java
remove from IJ_props.txt:
#plug-in05="Edit...",ij.plugin.Compiler("edit")
#plug-in06="Compile and Run...",ij.plugin.Compiler
- install awt library
$ sudo apt-get install libgcj6-aw
Once you have the above, then:
$ mkdir build
$ rm -v ij.jar
$ rm -vrf build/*
$ /usr/bin/gcj-wrapper-4.0 -g -d build ij/*java ij/gui/*java
ij/io/*java
ij/macro/*java ij/measure/*java ij/plugin/*java ij/plugin/filter/*java
ij/plugin/frame/*java ij/process/*java ij/text/*java ij/util/*java
$ /usr/lib/jvm/java-gcj/bin/jar cvfm ij.jar MANIFEST.MF -C build/ ij
$ /usr/lib/jvm/java-gcj/bin/java -jar ij.jar
Debugging with gdb:
Create a .gdbinit in the home or in the working dir, containing (used
by
the garbage
collector):
handle SIGPWR nostop noprint
handle SIGXCPU nostop noprint
Needed debugging symbols for gdb in ddd:
$ sudo apt-get install libgcj6-dbg libgcj6-dev libgcj6-src
Compiling to object code:
$ gcj -shared -findirect-dispatch -Wl,-Bsymbolic -fjni -o ij.jar.so
ij.jar
(creates ij.jar.so)
$ gcj-dbtool -a ij.db ij.jar ij.jar.so
(creates ij and ij.db)
$ ./ij -consolelog -debug -vm gij vmargs
-Dgnu.gcj.precompiled.db.path=ij.db
--
Neuroscience PhD
Post-doc @ University of Torino
www.personalweb.unito.it/paolo.ariano
www.cellular-neurophysiology.unito.it
www.mieleria.it
Reply to: