mingw - Graphviz - Could not load gvplugin_pango.dll -


i'm attempting run graphviz library clion in windows. it's taken me quite while far , hope final hurdle. when run program see following warning , no graph

warning: not load "c:\program files (x86)\graphviz2.38\bin\gvplugin_pango.dll" - can't open module 

i'm running clion mingw 3.22 toolchain. cmakelists , main.c below. unfortunately i'm unable sign graphviz forums i'm hoping here might have suggestions. far i've tried -

  • installing , using mingw-64
  • installing older version of graphviz (2.28, current 2.38)
  • including gvplugin_pango library in cmakelists.txt
  • changing permissions graphviz folder allow full access everyone, tested dot -c , works fine
  • set gvbindir env variable explicitly point 2.38 installation
  • tried setting m32 in cmakelists.txt (not 100% did correctly)

cmakelists.txt

cmake_minimum_required(version 3.6) project(learning)  set(cmake_cxx_flags "${cmake_c_flags}") set(graphviz_include_dir "c:/program files (x86)/graphviz2.38/include/graphviz") set(graphviz_lib_dir "c:/program files (x86)/graphviz2.38/lib/release/lib")  set(source_files main.c) include_directories("${graphviz_include_dir}") add_executable(learning ${source_files})  find_library(cgraph_library cgraph hints "${graphviz_lib_dir}" required) find_library(gvc_library gvc hints "${graphviz_lib_dir}" required) target_link_libraries( learning ${cgraph_library} ${gvc_library} ) 

main.c

#include <stdio.h> #include <malloc.h> #include <string.h> #include <gvc.h> #include <cgraph.h>  int main() {     agraph_t *graph;     agnode_t *nodea, *nodeb;     agedge_t *edge1;     agsym_t *symbol1;     gvc_t *gvc;      gvc = gvcontext();     graph = agopen( "graph", agdirected, null);     nodea = agnode(graph, "nodea", 1);     nodeb = agnode(graph, "nodeb", 1);     edge1 = agedge(graph, nodea, nodeb, 0, 1);     printf("debug");      agsafeset(nodea, "color", "red", "");     gvlayout(gvc, graph, "dot");     gvrender(gvc, graph, "dot", null);     agclose(graph);     return ( gvfreecontext(gvc));     } 

the warning might caused missing runtime dependency, pango library. try installing appropriate pango or pangocairo package mingw setup see if resolves issue.

let me know if works!


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -