Re: Missing CPFDemarshaller.hpp in OCL 0.4
Peter Soetens <[email protected]> Tue, 29 May 2007 16:37:58 +0200
| Newsgroups | gmane.science.robotics.orocos.user |
|---|---|
| Organization | FMTC |
| Message-ID | <[email protected]> |
--Boundary-00=_HrDXGm3+Xsvh7kW
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On Tuesday 29 May 2007 15:45:28 Lars-Peter Ellekilde wrote:
> Hi
> I have just installed RTT 1.2 and are now trying to compile OCL 0.4.
> However, when compiling the OCL "reporting/ReportingComponent.cpp" file
> it complains that the "CPFDemarshaller.hpp" file is missing.
This file is only installed if you are using the Xerces XML parser library,
and not present if you use the fallback TinyXML implementation. The reporting
file mistakenly assumes this file is present. A patch in attachment fixes
this and uses another class for the same purpose:
cd orocos-ocl-0.4.0/reporting
patch -p0 < reporting-nocpf.patch
An alternative is to install libxerces27-dev (or similar), and rebuild,
reinstall RTT.
Thanks for 'reporting',
Peter
--
Peter Soetens -- FMTC -- <http://www.fmtc.be>
--Boundary-00=_HrDXGm3+Xsvh7kW
Content-Type: text/x-diff; charset="iso-8859-1"; name="reporting-nocpf.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="reporting-nocpf.patch"
Index: ReportingComponent.cpp
===================================================================
--- ReportingComponent.cpp (revision 28165)
+++ ReportingComponent.cpp (working copy)
@@ -30,8 +30,8 @@
// Impl.
#include <rtt/marsh/EmptyMarshaller.hpp>
-#include <rtt/marsh/CPFDemarshaller.hpp>
-#include <rtt/marsh/CPFMarshaller.hpp>
+#include <rtt/marsh/PropertyDemarshaller.hpp>
+#include <rtt/marsh/PropertyMarshaller.hpp>
#include <fstream>
#include "ocl/ComponentLoader.hpp"
@@ -126,12 +126,7 @@
bool ReportingComponent::store()
{
Logger::In in("ReportingComponent");
- ofstream outf( config.get().c_str() );
- if ( !outf ) {
- log(Error) << "Writing file "<< config.get() << " failed."<<endlog();
- return false;
- }
- CPFMarshaller<std::ostream> marsh( outf );
+ PropertyMarshaller marsh( config.get() );
PropertyBag bag;
Reports::iterator it = root.begin();
while ( it != root.end() ) {
@@ -148,7 +143,7 @@
bool ReportingComponent::load()
{
Logger::In in("ReportingComponent");
- CPFDemarshaller dem( config.get() );
+ PropertyDemarshaller dem( config.get() );
PropertyBag bag;
if (dem.deserialize( bag ) == false ) {
log(Error) << "Reading file "<< config.get() << " failed."<<endlog();
--Boundary-00=_HrDXGm3+Xsvh7kW
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--
Orocos mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos
--Boundary-00=_HrDXGm3+Xsvh7kW--