fokipacks.blogg.se

Doxygen graphviz
Doxygen graphviz






  1. #Doxygen graphviz portable#
  2. #Doxygen graphviz windows#

Warning: the dot tool could not be found at C:/Program\ Files\ (x86)/Graphviz/binĭoxygen version used: 1.9. Build files have been written to: C:/Users/myUser/tmp/foo/build Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe - skipped Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - skipped The CXX compiler identification is GNU 10.2.0 The C compiler identification is GNU 10.2.0 These would be very valuable if they were up-to-date. Trying to build the doc target $ cmake -G"MSYS Makefiles". Graphviz Doxygen docs Dev magjac September 26, 2021, 5:16pm 1 I found these old docs by accident: Graphviz: Main Page. The output of make doc shows the 2 problems described above - the error is for #1, the warning for #2.ĬMakeLists.txt cmake_minimum_required(VERSION 3.19)įind_package(Doxygen OPTIONAL_COMPONENTS dot) Very basic example: Just a CMakeLists.txt to generate Makefiles and invoke Doxygen. Is this anyways the expected behavior, esp. This doesn't feel like a good solution.ĭo I miss something here about path handling in CMake, e.g.

doxygen graphviz

#Doxygen graphviz portable#

I suppose Doxygen considers these backslashes which are meant to escape the spaces as path separators.įor the first problem I have a (hopefully) portable workaround, but the second I can only fix if I manually repeat the retrieval of DOXYGEN_DOT_PATH from the Find module without the conversion step. If I remove the backslashes there, it works. Trying this manually I could see that it sets that path to "C:/Program Files (x86)/Graphviz/bin" and converts it to "C:/Program\ Files\ (x86)/Graphviz/bin". Then, in the FindDoxygen.cmake DOXYGEN_DOT_PATH is set as the path portion of the dot executable and is modified by file(TO_NATIVE_PATH.

#Doxygen graphviz windows#

I have GraphViz installed as a native Windows package and generally the MSYS2 CMake finds this. It works if I convert the path to a Unix path with cygpath. I tried this by executing the generated target as well as calling Doxygen manually with the generated Doxyfile.doc. Doxygen seems to not recognize this as an absolute path and prepends it with its working directory in the Unix format ( /c/Users/.).

doxygen graphviz

The DOXYGEN_OUTPUT_DIRECTORY prepared by CMake is a Windows path with regular forward slashes. For some reason CMake and Doxygen seem to not handle paths in the expected way (see the example).Īt first, Doxygen complains that it cannot create the output directory. I'm in a MSYS2 environment on Windows 10. I'm trying to add a target to generate API doc with Doxygen to my CMake project by find_package(Doxygen.








Doxygen graphviz