Kodi Community Forum

Full Version: Problem compiling : ButtonTranslator.cpp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi pbrackin,

I had the same problem on Centos 6.6.
I recompiled tinyxml with TINYXML_USE_STL:=YES in tinyxml's makefile
BUT: I didn't put #define TIXML_USE_STL in tinyxml.h

then did
make
ar rc libtinyxml.a tinyxml.o tinyxmlparser.o tinyxmlerror.o tinystr.o
sudo cp libtinyxml.a /usr/local/lib
sudo cp libtinyxml.a /lib
cp tinyxml.h /usr/local/include
cp tinyxml.h /usr/include
cp tinystr.h /usr/local/include
cp tinystr.h /usr/include

then added #define TIXML_USE_STL to XBMCTinyXML.h
and left the #include <tinyxml.h> as it was (and removed all tinyxml related files from xbmc/utils)

then did
make clean
./bootstrap
./configure
make -j2

and it worked fine.
I hope this helps.
Code:
-----------------------
Kodi built successfully
-----------------------

Secret was to mod the tinyxml makefile line:

Code:
TINYXML_USE_STL := NO

to

Code:
TINYXML_USE_STL := YES

and rebuild & re-"install" the tinyxml lib.

I also moved the

Code:
#define TINYXML_USE_STL


into ./xbmc/utils/XBMCTinyXML.h and reverted /usr/include/tinyxml.h

Hopefully this will help other CentOS-ers who might face the same issues. Thanks again to all for the help.
Hey zakla -

I just saw ur post after I posted. Wish I saw it earlier. Must've been I didn't see there was a new page in the thread last refresh...

Anyway, thanks for the complete explanation! As you can see - that is pretty much what I finally ended up doing. What an odyssey.
Pages: 1 2