TheBlindCow

FreeSoftware to the fullest!

C/C++ dependencies

So I decided that I wasn’t busy enough and I began to work with a little geeky project. I already don’t have a name for it (if someone has an idea please tell me!) but its goal is to graphically represent the recursive dependencies of every file in your C/C++ project.

I used the gnu c preprocessor to parse the files and Java to write it. Yes! Java to write a C-related project, it is a bit bizarre but it has its explaination. I used a module to represent these graphs that I made last quarter for the university and I didn’t want to write anything else.
Just to know, anybody knows a free nice and cool widget for Java or C++ that lets me represent graphs?

Anyway, you can find this project here, I’m planning to ask for a liitle room on sourceforge but I don’t know if I’ll keep on it so I haven’t asked for it yet. Some screenshots here.

11 Comments

  1. would something from graphviz work for you?

  2. maybe you would like to have a look at processing.org to make this kind of visuals with Java. have a look at the Exhibition in their site.

    bona sort!

  3. As for a name, what about “DependenC” 🙂

  4. apol

    8 May 2007 at 3:21 am

    Hola Ricard! 🙂

    I’ve been looking at processing.org, looks like a very nice library for drawing and so… Very artist-oriented, isn’t it? When I said representing graphs I meant something like graphviz or jgraph.

    Hi John, I looked at graphviz and I didn’t like it very much. I’ve planned .dot support anyway so this program will be graphviz-compatible.

  5. see http://gravisto.fim.uni-passau.de
    It’s not exactly a widget, but a standalone graph drawing tool. It uses different algorithms to draw complex graphs. No idea which formats you can use to feed in the graphs. You need to check the thing out of the svn repository (look at the HOWTOs section for the source).

  6. Thomas Zander

    8 May 2007 at 8:51 am

    Hiya;

    I suggest you hop on #classpath on IRC (freenode) where there are lots of very smart people that will be able to point you to the right place for such a widget.

  7. Hello,

    what about qanava as a nice Qt4-based graph widget? (http://freshmeat.net/projects/qanava/)

  8. Any plans to integrate it in KDevelop ?
    It would be a very nice plug-in.
    And you could benefit from the kdevelop/kde framework.

  9. John Lakos’ adep,cdep,ldep tools are available. I also have a module to generate .dot files from their output. If you can’t find these tools, but are interested, let me know and I’ll mail you a tarball.

  10. Alastair Mailer

    8 May 2007 at 3:39 pm

    Hey; JUNG might do you, though it is a little overkill; http://jung.sourceforge.net/

  11. Doxygen already has this feature. It shows a graph over what headers that have been included directly or indirectly. Check out the INCLUDED_BY_GRAPH setting.

Comments are closed.

© 2017 TheBlindCow

Theme by Anders NorenUp ↑