Re: [Dqt-users] Re: DQT CVS fails to build (no matching function call to log4cxx::Logger::getLogger
Status: Beta
Brought to you by:
vwegert
|
From: Stuart L. <red...@ge...> - 2006-02-25 06:51:17
|
Volker Wegert wrote:
> Stuart Longland <red...@ge...> writes:
>>Volker Wegert wrote:
>>
>>>Something ugly is happening here - looks like "my" compiler performs some
>>>implicit casting from char[4] to String and "yours" doesn't. Very strange -
>>>and unfortunately I don't have the slightest idea what might be goung wrong
>>>here. I don't even know how to investigate this problem further.
>>>
>>>I'm currently offline (writing this mail from aboard the ICE train), but I'll
>>>check whether I've made some modification to the code locally that hasn't made
>>>it into CVS yet. I'll contact you again.
>>
>>Have you had a chance to look into this further? I've tinkered a little
>>here, and still haven't managed to get things rolling.
>
>
> Sorry - been ill for a few days and had to catch up on a lot of things. This
> got lost somehow.
>
> I've checked the sources - the CVS repository is up-to-date, so that's not the
> cause of the problem.
Hi,
I did some digging, and came up with this thread[1], which seemed to
suggest there was mistakes in the log4cxx documentation, and so the
correct way to create a logger, is not:
logger = Logger::getLogger("Foo.Bar");
but rather:
logger = Logger::getLogger(_T("Foo.Bar"));
The _T(...) bit seems to be an undocumented macro that creates a
log4cxx::String from a const char *.
Another sticking point was in DQT.cpp, with the PropertyConfigurator,
which also takes a log4cxx::String. Apparently this datatype is quite
different to std::string, although I can't see where it differs (and in
fact, I seem to recall seeing a typedef defining it), but nonetheless,
it's certainly not a QString, which is what it gets fed at this point.
I've just commented out that bit for now, since I'm still trying to
figure out how to obtain the log4cxx::String object required.
Attached is a patch that at least gets things building. The program
starts, but I haven't yet gone much further than that. I'll try it with
some sample music in a sec. But it builds now ... and starts, so that's
a start at least. :-)
--
Stuart Longland (aka Redhatter) .'''.
Gentoo Linux/MIPS Cobalt and Docs Developer '.'` :
. . . . . . . . . . . . . . . . . . . . . . .'.'
http://dev.gentoo.org/~redhatter :.'
International Asperger's Year (1906 ~ 2006)
http://dev.gentoo.org/~redhatter/iay
|