lgeorget / code_viewer

Graphviz graphs explorer, designed with call graphs in mind
MIT License
1 stars 0 forks source link

Which version of libgvc is used? #1

Closed zchrissirhcz closed 2 years ago

zchrissirhcz commented 2 years ago

Hi, lgeorget

I'm interested in this code_viewer project. Trying to compile it on ubuntu 20.04 and failed.

Wondering which version of libgvc (I guess this is the alias of graphviz library) is used.

lgeorget commented 2 years ago

Hi!

glad you're taking interest in this project. It's quite old and rusty, I made it and used it during my PhD but I've not looked at it again since then. The code is 7 year-old, so it was the version of Graphviz and Qt available back then. I would say Qt 4 and libgvc5 but I cannot be too sure. However, I'm not using obscure parts of either library so with some luck, the porting to more recent versions shouldn't be too difficult.

zchrissirhcz commented 2 years ago

Thank you for reply!

It's quite old and rusty,

Actually I picked graphviz 2.38.0, which I thought is the most possible version, based on the tags I get from graphviz's git repo.

I would say Qt 4 and libgvc5 ...

I think this would help me. I guess the name libgvc5 should be a ubuntu apt package name, and now I searched and guess it is this one: https://launchpad.net/ubuntu/+source/graphviz/2.26.3-10ubuntu1.2

However, I'm not using obscure parts of either library so with some luck, the porting to more recent versions shouldn't be too difficult.

OK, thus I won't be too difficult to adapt API callings if not compile smoothly.

Actually, I would like to have a GUI program that with left and right columns, and left part for code browsing/editing, right part for AST like browsing. Seem some node editors recently, such as for neural network architecture browsing/editing, and I'm just curious if there's something combining text-editors and node-editors together, the "code viewer".

lgeorget commented 2 years ago

I see, that's very interesting. This project is a bit basic for your needs, I think. It only enables the visualization of code graphs, not the edition. If you want to see what it looks like, I've presented a software suite called Kayrebt which includes this "code viewer" in a conference some years ago (as part of my PhD thesis): https://www.researchgate.net/publication/282863308_Kayrebt_An_Activity_Diagram_Extraction_and_Visualization_Toolset_Designed_for_the_Linux_Codebase. The rest of Kayrebt is also here on GitHub. I've also made a video (it's a bit long and you have to bear with my French accent: https://www.youtube.com/watch?v=Z94jgINyU3E).

zchrissirhcz commented 2 years ago

Thanks for the rich information !