为s390x的Rhel发行版构建doxygen v1.8.15时,“ make docs”失败

时间:2019-01-15 07:52:33

标签: doxygen

在为s390x的rhel和sles发行版构建doxygen v1.8.15时,“ make docs”失败。

使用软件包“ doxygen-latex” v1.8.5安装了用于rhel的乳胶

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$

任何有关上述错误的指针都会有所帮助。

1 个答案:

答案 0 :(得分:1)

来自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,环境,   make_directory,md5sum,remove,remove_directory,重命名,tar,时间,   touch,touch_nocreate。此外,某些平台特定的命令   可用。在Windows上:comspec,delete_regv,write_regv。在UNIX上:   create_symlink。

因此,所使用的CMake版本太旧了。看起来,-E env至少需要3.1。

编辑:

关于最低限度使用的版本:我刚刚将一个建议的补丁程序推送到了github(拉请求6771,https://github.com/doxygen/doxygen/pull/6771)。

编辑2: pul请求的代码已集成在github上的master中。