Build errors in FreeBSD port (XMLParser)

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

Ant0n
Just popping in
Just popping in
Posts: 2
Joined: Sat Jun 11, 2011 18:54

Build errors in FreeBSD port (XMLParser)

Postby Ant0n » Sat Jun 11, 2011 18:55

Hello, I tried to build the FreeBSD port and got this:

Making all in XMLParserModules
Making all in .
Making all in TinyXMLParser
/bin/sh ../../../../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../../../cegui/include -I../../../../cegui/include -I../../../../cegui/include/XMLParserModules/TinyXMLParser -I/usr/local/include -I/usr/local/include/lua51 -O2 -pipe -fno-strict-aliasing -MT libCEGUITinyXMLParser_la-CEGUITinyXMLParser.lo -MD -MP -MF .deps/libCEGUITinyXMLParser_la-CEGUITinyXMLParser.Tpo -c -o libCEGUITinyXMLParser_la-CEGUITinyXMLParser.lo `test -f 'CEGUITinyXMLParser.cpp' || echo './'`CEGUITinyXMLParser.cpp
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../../../../cegui/include -I../../../../cegui/include -I../../../../cegui/include/XMLParserModules/TinyXMLParser -I/usr/local/include -I/usr/local/include/lua51 -O2 -pipe -fno-strict-aliasing -MT libCEGUITinyXMLParser_la-CEGUITinyXMLParser.lo -MD -MP -MF .deps/libCEGUITinyXMLParser_la-CEGUITinyXMLParser.Tpo -c CEGUITinyXMLParser.cpp -fPIC -DPIC -o .libs/libCEGUITinyXMLParser_la-CEGUITinyXMLParser.o
CEGUITinyXMLParser.cpp: In member function 'void CEGUI::TinyXMLDocument::processElement(const TiXmlElement*)':
CEGUITinyXMLParser.cpp:134: error: 'ELEMENT' is not a member of 'TiXmlNode'
CEGUITinyXMLParser.cpp:137: error: 'TEXT' is not a member of 'TiXmlNode'
*** Error code 1

Stop in /usr/ports/graphics/cegui/work/CEGUI-0.7.5/cegui/src/XMLParserModules/TinyXMLParser.
*** Error code 1

Stop in /usr/ports/graphics/cegui/work/CEGUI-0.7.5/cegui/src/XMLParserModules.
*** Error code 1

Stop in /usr/ports/graphics/cegui/work/CEGUI-0.7.5/cegui/src.
*** Error code 1

Stop in /usr/ports/graphics/cegui/work/CEGUI-0.7.5/cegui.
*** Error code 1

Stop in /usr/ports/graphics/cegui/work/CEGUI-0.7.5.
*** Error code 1

Stop in /usr/ports/graphics/cegui.


Installing the package also fails and aborts. Any ideas?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Build errors in FreeBSD port (XMLParser)

Postby CrazyEddie » Sun Jun 12, 2011 07:16

Strange. Can you post the contents of the 'config.log' file produced by the configure run?

Oh, and please surround it with code tags:
[code]
Like this
[/code]

Thanks ;)

CE.

Ant0n
Just popping in
Just popping in
Posts: 2
Joined: Sat Jun 11, 2011 18:54

Re: Build errors in FreeBSD port (XMLParser)

Postby Ant0n » Sun Jun 12, 2011 14:44

Oops, sorry, I'm new. Here it is:

http://pastebin.com/kfEjdf68

The forum wouldn't allow me to post this. The message always ended up blank.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Build errors in FreeBSD port (XMLParser)

Postby CrazyEddie » Mon Jun 13, 2011 06:55

Thanks. This appears to be an issue related to TinyXML versions - the version we have embedded (that it definitely compiles against) is pretty ancient, and it seems that TinyXML changed some enumerated value names at some point. I can investigate and fix this for the 0.8.0 release, but can do nothing for existing releases, or even v0-7 stable branch code :(

In the mean time I think the only solution is to either force the use of the embedded tinyxml (which I know is not ideal when you have s system version of the lib) by way of the --disable-external-tinyxml configure option, or choose a different xml parser to use.

Sorry not to be able to give a better solution ;)

CE.

double_you
Just popping in
Just popping in
Posts: 2
Joined: Mon Jun 20, 2011 08:49

Re: Build errors in FreeBSD port (XMLParser)

Postby double_you » Tue Oct 18, 2011 07:07

I ran into the same problem on Ubuntu 11.10. GCC 4.6 and TinyXML 2.6.2:

CEGUITinyXMLParser.cpp: In member function `void CEGUI::TinyXMLDocument::processElement(const TiXmlElement*)':
CEGUITinyXMLParser.cpp:134:134: error: `ELEMENT' is not a member of `TiXmlNode'
CEGUITinyXMLParser.cpp:137:137: error: `TEXT' is not a member of `TiXmlNode'

The solution I found was to rename ELEMENT to TINYXML_ELEMENT and TEXT to TINYXML_TEXT.

Steve.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests