Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Posted zhangrelay
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)相关的知识,希望对你有一定的参考价值。
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
使用cmake ..
有时候会遇到如下问题:
$ cmake ..
-- The CXX compiler identification is GNU 11.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- clang-tidy found: /usr/bin/clang-tidy
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Doxygen need to be installed to generate the doxygen documentation
-- Configuring done
-- Generating done
安装doxygen即可。
例如ubuntu:
sudo apt install doxygen
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
doxygen-latex doxygen-doc doxygen-gui
The following NEW packages will be installed:
doxygen
0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
Need to get 4,620 kB of archives.
After this operation, 17.9 MB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/ubuntu jammy/universe amd64 doxygen amd64 1.9.1-2ubuntu2 [4,620 kB]
Fetched 4,620 kB in 3s (1,691 kB/s)
Selecting previously unselected package doxygen.
(Reading database ... 175581 files and directories currently installed.)
Preparing to unpack .../doxygen_1.9.1-2ubuntu2_amd64.deb ...
Unpacking doxygen (1.9.1-2ubuntu2) ...
Setting up doxygen (1.9.1-2ubuntu2) ...
然后:
什么是doxygen?
从源代码生成文档
Doxygen 是从带注释的 C++ 源代码生成文档的事实上的标准工具,但它也支持其他流行的编程语言,例如 C、Objective-C、C#、php、Java、Python、IDL(Corba、Microsoft 和 UNO/OpenOffice 风格) )、Fortran,在某种程度上也支持D. Doxygen 也支持硬件描述语言VHDL。
Doxygen 可以通过三种方式实现:
它可以从一组文档源文件中生成在线文档浏览器(html)和/或离线参考手册($\\mbox\\LaTeX$)。还支持在 RTF (MS-Word)、PostScript、超链接 PDF、压缩 HTML 和 Unix 手册页中生成输出。文档直接从源代码中提取,这使得文档与源代码保持一致变得更加容易。
可以配置 doxygen 以从未记录的源文件中提取代码结构。这对于在大型源代码分发中快速找到您的方式非常有用。 Doxygen 还可以通过包括依赖图、继承图和协作图的方式将各种元素之间的关系可视化,这些都是自动生成的。
还可以使用 doxygen 创建普通文档(就像我为 doxygen 用户手册和网站所做的那样)。
Doxygen 是在 Mac OS X 和 Linux 下开发的,但设置为高度便携。因此,它也可以在大多数其他 Unix 风格上运行。此外,还有适用于 Windows 的可执行文件。
ftxui:
zhangrelay@LAPTOP-5REQ7K1L:~/cppcode/ftxui-starter-master/build$ make
[ 3%] Building CXX object _deps/ftxui-build/CMakeFiles/screen.dir/src/ftxui/screen/box.cpp.o
[ 3%] Building CXX object _deps/ftxui-build/CMakeFiles/screen.dir/src/ftxui/screen/color.cpp.o
[ 6%] Building CXX object _deps/ftxui-build/CMakeFiles/screen.dir/src/ftxui/screen/color_info.cpp.o
[ 6%] Building CXX object _deps/ftxui-build/CMakeFiles/screen.dir/src/ftxui/screen/screen.cpp.o
[ 9%] Building CXX object _deps/ftxui-build/CMakeFiles/screen.dir/src/ftxui/screen/string.cpp.o
[ 9%] Building CXX object _deps/ftxui-build/CMakeFiles/screen.dir/src/ftxui/screen/terminal.cpp.o
[ 12%] Linking CXX static library libftxui-screen.a
[ 12%] Built target screen
[ 15%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/automerge.cpp.o
[ 15%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/blink.cpp.o
[ 18%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/bold.cpp.o
[ 18%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/border.cpp.o
[ 21%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/box_helper.cpp.o
[ 21%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/canvas.cpp.o
[ 24%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/clear_under.cpp.o
[ 24%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/color.cpp.o
[ 27%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/composite_decorator.cpp.o
[ 27%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/dbox.cpp.o
[ 30%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/dim.cpp.o
[ 30%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/flex.cpp.o
[ 33%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/flexbox.cpp.o
[ 33%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/flexbox_config.cpp.o
[ 36%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/flexbox_helper.cpp.o
[ 36%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/focus.cpp.o
[ 39%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/frame.cpp.o
[ 39%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/gauge.cpp.o
[ 42%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/graph.cpp.o
[ 42%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/gridbox.cpp.o
[ 45%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/hbox.cpp.o
[ 45%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/inverted.cpp.o
[ 48%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/node.cpp.o
[ 48%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/node_decorator.cpp.o
[ 51%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/paragraph.cpp.o
[ 51%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/reflect.cpp.o
[ 54%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/scroll_indicator.cpp.o
[ 54%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/separator.cpp.o
[ 57%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/size.cpp.o
[ 57%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/spinner.cpp.o
[ 60%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/table.cpp.o
[ 60%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/text.cpp.o
[ 63%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/underlined.cpp.o
[ 63%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/util.cpp.o
[ 66%] Building CXX object _deps/ftxui-build/CMakeFiles/dom.dir/src/ftxui/dom/vbox.cpp.o
[ 66%] Linking CXX static library libftxui-dom.a
[ 66%] Built target dom
[ 66%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/animation.cpp.o
[ 66%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/button.cpp.o
[ 69%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/catch_event.cpp.o
[ 69%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/checkbox.cpp.o
[ 72%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/collapsible.cpp.o
[ 72%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/component.cpp.o
[ 75%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/component_options.cpp.o
[ 75%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/container.cpp.o
[ 78%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/dropdown.cpp.o
[ 78%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/event.cpp.o
[ 81%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/input.cpp.o
[ 81%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/maybe.cpp.o
[ 84%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/menu.cpp.o
[ 84%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/radiobox.cpp.o
[ 87%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/renderer.cpp.o
[ 87%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/resizable_split.cpp.o
[ 90%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/screen_interactive.cpp.o
[ 90%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/slider.cpp.o
[ 93%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/terminal_input_parser.cpp.o
[ 93%] Building CXX object _deps/ftxui-build/CMakeFiles/component.dir/src/ftxui/component/util.cpp.o
[ 96%] Linking CXX static library libftxui-component.a
[ 96%] Built target component
[100%] Building CXX object CMakeFiles/ftxui-starter.dir/src/main.cpp.o
[100%] Linking CXX executable ftxui-starter
[100%] Built target ftxui-starter
以上是关于Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)的主要内容,如果未能解决你的问题,请参考以下文章
Could not update the distribution database subscription table. The subscription status could not be
Could not execute menu item(internal error),[Exception] Could not perform service action:服务尚未启动。
Could not initialize English chunker/Could not load file from classpath: ‘/en-token.bin‘