Topic-icon Compilation issues with tinyxml

  • chabral
  • chabral's Avatar Topic Author
  • Visitor
  • Visitor
17 Nov 2013 04:25 #18347 by chabral
chabral created the topic: Compilation issues with tinyxml
Hi there,
I'm compiling PokerTH-1.0.1-src on Centos 6.4 and found some issues with tinyxml. The library does not come with Centos so I downloaded it, in version 2.6.1. Had to manually create the library with ar and put it under /usr/lib/libtinyxml.a
Also, placed the cpp and h files under /usr/include and under PokerTH-1.0.1-src/src/config
There's no RPM package on Centos repository, I got tinyxml-2.6.1-1.el6.x86_64.rpm from the EPEL repository and also installed it.

However, when running make, I'm getting:
obj/joinnetworkgamedialogimpl.o: In function `joinNetworkGameDialogImpl::itemFillForm(QTreeWidgetItem*, int)':
/development/PokerTH-1.0.1-src/src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp:184: undefined reference to `TiXmlDocument::TiXmlDocument(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
obj/joinnetworkgamedialogimpl.o: In function `joinNetworkGameDialogImpl::fillServerProfileList()':
/development/PokerTH-1.0.1-src/src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp:133: undefined reference to `TiXmlDocument::TiXmlDocument(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
obj/joinnetworkgamedialogimpl.o: In function `joinNetworkGameDialogImpl::deleteServerProfile()':
/development/PokerTH-1.0.1-src/src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp:281: undefined reference to `TiXmlDocument::TiXmlDocument(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
obj/joinnetworkgamedialogimpl.o: In function `joinNetworkGameDialogImpl::saveServerProfile()':
/development/PokerTH-1.0.1-src/src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp:211: undefined reference to `TiXmlDocument::TiXmlDocument(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp:254: undefined reference to `TiXmlElement::TiXmlElement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
lib/libpokerth_lib.a(configfile.o): In function `ConfigFile::fillBuffer()':
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:374: undefined reference to `TiXmlDocument::TiXmlDocument(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
lib/libpokerth_lib.a(configfile.o): In function `ConfigFile::writeBuffer() const':
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:468: undefined reference to `TiXmlElement::TiXmlElement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:470: undefined reference to `TiXmlElement::SetAttribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:479: undefined reference to `TiXmlElement::TiXmlElement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:481: undefined reference to `TiXmlElement::SetAttribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
lib/libpokerth_lib.a(configfile.o): In function `ConfigFile::updateConfig(ConfigState)':
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:535: undefined reference to `TiXmlDocument::TiXmlDocument(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:566: undefined reference to `TiXmlElement::SetAttribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:633: undefined reference to `TiXmlElement::TiXmlElement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:635: undefined reference to `TiXmlElement::SetAttribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:598: undefined reference to `TiXmlElement::TiXmlElement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:603: undefined reference to `TiXmlElement::SetAttribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:624: undefined reference to `TiXmlElement::TiXmlElement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:626: undefined reference to `TiXmlElement::SetAttribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:513: undefined reference to `TiXmlElement::TiXmlElement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:515: undefined reference to `TiXmlElement::SetAttribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:524: undefined reference to `TiXmlElement::TiXmlElement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:526: undefined reference to `TiXmlElement::SetAttribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:644: undefined reference to `TiXmlElement::TiXmlElement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:646: undefined reference to `TiXmlElement::SetAttribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
lib/libpokerth_lib.a(configfile.o): In function `ConfigFile':
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:317: undefined reference to `TiXmlDocument::TiXmlDocument(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/development/PokerTH-1.0.1-src/src/config/configfile.cpp:341: undefined reference to `TiXmlElement::SetAttribute(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
lib/libpokerth_lib.a(clientstate.o): In function `ClientStateReadingServerList::Enter(boost::shared_ptr<ClientThread>)':
/development/PokerTH-1.0.1-src/src/net/common/clientstate.cpp:318: undefined reference to `TiXmlDocument::TiXmlDocument(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
make[1]: *** [pokerth] Error 1
make[1]: Leaving directory `/development/PokerTH-1.0.1-src'
make: *** [sub-pokerth_game-pro-make_default-ordered] Error 2

I'm running out of ideas tonight. If you have anything I can try, I will appreciate it.

Thanks,
chabral

Please Log in or Create an account to join the conversation.

  • chabral
  • chabral's Avatar Topic Author
  • Visitor
  • Visitor
19 Nov 2013 00:21 #18396 by chabral
chabral replied.
In case anyone faces the same issue, here is my solution:

I installed the following packages:
tinyxml-debuginfo-2.6.1-1.3.x86_64
tinyxml-2.6.1-1.3.x86_64
tinyxml-devel-2.6.1-1.3.x86_64

Then removed the library I created. Compiled again and it worked. Cheers.

Please Log in or Create an account to join the conversation.

Champions of

PokerTH - live

The PokerTH spectator tool.

Member Login

 advert
NOTE! This site uses cookies and similar technologies.
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
More information

We use cookies to personalize content and ads to offer features for social media and analyze the number of hits on our website. We also provide information about your use of our website to our partner for social media, advertising and analysis on.
http://www.google.com/intl/de/policies/privacy/partners/