Skip to content

Instantly share code, notes, and snippets.

@UnaNancyOwen
Last active April 27, 2023 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UnaNancyOwen/c186514340ad2b0fa3b6dd505f9d27c3 to your computer and use it in GitHub Desktop.
Save UnaNancyOwen/c186514340ad2b0fa3b6dd505f9d27c3 to your computer and use it in GitHub Desktop.
How to Generate PCL Documents and Tutorials

How to Generate PCL Documents and Tutorials

Download

Dependents

  1. 依存ツールをインストールする。
    WITH_DOCS

    WITH_TUTORIALS

    • Python

      1. Python 2.7.13(python-2.7.13.msi)をダウンロード、インストールする。
        https://www.python.org/

      2. 環境変数PATHに以下のパスを設定する。
        C:\Python27
        C:\Python27\Scripts

    • Sphinx

      1. コマンドプロンプトを開き、以下のコマンドを実行してインストールする。
        pip install sphinx
        
    • sphinxcontrib-doxylink

      1. コマンドプロンプトを開き、以下のコマンドを実行してインストールする。
        pip install sphinxcontrib-doxylink==1.3
        
    • sphinx_rtd_theme

      1. コマンドプロンプトを開き、以下のコマンドを実行してインストールする。
        pip install sphinx_rtd_theme==0.4.3
        
    • pyparsing

      1. コマンドプロンプトを開き、以下のコマンドを実行してインストールする
        pip install pyparsing==2.1.9
        

CMake

  1. 各種設定を行う。
    (GroupedとAdvancedにチェックを入れるとわかりやすい。)
    Ungrouped Entries

    • PYTHON_EXECUTABLE C:/Python27/python.exe

    DOXYGEN

    • DOXYGEN_DOT_EXECUTABLE C:/Program Files (x86)/Graphviz2.38/bin/dot.exe
    • DOXYGEN_EXECUTABLE C:/Program Files/doxygen/bin/doxygen.exe
    • DOXYGEN_USE_SHORT_NAMES ☐(uncheck)

    HTML

    • HTML_HELP_COMPILER C:/Program Files (x86)/HTML Help Workshop/hhc.exe
    • HTML_HELP_INCLUDE_PATH C:/Program Files (x86)/HTML Help Workshop/include
    • HTML_HELP_LIBRARY C:/Program Files (x86)/HTML Help Workshop/lib/htmlhelp.lib

    SPHINX

    • SPHINX_EXECUTABLE C:/Python27/Scripts/sphinx-build.exe
    • SPHINX_HTML_FILE_SUFFIX html

    WITH

    • WITH_DOCS ☑(check)
    • WITH_TUTORIALS ☑(check)
  2. 設定内容を確認する。

    • DOXYGEN_FOUND YES
    • HTML_HELP_COMPILER C:/Program Files (x86)/HTML Help Workshop/hhc.exe

Note

  • Doxygenは最新バージョンではエラーになるので1.8.14を使う。
  • Ghostscriptは最新バージョンではエラーになるので9.10の32bitを使う。
  • Pythonは64bitでも大丈夫。
  • Python3ではadvancedプロジェクトがビルドできない。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment