'class Poco::XML::Element'没有名为'getNodeByPath'的成员

'class Poco::XML::Element' has no member named 'getNodeByPath'

本文关键字:getNodeByPath 成员 Element class Poco XML      更新时间:2023-10-16

我正在尝试用QT建立openFrameworks,但到目前为止我似乎没有成功。我包含了所有必要的文件,即包含、库等,但是一旦我编译程序,它就会显示错误

/home/kalyan/of_v0.9.3_linux64_release/libs/openFrameworks/utils/ofXml.h:204: error: 'class Poco::XML::Element' has no member named 'getNodeByPath'
                             Poco::XML::Element *e = (Poco::XML::Element*) element->getNodeByPath(path);
                                                                                    ^

我什至在openFrameworks论坛上询问,但没有得到任何答复。

我正在运行一个示例"3dPrimitivesExample",该示例已包含在openFrameworks构建中。我使用 make 构建了该特定示例,它生成了对象文件,最后生成了一个.exe文件。

你有我上周遇到的同样的问题吗?旧版本?

看这里:"关键字"不是命名空间名称

在此链接中,有一篇关于如何使用 CMAKE 将 QT 链接到 Poco 的优秀文章(我从未想过如何使用 QMake 做到这一点):Clion, cMake 和 POCO