Skip to main content

[JAI-IMAGEIO] compilation of imageio (cvs) failes

3 replies [Last post]
Anonymous

Hi all,

I am trying to compile jai-imageio-core from cvs, because I already had
the cvs version compiled and installed earlier; I just cvs up'ed, ant
cleaned and then tried to build. JAI-core is installed in my
jdk/jre/lib/ext and jdk/jre/lib/amd64 dir's.
I tried compilation and updating from cvs for several times now (for
about one month) and keep getting errors, so I assume something is wrong
here locally, and not in the cvs repo :)

These are the errors I get:

compilation:
[mkdir] Created dir:
/usr/local/src/java/jai-imageio-core/build/linux-amd64/debug/classes
[copy] Copying 3 files to
/usr/local/src/java/jai-imageio-core/build/linux-amd64/debug
[javac] Compiling 348 source files to
/usr/local/src/java/jai-imageio-core/build/linux-amd64/debug/classes
[javac]
/usr/local/src/java/jai-imageio-core/src/share/classes/com/sun/media/imageioimpl/plugins/clib/CLibImageWriter.java:228:
cannot find symbol
[javac] symbol : variable MLIB_FORMAT_BGRA
[javac] location: interface com.sun.medialib.codec.jiio.Constants
[javac] mlibFormat =
Constants.MLIB_FORMAT_BGRA;
[javac] ^
[javac]
/usr/local/src/java/jai-imageio-core/src/share/classes/com/sun/media/imageioimpl/plugins/jpeg/CLibJPEGImageReader.java:111:
cannot find symbol
[javac] symbol : method getEmbeddedICCProfile()
[javac] location: class com.sun.medialib.codec.jpeg.Decoder
[javac] iccProfileData = decoder.getEmbeddedICCProfile();
[javac] ^
[javac]
/usr/local/src/java/jai-imageio-core/src/share/classes/com/sun/media/imageioimpl/plugins/jpeg/CLibJPEGImageReader.java:145:
cannot find symbol
[javac] symbol : method dispose()
[javac] location: class com.sun.medialib.codec.jpeg.Decoder
[javac] decoder.dispose();
[javac] ^
[javac]
/usr/local/src/java/jai-imageio-core/src/share/classes/com/sun/media/imageioimpl/plugins/jpeg/CLibJPEGImageReader.java:205:
cannot find symbol
[javac] symbol : method getEmbeddedICCProfile()
[javac] location: class com.sun.medialib.codec.jpeg.Decoder
[javac] iccProfileData =
decoder.getEmbeddedICCProfile();
[javac] ^
[javac]
/usr/local/src/java/jai-imageio-core/src/share/classes/com/sun/media/imageioimpl/plugins/jpeg/CLibJPEGImageReader.java:232:
cannot find symbol
[javac] symbol : method dispose()
[javac] location: class com.sun.medialib.codec.jpeg.Decoder
[javac] decoder.dispose();
[javac] ^
[javac]
/usr/local/src/java/jai-imageio-core/src/share/classes/com/sun/media/imageioimpl/plugins/jpeg/CLibJPEGImageWriter.java:248:
cannot find symbol
[javac] symbol : method setType(int)
[javac] location: class com.sun.medialib.codec.jpeg.Encoder
[javac] encoder.setType(Encoder.JPEG_TYPE_GRAYSCALE);
[javac] ^
[javac]
/usr/local/src/java/jai-imageio-core/src/share/classes/com/sun/media/imageioimpl/plugins/jpeg/CLibJPEGImageWriter.java:259:
cannot find symbol
[javac] symbol : method setType(int)
[javac] location: class com.sun.medialib.codec.jpeg.Encoder
[javac] encoder.setType(Encoder.JPEG_TYPE_CMYK);
[javac] ^
[javac]
/usr/local/src/java/jai-imageio-core/src/share/classes/com/sun/media/imageioimpl/plugins/jpeg/CLibJPEGImageWriter.java:263:
cannot find symbol
[javac] symbol : method setType(int)
[javac] location: class com.sun.medialib.codec.jpeg.Encoder
[javac] encoder.setType(Encoder.JPEG_TYPE_YCCK);
[javac] ^
[javac]
/usr/local/src/java/jai-imageio-core/src/share/classes/com/sun/media/imageioimpl/plugins/png/CLibPNGImageWriter.java:159:
cannot find symbol
[javac] symbol : variable MLIB_FORMAT_BGRA
[javac] location: interface com.sun.medialib.codec.png.Constants
[javac] Constants.MLIB_FORMAT_BGRA,
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 9 errors

BUILD FAILED

Any hints? Looks like something is not found here, but what and why? And
how can I solve it?

Extra info: Gentoo linux amd64 system, sun 64bit jdk 1.5.0_06. JAI-core
built and installed from cvs.

Cheers,
Vincent Schut.

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
James Cheng

Hi Vincent,

> [javac]
> /usr/local/src/java/jai-imageio-core/src/share/classes/com/sun/media/imageioimpl/plugins/clib/CLibImageWriter.java:228:
> cannot find symbol
> [javac] symbol : variable MLIB_FORMAT_BGRA
> [javac] location: interface com.sun.medialib.codec.jiio.Constants
> [javac] mlibFormat =
> Constants.MLIB_FORMAT_BGRA;
> [...]
> Any hints? Looks like something is not found here, but what and why? And
> how can I solve it?

This looks like that you have an older version of clibwrapper_jiio.jar
in your environment. It could be in your jre/lib/ext or somewhere in
your CLASSPATH. The current version is under src/share/jclib4jai/.

HTH,
-James

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net

Vincent Schut

James Cheng wrote:
> Hi Vincent,
>
>> [javac]
>> /usr/local/src/java/jai-imageio-core/src/share/classes/com/sun/media/imageioimpl/plugins/clib/CLibImageWriter.java:228:
>>
>> cannot find symbol
>> [javac] symbol : variable MLIB_FORMAT_BGRA
>> [javac] location: interface com.sun.medialib.codec.jiio.Constants
>> [javac] mlibFormat =
>> Constants.MLIB_FORMAT_BGRA;
>> [...]
>> Any hints? Looks like something is not found here, but what and why? And
>> how can I solve it?
>
> This looks like that you have an older version of clibwrapper_jiio.jar
> in your environment. It could be in your jre/lib/ext or somewhere in
> your CLASSPATH. The current version is under src/share/jclib4jai/.
>
> HTH,
> -James
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>
Right, that was it. Thanks.

Next question: so if I install JAI and JAI-IIO in my jdk/jre/lib/ext
path (so it is always available to my jdk/jre), then I have to remove
those files before doing a fresh build, because otherwise the 'old'
version will conflict with the build process? Then probably because I
like to use bleeding edge cvs builds I will be better off using a
different install place and putting that in my classpath when necessary?

Vincent.

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net

James Cheng

> Next question: so if I install JAI and JAI-IIO in my jdk/jre/lib/ext
> path (so it is always available to my jdk/jre), then I have to remove
> those files before doing a fresh build, because otherwise the 'old'
> version will conflict with the build process? Then probably because I
> like to use bleeding edge cvs builds I will be better off using a
> different install place and putting that in my classpath when necessary?

Good questions. The follow change to jai-imageio-core/build.xml
seems to be able to fix the conflict:

*** 518,523 ****
--- 518,524 ----
destdir="${classdir}"
classpath="${clib}/clibwrapper_jiio.jar"
+ extdirs="${clib}${path.separator}${java.ext.dirs}"
debug="${debugsetting}"
deprecation="off"
source="1.4"

Thanks,
-James

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net