This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Building on MacOS X and arrays from slib
- From: "Frederick Ross" <madhadron at gmail dot com>
- To: kawa at sources dot redhat dot com
- Date: Fri, 12 Jan 2007 15:12:07 +0100
- Subject: Building on MacOS X and arrays from slib
I'm using Kawa to run ImageJ kind of like a puppet master, but I've
run into a couple of problems.
I'd really like to have the SLIB array functions. The policy on slib
at the moment appears to be "throw it in, see if it works." I tried
to follow this, but cannot get Kawa to compile on my machine. In
particular it fails with (from ./configure; make path):
CLASSPATH=../..:./../..:$CLASSPATH javac -d ../.. -g
AbstractFormat.java AbstractSequence.java Array.java
AttributePredicate.java BitVector.java CharBuffer.java CharSeq.java
Consumer.java ConsumerWriter.java Consumable.java Convert.java
ElementPredicate.java EofClass.java ExtPosition.java ExtSequence.java
F32Vector.java F64Vector.java FilterConsumer.java FString.java
FVector.java GapVector.java GeneralArray.java GeneralArray1.java
ItemPredicate.java LList.java LListPosition.java NodePredicate.java
Pair.java PairWithPosition.java PositionConsumer.java
PositionManager.java PrintConsumer.java S8Vector.java S16Vector.java
S32Vector.java S64Vector.java SeqPosition.java Sequence.java
SimpleVector.java SubCharSeq.java SubSequence.java StableVector.java
Strings.java TreeList.java TreePosition.java U8Vector.java
U16Vector.java U32Vector.java U64Vector.java UnescapedData.java
VoidConsumer.java XConsumer.java
../../gnu/mapping/OutPort.java:10: gnu.mapping.OutPort is not abstract
and does not override abstract method print(java.io.PrintWriter) in
gnu.mapping.Printablepublic class OutPort extends PrintConsumer
implements Printable
^
../../gnu/mapping/InPort.java:6: gnu.mapping.InPort is not abstract
and does not override abstract method print(java.io.PrintWriter) in
gnu.mapping.Printable
public class InPort extends gnu.text.LineBufferedReader implements Printable
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
make[1]: *** [java-classes.stamp] Error 1
make: *** [all-recursive] Error 1
On the other hand, if I use ant, I get:
[javac] Compiling 396 source files to /Users/fross/Public/kawa-1.8.95
[javac] /Users/fross/Public/kawa-1.8.95/kawa/lang/EqualPat.java:11:
reference to Printable is ambiguous, both class gnu.text.Printable in
gnu.text and class gnu.mapping.Printable in gnu.mapping match
[javac] public class EqualPat extends Pattern implements
Printable, Externalizable
[javac] ^
[javac] /Users/fross/Public/kawa-1.8.95/kawa/lang/SyntaxRules.java:8:
reference to Printable is ambiguous, both class gnu.text.Printable in
gnu.text and class gnu.mapping.Printable in gnu.mapping match
[javac] public class SyntaxRules extends Procedure1 implements
Printable, Externalizable
[javac] ^
[javac] /Users/fross/Public/kawa-1.8.95/gnu/mapping/InPort.java:6:
gnu.mapping.InPort is not abstract and does not override abstract
method print(java.io.PrintWriter) in gnu.mapping.Printable
[javac] public class InPort extends gnu.text.LineBufferedReader
implements Printable
[javac] ^
[javac] /Users/fross/Public/kawa-1.8.95/gnu/mapping/OutPort.java:10:
gnu.mapping.OutPort is not abstract and does not override abstract
method print(java.io.PrintWriter) in gnu.mapping.Printable
[javac] public class OutPort extends PrintConsumer implements Printable
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 errors
The Java environment is otherwise functional (I've been writing a fair
amount of it lately). It's the JDK5 that comes with MacOS 10.4.8.
Now what I'd really like is to be able to put a reshaped array form on
top of a native one dimensional array of doubles, but at a guess
that's deep black magic.
--
Frederick Ross
Graduate Fellow, (|Siggia> + |McKinney>)/sqrt(2) Lab
The Rockefeller University
Je ne suis pas Fred Cross!