如何调用POCO的PageCompiler?

问题描述

我觉得很愚蠢。

https://pocoproject.org/pro/docs/PageCompilerUserGuide.html

它说:

Invoking the Page Compiler

The Page Compiler is invoked from the command line. The file names of the cpsP files to be compiled are specified as arguments.

A number of options control the code generation. Options are specified using the usual command-line option Syntax for the current operating system (e.g.,<[/help on Windows,<[--help or <[-h on Unix).

    help (h): display usage @R_407_4045@ion
    define (D): define a configuration property
    config-file (f): load configuration properties from a file
    osp (O): add factory class deFinition/implementation for use with OSP
    apache (A): add factory class deFinition/implementation and shared library manifest for use with ApacheConnector
    escape (e): make HTML-escape mode default for all pages

Run the PageCompiler with the —help option to see all available options. 

好的,很酷。但是实际的可执行文件在哪里?我已经从认存储库中的Ubuntu 18.04 LTS上安装了所有POCO库。

POCO似乎是一个很棒的库,但是我发现文档(不仅如此)严重缺乏。主要是由于不存在示例。

解决方法

我从源代码安装并构建了POCO。 PageCompiler位于Poco-x.x.x.x-all / PageCompiler / bin / Linux / x86_64中。 它称为 cpspc cpspcd 。 安装后,它将复制到路径中的 / usr / local / bin / 中。 完成于Fedora 31。