xerces error when compiling RobWork 0.4

208 views
Skip to first unread message

Stigaard

unread,
Nov 3, 2009, 3:36:51 AM11/3/09
to RobWork
Trying to compile RobWork 0.4 using Gcc 4.3.3, on Ubuntu 9.04, I have
installed libxerces-c-dev from the repositories, which is version
3.0.1-2.
I've used CMake to generate a eclipse makefile project.
I've attached the tail of the buildlog below.
It seems to be unable to locate the xerces-c headers, any suggestions?

/ Morten S. Laursen

The tail of the buildlog is:
/usr/bin/cmake -E cmake_progress_report /home/morten/build/RobWork/
CMakeFiles
[ 35%] Building CXX object src/rw/CMakeFiles/rw.dir/loaders/xml/
XercesErrorHandler.cpp.o
cd /home/morten/build/RobWork/src/rw && /usr/bin/c++ -
DRW_ENABLE_ASSERT -O3 -DNDEBUG -I/home/morten/workspace/RobWork/ext -I/
home/morten/workspace/RobWork/src -I/home/morten/workspace/RobWork/ext/
lua/src -I/home/morten/workspace/RobWork/ext/tolua/include -I/include -
I/home/morten/workspace/RobWork/ext/yaobi -I/home/morten/workspace/
RobWork/ext/PQP -Wall -fPIC -o CMakeFiles/rw.dir/loaders/xml/
XercesErrorHandler.cpp.o -c /home/morten/workspace/RobWork/src/rw/
loaders/xml/XercesErrorHandler.cpp
/usr/bin/cmake -E cmake_progress_report /home/morten/build/RobWork/
CMakeFiles 36
[ 36%] Building CXX object src/rw/CMakeFiles/rw.dir/loaders/xml/
XercesUtils.cpp.o
cd /home/morten/build/RobWork/src/rw && /usr/bin/c++ -
DRW_ENABLE_ASSERT -O3 -DNDEBUG -I/home/morten/workspace/RobWork/ext -I/
home/morten/workspace/RobWork/src -I/home/morten/workspace/RobWork/ext/
lua/src -I/home/morten/workspace/RobWork/ext/tolua/include -I/include -
I/home/morten/workspace/RobWork/ext/yaobi -I/home/morten/workspace/
RobWork/ext/PQP -Wall -fPIC -o CMakeFiles/rw.dir/loaders/xml/
XercesUtils.cpp.o -c /home/morten/workspace/RobWork/src/rw/loaders/xml/
XercesUtils.cpp
/home/morten/workspace/RobWork/src/rw/loaders/xml/XercesUtils.cpp:
23:37: error: xercesc/dom/DOMWriter.hpp: No such file or directory
/home/morten/workspace/RobWork/src/rw/loaders/xml/XercesUtils.cpp: In
static member function ‘static void
rw::loaders::XercesDocumentWriter::writeDocument
(xercesc_3_0::DOMDocument*, const std::string&)’:
/home/morten/workspace/RobWork/src/rw/loaders/xml/XercesUtils.cpp:43:
error: ‘DOMWriter’ is not a member of ‘xercesc’
/home/morten/workspace/RobWork/src/rw/loaders/xml/XercesUtils.cpp:43:
error: ‘theSerializer’ was not declared in this scope
/home/morten/workspace/RobWork/src/rw/loaders/xml/XercesUtils.cpp:43:
error: ‘class xercesc_3_0::DOMImplementationLS’ has no member named
‘createDOMWriter’
/home/morten/workspace/RobWork/src/rw/loaders/xml/XercesUtils.cpp:69:
error: type ‘<type error>’ argument given to ‘delete’, expected
pointer
make[2]: Leaving directory `/home/morten/build/RobWork'
make[2]: *** [src/rw/CMakeFiles/rw.dir/loaders/xml/XercesUtils.cpp.o]
Error 1
make[1]: *** [src/rw/CMakeFiles/rw.dir/all] Error 2
make: *** [all] Error 2

Anders Bøgild - Robo[LAB]

unread,
Nov 3, 2009, 3:42:34 AM11/3/09
to RobWork
On Win32/MinGW i have not been able to make RobWork work with xerces
3.0, only 2.8.
Jimmy might be able to elaborate on this...

Jimmy Jorgensen

unread,
Nov 3, 2009, 4:43:39 AM11/3/09
to rob...@googlegroups.com
Hi Morten,

In the config.cmake file in the root folder of RobWork you can hint the
include and library path to the cmake script.

If you have not setup the config.cmake use the config.cmake.template file.
Copy it to config.cmake and change it according to you system setup.

/Jimmy

Jimmy Jorgensen

unread,
Nov 3, 2009, 5:10:50 AM11/3/09
to rob...@googlegroups.com
Yes thats correct. There is certain interface changes from 2.8 to 3.0 that
RobWork does not support yet. You should try and use XercesC 2.8

/Jimmy



> -----Original Message-----
> From: rob...@googlegroups.com [mailto:rob...@googlegroups.com] On

Stigaard

unread,
Nov 3, 2009, 8:48:26 AM11/3/09
to RobWork
Okay
thank you for your help, I've changed to xerces 2.8 and it now
compiles without errors
Just for the reference for others the package is called libxerces-c2-
dev in ubuntu 9.04

Palm

unread,
Nov 3, 2009, 12:10:17 PM11/3/09
to RobWork
Unfortuneatly xerces-c 2.8 doesn't compile on mac os X snow leopard
(it's no longer maintained and outdated)

Whats the roadmap for upgrading robworks to work with a current
version of xerces?

Anders Bøgild

unread,
Nov 3, 2009, 12:27:15 PM11/3/09
to rob...@googlegroups.com
I can ask Preben Holm tomorrow about Xerces 2.8 and OS 10.6, he is our resident Mac-RobWork expert :-) 

2009/11/3 Palm <Anp...@student.sdu.dk>

Palm

unread,
Nov 3, 2009, 12:30:08 PM11/3/09
to RobWork
That sounds good, i don't mind putting together an install guide for
the mac people if we can get it running.

On Nov 3, 6:27 pm, Anders Bøgild <anders.bog...@gmail.com> wrote:
> I can ask Preben Holm tomorrow about Xerces 2.8 and OS 10.6, he is our
> resident Mac-RobWork expert :-)
>
> 2009/11/3 Palm <Anpa...@student.sdu.dk>

Jimmy Jorgensen

unread,
Nov 3, 2009, 1:16:55 PM11/3/09
to rob...@googlegroups.com

I recently spoke with Lars-Peter about moving to xerces 3.0 and he said that
it would not be too big a deal. Perhaps he should comment on this?

Lars-Peter Ellekilde

unread,
Nov 3, 2009, 4:49:22 PM11/3/09
to rob...@googlegroups.com
Hi,
We do not yet have any plans for when we will move to xerces 3.0. Originally we stuck to using version 2.8 because it was the default in most Linux distribution. As I can understand from one of the previous post this is no longer the case, hence there is no reason to no switch. I will try to see if I can allocate some time to look into it later this week.

I do not think you will need the features requiring xerces during the course. Initially you can therefore use the following work around to compile and start using RobWork without xerces.
0: If you have not already copied and renamed the RobWork\config.cmake.template file to RobWork\config.cmake to do.
1: Change the line "SET(USE_XERCES ON)" to "SET(USE_XERCES OFF)"
2: In RobWorkStudio\src\rws\RobWorkStudio.cpp comment out lines
44: #include <rw/loaders/xml/XMLPropertyLoader.hpp>
45: #include <rw/loaders/xml/XMLPropertySaver.hpp>
98: settings = XMLPropertyLoader::load("rwsettings.xml");
155: XMLPropertySaver::save(*_settingsMap, "rwsettings.xml");

Best regards
Lars-Peter

Med venlig hilsen

Lars-Peter Ellekilde
Adjunkt, Mærsk Mc-Kinney Møller Instituttet

Tlf. 6550 3548
Fax 6550 3681
Email l...@mmmi.sdu.dk
Web http://www.sdu.dk
Adr. Niels Bohrs Allé 1, 5230 Odense M

SYDDANSK UNIVERSITET
_______________________________________________________________
Campusvej 55 * 5230 * Odense M * Tlf. 6550 1000 * www.sdu.dk

Lars-Peter Ellekilde

unread,
Nov 3, 2009, 4:56:40 PM11/3/09
to rob...@googlegroups.com
Hi,
It would be great if you could create a mac install guide. We will be pleased if you when finished could send it and allow us to put in on the RobWork homepage such that other users can benefit from it.

Best regards
Lars-Peter

Med venlig hilsen

Lars-Peter Ellekilde
Adjunkt, Mærsk Mc-Kinney Møller Instituttet

Tlf. 6550 3548
Fax 6550 3681
Email l...@mmmi.sdu.dk
Web http://www.sdu.dk
Adr. Niels Bohrs Allé 1, 5230 Odense M

SYDDANSK UNIVERSITET
_______________________________________________________________
Campusvej 55 * 5230 * Odense M * Tlf. 6550 1000 * www.sdu.dk



-----Original Message-----
From: rob...@googlegroups.com [mailto:rob...@googlegroups.com] On Behalf Of Palm
Sent: 3. november 2009 18:30
To: RobWork

Anders Bøgild - Robo[LAB]

unread,
Nov 4, 2009, 6:38:31 AM11/4/09
to RobWork
Ok, it turns out that Preben have only used RW on OS 10.4.

So hurry up and make that guide for 10.6 :-)

Palm

unread,
Nov 7, 2009, 3:34:50 AM11/7/09
to RobWork
The suggested workaround may work for robworkstudio, but i still get a
lot of errors from compiling robwork itself when xerces is missing.
Any hint as to how to turn off compilation of xerces-dependant parts?
I've edited the cmake.config and when i run cmake it does confirm that
i've set USE_XERCES to OFF, but it doesn't stop the compile errors :)

Cheers
Anders
Reply all
Reply to author
Forward
0 new messages