[Scilab-Dev] java compile errors when building metanet

Dean S. Messing deanm at sharplabs.com
Sat Oct 30 01:21:11 CEST 2010


On Fri, 29 Oct 2010 21:55:03 +0200, Calixte Denizet wrote:
> Le vendredi 29 octobre 2010 à 12:34 -0700, Dean S. Messing a écrit :
> > I've been reading about the missing Help pages in the metanet ATOMS
> > module (see bug report below) so I tried to build my own from
> > metanet-master which contains the help/ directory, and which I got from
> > the link Calixte provides in Comment #2 of this bug report:
> > http://bugzilla.scilab.org/show_bug.cgi?id=8233
> 
> The source tree of metanet is here:
> http://forge.scilab.org/index.php/p/metanet/source/tree/master/
> 
> you can git clone it.

Thanks.  This turns out to get exactly what I got from the
link in the bug report (except for ".git" :-)

=>diff -r --brief metanet-master/ metanet/
Only in metanet/: .git


> > After doing `exec builder.sce', all goes well til the java stuff starts
> > compiling.  Then I get a boatload java compile errors like this:
> > 
> >     [javac] /usr/local/src/Scilab/scilab-5.3.0/contrib/metanet/src/java/org/scilab/modules/metanet/actions/CircuitAction.java:37: package org.scilab.modules.types.scilabTypes does not exist
> >     [javac] import org.scilab.modules.types.scilabTypes.ScilabString;
> >     [javac]                                            ^
> > 
> 
> Two things:
> i) grep and find are now your best friends ! (and dev ML too)

Once I figured out that the "." in the name represented subdirs I used
"locate" to find the spot in the SCI tree.  But since I know nothing about
Java, the problem was still opaque to me.  Thanks for the hint!
(Indeed "grep" and "find" are indeed close friends of mine.)

> ii) org.scilab.modules refers to a package which is in the scilab tree,
> so go to the directory SCI/modules/types/src/java/org.... and you'll see
> that the dir scilabTypes is missing :/. The gitweb should help you:
> http://gitweb.scilab.org/?p=scilab.git;a=shortlog;h=refs/heads/5.3 
> 
> here you can see the history of the directory types:
> http://gitweb.scilab.org/?p=scilab.git;a=history;f=scilab/modules/types/src/java/org/scilab/modules/types;hb=refs/heads/5.3
> 
> and in looking at the 7th link you'll understand that Sylvestre moved
> the file ScilabString from scilabTypes to types !
> 
> So you can conclude that the sources of metanet were not updated.
> 
> > 
> > and this:
> > 
> > 
> >     [javac] /usr/local/src/Scilab/scilab-5.3.0/contrib/metanet/src/java/org/scilab/modules/metanet/io/GraphReader.java:44: cannot find symbol
> >     [javac] symbol  : class ScilabTList
> >     [javac] location: class org.scilab.modules.metanet.io.GraphReader
> >     [javac] 	public static HashMap<String, Object> convertTListToDiagram(ScilabTList data) {
> >     [javac] 	                                                            ^
> > 
> > 
> 
> I think this is the same problem than previous one ...

Ok. 

> > How do I proceed?
> > 
> 
> As explained... If I was not clear enough, don't hesitate to reply and
> I'll help you if I can.

I'll see if I can modify the sources to compile.  (Who will notify the
Serge, et al. that they need to mod their package to work with 5.3.0?)

But then what?  Having just started playing with the ATOMS stuff last
evening, I'm not sure where to put the result of my build so that ATOMS
can see the local module and install it.  I know about

   atomsSetConfig('offLine', 'True');

but then how do I get the ATOMS GUI to work?  Or should I just
use the commandline calls to atoms?

Do I do something like:

atomsRepositoryAdd('file://<path to the directory containing metanet>'); ?

Anyway, thanks for all your help.  I really appreciate you and Sylvestre
(and others) taking the time to steer semi-novices like me. (Novice to
scilab-5, not to Linux and package building).

Dean





More information about the dev mailing list