我觉得自己很傻。
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 information
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似乎是一个很棒的库,但我发现文档(不仅如此)严重缺乏。主要是由于不存在的例子。
发布于 2020-10-14 23:35:20
我从源代码安装并构建了POCO。Poco-x.x.x.x-all/PageCompiler/bin/Linux/x86_64.中的PageCompiler它被称为cpspc和cpspcd。安装后,它会被复制到路径中的/usr/local/bin/,中。在Fedora 31上完成。
https://stackoverflow.com/questions/64354893
复制相似问题