Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make compile with both cgraph and graph library #47

Merged
merged 1 commit into from
Aug 9, 2013

Conversation

krf
Copy link
Contributor

@krf krf commented Aug 9, 2013

GraphViz offers two libraries to build up graph structures with:

  • graph (deprecated)
  • cgraph

Prior to this patch we were only supporting the 'graph' approach. This
patch makes it possible to compile both against 'graph' and 'cgraph'.

cgraph seems to be available for some time already, but it is not
stable for graphviz <2.30.x. For me, gammaray instantly crashes when
calling gvContext() in 2.29 (from Ubuntu repositories) when linked
against cgraph. Hence we only use cgraph in case we have >=2.30 and when
cgraph is actually available.

This should also fix the build issues under windows, where the package
provided by graphviz.org only provides the cgraph library.

GraphViz offers two libraries to build up graph structures with:
- graph (deprecated)
- cgraph

Prior to this patch we were only supporting the 'graph' approach. This
patch makes it possible to compile both against 'graph' and 'cgraph'.

cgraph seems to be available for some time already, but it is not
stable for graphviz <2.30.x. For me, gammaray instantly crashes when
calling gvContext() in 2.29 (from Ubuntu repositories) when linked
against cgraph. Hence we only use cgraph in case we have >=2.30 and when
cgraph is actually available.

This should also fix the build issues under windows, where the package
provided by graphviz.org only provides the cgraph library.
@vkrause
Copy link
Contributor

vkrause commented Aug 9, 2013

Looks good to me, thanks!

krf pushed a commit that referenced this pull request Aug 9, 2013
Make compile with both cgraph and graph library
@krf krf merged commit b5b89c9 into KDAB:master Aug 9, 2013
@krf krf deleted the statemachineviewer-cgraph-compat branch August 9, 2013 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants