Hi *
does anyone try to compile imagej with OpenJDK ? i was trying and i obtain the errors i pasted here, there is something concerning JPEG formt that i don' understand thanks paolo compile: [mkdir] Created dir: /tmp/buildd/imagej-1.41l/build [javac] Compiling 258 source files to /tmp/buildd/imagej-1.41l/build [javac] /tmp/buildd/imagej-1.41l/ij/measure/CurveFitter.java:19: warning: unmappable character for encoding ASCII [javac] * 2008/01/21: Modified to do Gaussian fitting by Stefan W??rz (s.woerz at dkfz.de). [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/measure/CurveFitter.java:19: warning: unmappable character for encoding ASCII [javac] * 2008/01/21: Modified to do Gaussian fitting by Stefan W??rz (s.woerz at dkfz.de). [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/filter/AVI_Writer.java:54: warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API and may be removed in a future release [javac] private JPEGImageEncoder jpegEncoder; [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/io/ImageReader.java:418: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release [javac] BufferedImage bi = JPEGCodec.createJPEGDecoder(in).decodeAsBufferedImage(); [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/AVI_Reader.java:732: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release [javac] bi = JPEGCodec.createJPEGDecoder(inputStream).decodeAsBufferedImage(); [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:41: warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API and may be removed in a future release [javac] JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(f); [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:41: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release [javac] JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(f); [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:42: warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API and may be removed in a future release [javac] JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi); [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:45: cannot find symbol [javac] symbol : method setHorizontalSubsampling(int,int) [javac] location: class com.sun.image.codec.jpeg.JPEGEncodeParam [javac] param.setHorizontalSubsampling(1, 1); [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:46: cannot find symbol [javac] symbol : method setHorizontalSubsampling(int,int) [javac] location: class com.sun.image.codec.jpeg.JPEGEncodeParam [javac] param.setHorizontalSubsampling(2, 1); [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:47: cannot find symbol [javac] symbol : method setVerticalSubsampling(int,int) [javac] location: class com.sun.image.codec.jpeg.JPEGEncodeParam [javac] param.setVerticalSubsampling(1, 1); [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:48: cannot find symbol [javac] symbol : method setVerticalSubsampling(int,int) [javac] location: class com.sun.image.codec.jpeg.JPEGEncodeParam [javac] param.setVerticalSubsampling(2, 1); [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:56: warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API and may be removed in a future release [javac] param.setDensityUnit(JPEGEncodeParam.DENSITY_UNIT_DOTS_INCH); [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:56: cannot find symbol [javac] symbol : variable DENSITY_UNIT_DOTS_INCH [javac] location: class com.sun.image.codec.jpeg.JPEGEncodeParam [javac] param.setDensityUnit(JPEGEncodeParam.DENSITY_UNIT_DOTS_INCH); [javac] ^ [javac] /tmp/buildd/imagej-1.41l/ij/plugin/filter/AVI_Writer.java:371: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release [javac] jpegEncoder = JPEGCodec.createJPEGEncoder(raOutputStream); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 5 errors [javac] 10 warnings BUILD FAILED -- NeuroScience PhD Post-doc @ University of Torino www.personalweb.unito.it/paolo.ariano www.cellular-neurophysiology.unito.it www.mieleria.it |
On Sep 23, 2008, at 10:16 AM, Paolo Ariano wrote:
> Hi * > does anyone try to compile imagej with OpenJDK ? > i was trying and i obtain the errors i pasted here, there is something > concerning JPEG formt that i don' understand Starting with v1.41n, ImageJ saves JPEGs using ImageIO if the ij.plugin.JpegWriter class is missing. Removing this class should allow you to compile ImageJ with OpenJDK. -wayne > > thanks > paolo > > compile: > [mkdir] Created dir: /tmp/buildd/imagej-1.41l/build > [javac] Compiling 258 source files > to /tmp/buildd/imagej-1.41l/build > [javac] /tmp/buildd/imagej-1.41l/ij/measure/CurveFitter.java:19: > warning: unmappable character for encoding ASCII > [javac] * 2008/01/21: Modified to do Gaussian fitting by Stefan > W??rz (s.woerz at dkfz.de). > [javac] > ^ > [javac] /tmp/buildd/imagej-1.41l/ij/measure/CurveFitter.java:19: > warning: unmappable character for encoding ASCII > [javac] * 2008/01/21: Modified to do Gaussian fitting by Stefan > W??rz (s.woerz at dkfz.de). > [javac] > ^ > > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/filter/AVI_Writer.java:54: > warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary > API and may be removed in a future release > [javac] private JPEGImageEncoder jpegEncoder; > [javac] ^ > [javac] /tmp/buildd/imagej-1.41l/ij/io/ImageReader.java:418: > warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and > may be removed in a future release > [javac] BufferedImage bi = > JPEGCodec.createJPEGDecoder(in).decodeAsBufferedImage(); > [javac] ^ > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/AVI_Reader.java:732: > warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and > may be removed in a future release > [javac] bi = > JPEGCodec.createJPEGDecoder(inputStream).decodeAsBufferedImage(); > [javac] ^ > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:41: > warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary > API and may be removed in a future release > [javac] JPEGImageEncoder encoder = > JPEGCodec.createJPEGEncoder(f); > [javac] ^ > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:41: > warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and > may be removed in a future release > [javac] JPEGImageEncoder encoder = > JPEGCodec.createJPEGEncoder(f); > [javac] ^ > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:42: > warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary > API > and may be removed in a future release > [javac] JPEGEncodeParam param = > encoder.getDefaultJPEGEncodeParam(bi); > [javac] ^ > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:45: > cannot find symbol > [javac] symbol : method setHorizontalSubsampling(int,int) > [javac] location: class com.sun.image.codec.jpeg.JPEGEncodeParam > [javac] > param.setHorizontalSubsampling(1, 1); > [javac] ^ > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:46: > cannot find symbol > [javac] symbol : method setHorizontalSubsampling(int,int) > [javac] location: class com.sun.image.codec.jpeg.JPEGEncodeParam > [javac] > param.setHorizontalSubsampling(2, 1); > [javac] ^ > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:47: > cannot find symbol > [javac] symbol : method setVerticalSubsampling(int,int) > [javac] location: class com.sun.image.codec.jpeg.JPEGEncodeParam > [javac] > param.setVerticalSubsampling(1, > 1); > [javac] ^ > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:48: > cannot find symbol > [javac] symbol : method setVerticalSubsampling(int,int) > [javac] location: class com.sun.image.codec.jpeg.JPEGEncodeParam > [javac] > param.setVerticalSubsampling(2, > 1); > [javac] ^ > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:56: > warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary > API > and may be removed in a future release > [javac] > param.setDensityUnit(JPEGEncodeParam.DENSITY_UNIT_DOTS_INCH); > [javac] ^ > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/JpegWriter.java:56: > cannot find symbol > [javac] symbol : variable DENSITY_UNIT_DOTS_INCH > [javac] location: class com.sun.image.codec.jpeg.JPEGEncodeParam > [javac] > param.setDensityUnit(JPEGEncodeParam.DENSITY_UNIT_DOTS_INCH); > [javac] > ^ > > [javac] /tmp/buildd/imagej-1.41l/ij/plugin/filter/AVI_Writer.java:371: > warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and > may be removed in a future release > [javac] jpegEncoder = > JPEGCodec.createJPEGEncoder(raOutputStream); > [javac] ^ > [javac] Note: Some input files use or override a deprecated API. > [javac] Note: Recompile with -Xlint:deprecation for details. > [javac] 5 errors > [javac] 10 warnings > > BUILD FAILED > -- > NeuroScience PhD > Post-doc @ University of Torino > www.personalweb.unito.it/paolo.ariano > www.cellular-neurophysiology.unito.it > www.mieleria.it > |
Il giorno mar, 23/09/2008 alle 13.02 -0400, Wayne Rasband ha scritto:
> Starting with v1.41n, ImageJ saves JPEGs using ImageIO if the > ij.plugin.JpegWriter class is missing. Removing this class should allow > you to compile ImageJ with OpenJDK. wayne thanks so much, in this way imagej will be in debian main distribution hth paolo -- NeuroScience PhD Post-doc @ University of Torino www.personalweb.unito.it/paolo.ariano www.cellular-neurophysiology.unito.it www.mieleria.it |
Free forum by Nabble | Edit this page |