i wrote a bit of xml reading code using tinyxml, which worked fine on its own, but when i tried to merge the code into another project i have, which uses kyra, not a thing worked.
i get two kinds of errors:
1. cannot convert parameter 1 from 'const std::string *' to 'const char *'
2. 'Row' : is not a memeber of 'TiXmlNode'
is the tinyxml version used in the latest kyra different from the latest tinyxml version available on its website, or what?
should i overwrite kyra's tinyxml with the latest version?
(no, i just tried that, it didn't work)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
-myproject
--+mystuff
-----+tinyxml version x
--+kyta
-----+tinyxml version y
?
Although if you do it carefully, its "ok" to have two separate tinyxml versions in your project, I generally have bad experience doing that sort of thing.
There error 1 (std::strinig, etc) looks like either an include order thing or that one tinyxml has STL defined and one does not.
Error 2 looks like the cpp file you're compiling is getting confused with different tinyxml.h (etc) files.
My approach (though not the only posible solution) is:
Do a clean build of the whole tree. Get rid of the older TinyXML (i.e. move out out of the way, so the compiler can't find it even if it tries to) and build everything pointing at a single TinyXml tree.
Like I said you *could* get it to work with 2 separate tinyxml trees, but I think that wouldn't be worth it.
HTH
Ellers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Regrettably, the current release of Kyra depends on the 1.x tinyxml. The CVS version uses the current tinyxml, but the current release Kyra won't run against current release tinyxml.
lee
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i tried rewriting (well, modifying) the code to only use the functions that are in kyra's tinyxml, and it compiles fine, but outputs the completely wrong info. is there still docs for that version online, so i could rewrite the code from scratch using those functions?
or: is there another lightweight and simple xml library i could use instead? (although that seems like a bit of a waste, since it already has tinyxml with it)
or: i will try the cvs kyra and see if that works. this thing i'm coding is pretty much my first semi-serious attempt at writing a game (mostly for experience), so i don't really plan on showing it to anyone except friends; therefore, it doesn't matter that much if the kyra is possibly a bit unstable (unless it's super-unstable, of course, but i guess i'll find that out when i try it)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
well, i can't seem to access the tinyxml cvs..
the web access tells me
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /viewcvs.py/tinyxml.
Reason: Max-Forwards has reached zero - proxy loop?
and trying to checkout from cvs tells me i can't access as anonymous.
i have no clue what any of this means, so i'll just try again in a few days. whenever i get it though, i'll continue this in the kyra forum.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i wrote a bit of xml reading code using tinyxml, which worked fine on its own, but when i tried to merge the code into another project i have, which uses kyra, not a thing worked.
i get two kinds of errors:
1. cannot convert parameter 1 from 'const std::string *' to 'const char *'
2. 'Row' : is not a memeber of 'TiXmlNode'
is the tinyxml version used in the latest kyra different from the latest tinyxml version available on its website, or what?
should i overwrite kyra's tinyxml with the latest version?
(no, i just tried that, it didn't work)
So you've got something like
-myproject
--+mystuff
-----+tinyxml version x
--+kyta
-----+tinyxml version y
?
Although if you do it carefully, its "ok" to have two separate tinyxml versions in your project, I generally have bad experience doing that sort of thing.
There error 1 (std::strinig, etc) looks like either an include order thing or that one tinyxml has STL defined and one does not.
Error 2 looks like the cpp file you're compiling is getting confused with different tinyxml.h (etc) files.
My approach (though not the only posible solution) is:
Do a clean build of the whole tree. Get rid of the older TinyXML (i.e. move out out of the way, so the compiler can't find it even if it tries to) and build everything pointing at a single TinyXml tree.
Like I said you *could* get it to work with 2 separate tinyxml trees, but I think that wouldn't be worth it.
HTH
Ellers
Regrettably, the current release of Kyra depends on the 1.x tinyxml. The CVS version uses the current tinyxml, but the current release Kyra won't run against current release tinyxml.
lee
i tried rewriting (well, modifying) the code to only use the functions that are in kyra's tinyxml, and it compiles fine, but outputs the completely wrong info. is there still docs for that version online, so i could rewrite the code from scratch using those functions?
or: is there another lightweight and simple xml library i could use instead? (although that seems like a bit of a waste, since it already has tinyxml with it)
or: i will try the cvs kyra and see if that works. this thing i'm coding is pretty much my first semi-serious attempt at writing a game (mostly for experience), so i don't really plan on showing it to anyone except friends; therefore, it doesn't matter that much if the kyra is possibly a bit unstable (unless it's super-unstable, of course, but i guess i'll find that out when i try it)
If you want to check out from source control, I just sync'd up all the projects and made sure TinyXml, Kyra, and Lilith are all building.
The Kyra demo seems to work fine except that it hangs on the last test.
To build, you need to check out:
Kyra project, kyra module
Kyra project, grinliz module (the utility classes)
TinyXml project, tinyxml module
Good luck! Tell me how it goes (although the thread is probably more revelant to the Kyra forum.)
lee
well, i can't seem to access the tinyxml cvs..
the web access tells me
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /viewcvs.py/tinyxml.
Reason: Max-Forwards has reached zero - proxy loop?
and trying to checkout from cvs tells me i can't access as anonymous.
i have no clue what any of this means, so i'll just try again in a few days. whenever i get it though, i'll continue this in the kyra forum.