dzambon / graph-matching-toolkit

22 stars 15 forks source link

Ant build failing with missing files #2

Open cgoliver opened 5 years ago

cgoliver commented 5 years ago

Hello,

I noticed there is an ant build file in the repo so I'm trying to build using it and I'm getting some compile errors that seem to indicate missing dependencies which I wasn't able to find in the repo with a simple grep. Wondering if you have any tips on how to address this:

$ ant
Buildfile: /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/build.xml

build-subprojects:

init:

build-project:
     [echo] graph-matching-toolkit: /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/build.xml
    [javac] Compiling 56 source files to /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/bin
    [javac] /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/src/util/CentralityInterface.java:4: error: package edu.uci.ics.jung.graph does not exist
    [javac] import edu.uci.ics.jung.graph.SparseMultigraph;
    [javac]                              ^
    [javac] /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/src/util/CentralityInterface.java:5: error: package edu.uci.ics.jung.graph.util does not exist
    [javac] import edu.uci.ics.jung.graph.util.EdgeType;
    [javac]                                   ^
    [javac] /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/src/util/CentralityInterface.java:6: error: package edu.uci.ics.jung.algorithms.scoring does not exist
    [javac] import edu.uci.ics.jung.algorithms.scoring.*;
    [javac] ^
    [javac] /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/src/util/CentralityInterface.java:7: error: package edu.uci.ics.jung.algorithms.shortestpath does not exist
    [javac] import edu.uci.ics.jung.algorithms.shortestpath.*;
    [javac] ^
    [javac] /home/mcb/cgonza11/SimGNN/src/graph-matching-toolkit/src/util/CentralityInterface.java:26: error: cannot find symbol
    [javac]         EdgeType edgeType = graph.isDirected() ? EdgeType.DIRECTED : EdgeType.UNDIRECTED;
    [javac]         ^

Thanks!

sandervh14 commented 5 years ago

Hi @cgoliver, I had the same problem yesterday and found that the missing dependencies (the jung library) can be downloaded from https://sourceforge.net/projects/jung/ (jung2-2_0_1.zip).

Then, the code can be compiled with

cd src/graph-matching-toolkit
javac -d 'bin' -classpath 'jung2-2_0_1/*' src/*/*.java

or using the IDE of your choice (and manually adding the path of the jung libary (like above) to the project dependencies before compiling).

tiankonghenlan20113046 commented 4 years ago

I am trying to run your code ,but it reprots some error ,could you offer some tips for me ?

tiankonghenlan20113046 commented 4 years ago

image it shows the error above seen in the pic