"make docs“在为s390x构建doxygen v1.8.15版本时失败。
使用包"doxygen- latex“v1.8.5安装了用于rhel的latex
bash-4.2$ make docs VERBOSE=1
[ 82%] Generating Latex and HTML documentation.
cd /home/test/workspace/Doxygen_rhel/doxygen/build/doc && /usr/bin/cmake -E env VERSION=1.8.15 /home/test/workspace/Doxygen_rhel/doxygen/build/bin/doxygen
CMake Error: cmake version 2.8.12.2
Usage: /usr/bin/cmake -E [command] [arguments ...]
Available commands:
chdir dir cmd [args]... - run command in a given directory
compare_files file1 file2 - check if file1 is same as file2
copy file destination - copy file to destination (either file or directory)
copy_directory source destination - copy directory 'source' content to directory 'destination'
copy_if_different in-file out-file - copy file if input has changed
echo [string]... - displays arguments as text
echo_append [string]... - displays arguments as text but no new line
environment - display the current environment
make_directory dir - create a directory
md5sum file1 [...] - compute md5sum of files
remove [-f] file1 file2 ... - remove the file(s), use -f to force it
remove_directory dir - remove a directory and its contents
rename oldname newname - rename a file or directory (on one volume)
tar [cxt][vfz][cvfj] file.tar [file/dir1 file/dir2 ...]
- create or extract a tar or zip archive
time command [args] ... - run command and return elapsed time
touch file - touch a file.
touch_nocreate file - touch a file but do not create it.
Available on UNIX only:
create_symlink old new - create a symbolic link new -> old
make[3]: *** [doc/CMakeFiles/run_doxygen] Error 1
make[3]: Leaving directory `/home/test/workspace/Doxygen_rhel/doxygen/build'
make[2]: *** [doc/CMakeFiles/run_doxygen.dir/all] Error 2
make[2]: Leaving directory `/home/test/workspace/Doxygen_rhel/doxygen/build'
make[1]: *** [doc/CMakeFiles/docs.dir/rule] Error 2
make[1]: Leaving directory `/home/test/workspace/Doxygen_rhel/doxygen/build'
make: *** [docs] Error 2
bash-4.2$任何关于上述错误的指示都将是有帮助的。
发布于 2019-01-15 17:49:33
来自CMake的旧文档:https://cmake.org/cmake/help/v2.8.12/cmake.html
我明白了
-E: CMake命令模式。
为了实现真正的平台独立性,CMake提供了一个可在所有系统上使用的命令列表。使用-E帮助运行以获取用法信息。可用的命令有: chdir、compare_files、copy、copy_directory、copy_if_different、echo、echo_append、environment、make_directory、md5sum、remove、remove_directory、rename、tar、time、touch、touch_nocreate。此外,还提供了一些特定于平台的命令。在Windows上: comspec,delete_regv,write_regv。在UNIX上: create_symlink。
所以使用过的CMake版本太旧了。看起来,对于-E env来说,至少需要3.1。
编辑:
关于最低使用版本:我刚刚向github推送了一个建议的补丁(pull Request6771,https://github.com/doxygen/doxygen/pull/6771)。
编辑2: pul请求的代码已经集成到github的master中。
https://stackoverflow.com/questions/54194646
复制相似问题